META TOPICPARENT |
name="Atf2LwDaqComputing" |
Analysis Software
General
import lwAna3
a = lwAna3.Analysis(filepath)
Here filepath is typically of the form
../dat/raw/20130201_0645_lws.dat
From here, the best thing to do is look inside the instance of the analysis class using tab complete. You will see a list of functions and objects.
- Capital starting letter denotes a function
- small starting letter denotes object
- using a question mark on a function will tell you about it and what it's arguments are
Typical usage:
a.FilterBelowLimit('refc1amp',300)
a.FilterBelowLimit('cherenkov',5000)
a.FilterReset()
a.FilterBelowLimit('refc1amp',300)
a.FilterBelowLimit('cherenkov',1000)
a.X('chaver,'a')
a.Y('cherenkovcnbgs')
a.PlotXYErrorBar()
a.FitOI()
a.PlotXYFitData()
The X and Y methods pull out the data from the data structure for you and all the plotting functions use this x and y data. Any laser-wire data variable can be used for either as well as a bpm name in capital letters - ie QM14FF. The next optional argument is one of:
r or raw |
raw data shaped in axis0=positions, axis1=pulses |
a or averaged |
averaged data - 1D |
f or filtered |
flitered data - same dimensions as raw but is a masked array type |
t or timeseries |
time series - 1D version of filtered without mask |
- time series still to be finished
If not specified, raw will be assumed For bpms, if used in the X function, the x dimension of the bpm is selected automagically. Otherwise you can specify the axis, but you then have to specify the data type ie
a.X('QM14FF','a','y')
Laser Analysis
Overlap Integral
Option |
Function |
Arguments |
a |
SingleOI Empirical |
(dx,dy,sex,sey) |
b |
SingleOI M2 |
(dx,dy,sex,sey,M2) |
c |
OI Y Empirical (vector, dx, sex, sey) |
d |
OI X Empirical (vector, dy, sex, sey) |
e |
OI Y M2 (vector, dx, sex, sey) |
f |
g |
<--
Settings just to customise this page
- Set STYLESIDEBAR = off
- Set ALLOWTOPICVIEW = Public.TWikiGuest, Public.JohnAdamsInstituteGroup
- Set MYTITLE = - ATF2 laser wire project
-->
|