...
Panel |
---|
|
Code Block |
---|
|
kinit
addpkg XtcExplorer
scons
xtcexplorer /reg/d/psdm/xpp/xppi0310/xtc/e81-r0098-s0*
|
('kinit ' will ask you for your password and give you a Kerberos ticket valid for 24 h that you need to access our afs software repository) Now you have a local version of the XtcExplorer package in your directory. That allows you to edit the source code and customize the analysis modules in the XtcExplorer/src directory. Exercise for later: Edit XtcExplorer/src/pyana_ipimb.py to make a loglog plot of channel1 vs channel0. |
...
Panel |
---|
For the following two examples, check out the latest version of the pyana_examples package: Code Block |
---|
|
addpkg pyana_examples HEAD
scons
|
(Note, if you don't already have a Kerberos ticket, you need to issue a 'kinit ' command before 'addpkg '. You will be prompted for your unix password.) |
Datatypes, and how to find data from your detector/device in the xtc file.
...
Cloak |
---|
|
- Fetching the ControlPV information:
ControlPV is available from the env object, and since it only changes at the beginning of each calibration cycle, the begincalibcycle function is the appropriate place to get it: none The ControlConfig object may contain several pvControl and pvMonitor objects. In this case there's only one, but make sure the name matches anyway: none
- Fetching the IPIMB and PhaseCavity information:
All the other information that we need, is available through the evt object, and event member function is the place to get it: none Use "XppSb3Ipm-1|Ipimb-0" (a.k.a. IPM3) sum of all channels for normalization and filtering none Use "XppSb3Pim-1|Ipimb-0" (a.k.a. PIM3) channel 1 as signal none Get the phase cavity: none Compute delay time and fill histograms none
|
Image peak finding
Here are a collection of useful algorithms for image analysis: http://docs.scipy.org/doc/scipy/reference/ndimage.html![](/images/icons/linkext7.gif)
...