...
Point detector delay scan
The python code for this pyana module resides in pyana_examples/src/xppt_delayscan.py
.
Panel |
---|
Open an editor and save the following in a file named pyana.cfg: Code Block |
---|
|
[pyana]
modules = pyana_examples.xppt_delayscan
[pyana_examples.xppt_delayscan]
controlpv = fs2:ramp_angsft_target
ipimb_norm = XppSb3Ipm-1|Ipimb-0
ipimb_sig = XppSb3Pim-1|Ipimb-0
threshold = 0.1
outputfile = point_scan_delay.npy
|
If you look at the code (pyana_examples/src/xppt_delayscan.py) you'll notice there are no detector names in there. The names of the detectors in the XTC file are passed as parameters from the configuration file above. The ipimb_norm parameter represents the IPIMB diode used for normalization, and the configuration files set its value to "XppSb3Ipm-1|Ipimb- 0
ipimb_sig = 0" (a.k.a. IPM3). Similarly, the IPIMB diode used for signal is represented by the pipmb_sig and its value set to "XppSb3Pim-1|Ipimb-0
threshold = 0.1
outputfile = point_scan_delay.npy
" (a.k.a. PIM3). By changing these parameter values, the pyana_examples/src/xppt_delayscan.py module can easily be used for other experiments or instruments. Run pyana (start with 200 events): Code Block |
---|
|
pyana -n 200 /reg/d/psdm/XPP/xppi0310/xtc/e81-r0098-s0*
|
|
...
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)
The python code for this pyana module example resides in pyana_examples/src/xppt_image_analysis.py
.
This particular example is done with a CSPad image, but only a single section is available. For more typical CSPad module, see next section.
...