Page History
Include Page | ||||
---|---|---|---|---|
|
Table of Contents |
---|
Include Page | ||||
---|---|---|---|---|
|
About
This page provides a list of existing modules for psana framework. Only the modules that are included in the standard analysis releases appear on this page.
...
See also Example for Package ImgPixSpectra.
Anchor | ||||
---|---|---|---|---|
|
Package ImgAlgos
This packages contains a few psana
modules for analysis and image processing.
Anchor | ||||
---|---|---|---|---|
|
Module ImgAlgos::Tahometer
...
See also Example for Module ImgAlgos::Tahometer.
Anchor | ||||
---|---|---|---|---|
|
Module ImgAlgos::TimeStampFilter
This module passes only the events if their time stamp is in the requested range.
The range of allowed time stamps is defined by the configuration parameters.
...
See also Example for TimeStampFilter and XtcOutputModule.
Anchor | ||||
---|---|---|---|---|
|
Module ImgAlgos::EventNumberFilter
...
- If the
first
and/orlast
event numbers are defined, then the filter will select events in this range only. If the
evtstring
is defined, only listed events of event ranges will be selected. For example, theevtstring
parameter can be defined asCode Block bgColor #F7F7ED 2,5,11-15,20-25,29,30
that means the list of events:
Code Block bgColor #F7F7ED 2 5 11 12 13 14 15 20 21 22 23 24 25 29 30
In the
evtstring
parameter the comma "," and sign minus "-" as a dash are the only allowed separators. Blank spaces are also allowed. Other characters may abort the program. Theevtstring
mode has higher priority than the 1st mode.
ThefilterIsOn
allows easy turn on/off this filter in*.cfg
file.
Anchor | ||||
---|---|---|---|---|
|
Module ImgAlgos::EventCounterFilter
...
Code Block |
---|
2 3 6 7 9 11 15 17 28 32 ... |
Anchor | ||
---|---|---|
|
|
Module ImgAlgos::EventCodeFilter
ImgAlgos::
...
Functionality:
...
EventCodeFilter (ImgAlgos > V00-03-80) module is created by request of Silke Nelson for dark image selection based on EvrData eventCode.
Functionality: Filter selects events which have requested evtcode
in Psana::EvrData::DataV4, 3, ...
data objects in the list of Psana::EvrData::FIFOEvent
objects. Events which do not have the event code are skipped
...
.
parameter | default value | description | |||
---|---|---|---|---|---|
source | "DetInfo(: | AndorEvr) | "data source | of data||
evtcode |
| key for input data | |||
| "andorimg" | output key for image saved in the event store | |||
0 | event code, unsigned number | ||||
| 0 | filter mode: 0-off, 1-on, -1-on in inverted decision mode |
| "asdata" | out data type: implemented values: asdata (default, uint16_t), float, double, int and int16. |
| 0 | verbosity:
|
Example of configuration parameters for this module:
Code Block |
---|
modules = ... ImgAlgos.EventCodeFilter ...
[ImgAlgos.EventCodeFilter]
evtcode = 41
mode = 1
print_bits = 5 |
Anchor | ||||
---|---|---|---|---|
|
Module ImgAlgos::
...
AndorImageProducer
Functionality:
- gets Epix Andor data from the event store for specified
source
andkey_in
parameters, - puts the
ndarray<
object with camera image in the event store using specifiedconst
T,2>key_out
parameter, where the output type T is defined by theouttype
parameter.
parameter | default value | description | |
---|---|---|---|
| "DetInfo(:EpixAndor)" | source of data, it needs to be replaced for real detector to :Epix100a | |
|
|
| key for input data |
| "epix-ndarrandorimg" | output key for image saved in the event store | |
| "asdata" | out data type: implemented values: asdata (default, uint16_t), float, double, int and int16. | |
| 0 | verbosity:
|
...
Module ImgAlgos::EpixNDArrProducer
...
Functionality:
- gets pnCCD Epix data from Psana::PNCCD::FramesV1 object from the event store for specified
source
andkey_in
parameters, - puts the
ndarray<
object of shape 4x512x512const
TOUTT,3>2>
object with image in the event store using specifiedkey_out
parameter, where the output type T is defined by theouttype
parameter.
parameter | default value | description |
---|---|---|
| "DetInfo(:pnCCDEpix)" | source of data, it needs to be replaced for real detector to :Epix100a |
|
| key for input data |
| "pnccdepix-ndarr" | output key for image saved in the event store |
| "asdata" | out data type: implemented values: asdata (default, unsigned shortuint16_t), float, double, int and int16. |
| 0 | verbosity:
|
See also Example for Module ImgAlgos::EpixNDArrProducer.
Module ImgAlgos::
...
PnccdNDArrProducer
Functionality:
- gets from the event store the object with pnCCD data of typefrom Psana::PNCCD::FullFrameV1 containing four [512][512] frames with T=uint16_t, or
ndarray<const T,3>
, where shape=[4][512][512], T=unsigned short, float, double, int, or int16, FramesV1 object from the event for specified - puts the
ndarray<
object with pnccd [1024+gap_rows][1024+gap_cols] image in the event using specifiedconst
TTOUT,2>outimgkey
3>
object of shape 4x512x512 specifiedkey_out
parameter.
source
and inkey
key_in
parameters,parameter | default value | description |
---|---|---|
| "DetInfo(:pnCCD)" | source of data |
|
| key for input data |
| "pnccdimgpnccd-ndarr" | output key for image saved in event |
gap_rows | 0 | gap between top and bottom segments in number of pixels |
gap_cols | 0 | gap between left and right segments in number of pixels |
gap_value | 0 | Image effective pixel intensity value in the gap |
| "asdata" | out data type: implemented values: asdata (default, unsigned short), float, double, int and int16. |
| 0 | verbosity:
|
...
Module ImgAlgos::PnccdImageProducer
...
...
Functionality:
...
This module works with any generic camera image stored in data type Camera::FrameV#:
- gets any camera image data Camera::FrameV1 from the event store for specified
source
andkey_in
parameters,puts thendarray<
object with camera image in the event store using specified type
T,2>const
parameters.outtype
and key_out- Psana::PNCCD::FullFrameV1 containing four [512][512] frames with T=uint16_t, or
ndarray<const T,3>
, where shape=[4][512][512], T=unsigned short, float, double, int, or int16,
source
andinkey
parameters
- puts the
ndarray<
object with pnccd [1024+gap_rows][1024+gap_cols] image in the event using specifiedconst
T,2>outimgkey
parameter Special treatment for fccd960: ifNote
is not "asdata" the gain factor depending on gain bits is applied, See FCCD-Detector.outtype
parameter | default value | description | |||
---|---|---|---|---|---|
| "DetInfo(:CamerapnCCD)" | source of data | |||
|
| key for input data | |||
| "pnccdimg" | output key for image saved in event | |||
| "asdata" | out data type: implemented values: asdata (default, uint16_t), float, double, int and int16. | |||
gap_rows | 0 | gap between top and bottom segments in number of pixels | |||
gap_cols | 0 | gap between left and right segments in number of pixels | |||
gap_value | 0 | Image effective pixel intensity value in the gap |
| true | on/off the amplitude offset using configuration data (not applied for |
| 0 | verbosity:
|
See also Example for Module ImgAlgos::CameraImageProducerPnccdImageProducer.
Module ImgAlgos::
...
CameraImageProducer
This module works with any generic camera image stored in data type Camera::FrameV#Functionality:
- gets the Princeton or Pimax any camera image data Princeton::FrameV1/2 or PimaxCamera::FrameV1 from the event store for specified
source
andkey_in
parameters, puts the
ndarray<
object with camera image in the event store using specified type
T,2>const
parameters.outtype
and key_outNote Special treatment for fccd960: if
is not "asdata" the gain factor depending on gain bits is applied, See FCCD-Detector.outtype
parameter | default value | description |
---|---|---|
| "DetInfo(:PrincetonCamera)" | source of data |
|
| key for input data (raw - by default) |
| "imagepnccdimg" | output key for image saved in event |
| "asdata" | out data type: implemented values: asdata (default, uint16_t), float, double, int and int16. |
| true | on/off the amplitude offset using configuration data (not applied for |
| 0 | verbosity:
|
See also Example for Module ImgAlgos::PrincetonImageProducer.
...
...
Module ImgAlgos::
...
PrincetonImageProducer
Functionality:
- gets the Princeton or Pimax camera image data Princeton::FrameV1/2 or Pimax::FrameV1 from the event store for specified Gets acqiris configuration and data from
Acqiris::ConfigV1
andAcqiris::DataDescV1
, objects usingparameters source
andkey_in
; - produces
ndarray<const double,2>
ofshape[] = {nbrChannels, nbrSamples}
for waveforms and time stamps; - saves configuration data in the file defined by
fname_prefix
; - parameters,
- puts the
ndarray<
object with camera image in the event using specified type
T,2>const
parameterssaves waveforms and time stamps in the event store with keysouttype
and key_outkey_wform
andkey_wtime
.
parameter | default value | description | ||
---|---|---|---|---|
| "DetInfo(:AcqirisPrinceton)" | source of data | ||
|
| key for input data (raw - by default (empty) – raw data)default) | ||
| "acq_wformimage" | output key for waveforms image saved in event | ||
| " | acq_wtime"output key for waveform times saved in event | ||
|
| file name prefix for configuration parameters (by default (empty) – do not save file) | ||
asdata" | out data type: implemented values: asdata (default, uint16_t), float, double, int and int16. | correct_t | true | on/off switch for time correction; if =false - array indexes are the same as in raw data waveform |
| 0 | verbosity:
|
...
|
See also Example for Module ImgAlgos::
...
Anchor |
---|
...
|
...
|
Module ImgAlgos::
...
AcqirisArrProducer
- Gets Acqiris waveforms from event store as
ndarray<
object acqiris configuration and data fromconst
double,2>Acqiris::ConfigV1
andAcqiris::DataDescV1
, objects usingparameters source
andkey_in
; - performs waveform selection controlled by parameters:
thresholds
,is_postive_signal
,do_inverse_selection
, in the range depending on local event numbersskip_events
andproc_events;
- produces
ndarray<const double,2>
ofshape[] = {nbrChannels, nbrSamples}
for waveforms and time stamps; - saves configuration data in the file defined by
fname_prefix
; - saves waveforms and time stamps in the event store with keys
key_wform
andkey_wtime
after number of eventsproc_events
or at the end of job (whatever happens first), saves array of averaged waveforms in the text file with name constructed fromfname_ave_prefix
and in the event store using parameterssource
and key_average
.
parameter | default value | description | |||||
---|---|---|---|---|---|---|---|
|
| Source source of data. | |||||
|
| Key key for input data (by default (raw - by default).empty) – raw data) | |||||
|
| output key for waveforms saved in event | |||||
| average
|
| -ave
| Keyword output key for | averaged waveform | array times saved in | the event |
| ave_
|
| acq-ave
| Text file name prefix | for averaged array, full name will be extended by the experiment name, run number and suffix |||
thresholds | "" | List of threshold values for all Acqiris channels separated by space. If empty – threshold selection is not applied, all waveforms are averaged. | |||||
is_positive_signal |
| Space-separated list of 1/0 values indicating signal polarity. For example, "1 1 1 0 1" (without the quotes!) would indicate Acqiris channels 1,2,3,5 contained positive signal polarity, while channel 4 contained a negative signal polarity. | |||||
do_inverse_selection |
| Space-separated ist of 1/0 values indicating which waveforms to include in average. For example, "0 0 0 1 0" (without the quotes) would tell the code to average only waveforms that do not cross the threshold for channels 1,2,3,5 while channel 4 would average only waveforms that do cross the threshold. | |||||
skip_events |
| Number of events (from the beginning of job) to skip before begin averaging. | |||||
|
| Number of events for averaging. | |||||
|
| Verbosity:
|
Example for Module ImgAlgos::AcqirisAverage
...
Module ImgAlgos::AcqirisCalib
- Gets Acqiris waveforms from event store as
ndarray<
object using parametersconst
double,2>source
andkey_in
; - processes events in the range depending on local event numbers
skip_events
andproc_events;
- at the 1st processed event loads the fname_base_line file with baseline
ndarray<
;const
double,2> - subtract baseline from waveforms;
- save corrected waveforms in the event store as
ndarray<
object usingconst
double,2>parameters source
andkey_out.
parameter | default value | description |
---|---|---|
| "DetInfo(:Acqiris)" | Source of data. |
| "acq_wform" | Key for input ndarray with raw waveforms from
|
key_out | "wf-calibrated" | Key for output ndarray with calibrated waveforms. |
fname_base_line | "acq-ave" | Name of the input text file with array of the baselines for active Acqiris channels. By default this name coincides with the name of the file produced by the module |
skip_events |
| Number of events (from the beginning of job) to skip before begin subtraction. |
|
| Number of events for subtraction. |
| 0 | Verbosity:
|
Example for Module ImgAlgos::AcqirisCalib
...
Module ImgAlgos::AcqirisCFD
...
for configuration parameters (by default (empty) – do not save file) | ||
correct_t | true | on/off switch for time correction; if =false - array indexes are the same as in raw data waveform |
|
| verbosity:
|
Example for Module ImgAlgos::AcqirisArrProducer
Anchor | ||||
---|---|---|---|---|
|
Module ImgAlgos::AcqirisAverage
- Gets Acqiris waveforms from event store as
ndarray<
object using parametersconst
double,2>source
andkey_in
; - performs waveform selection controlled by parameters:
thresholds
,is_postive_signal
,do_inverse_selection
, in the range depending on local event numbersskip_events
andproc_events;
- after number of events
proc_events
or at the end of job (whatever happens first), saves array of averaged waveforms in the text file with name constructed fromfname_ave_prefix
and in the event store using parameterssource
andkey_
average
.
parameter | default value | description |
---|---|---|
|
| Source of data. |
|
| Key for input data (raw - by default). |
key_average | "acq-ave" | Keyword for averaged waveform array saved in the evt store. If empty – array is not saved. |
fname_ave_prefix | "acq-ave" | Text file name prefix for averaged array, full name will be extended by the experiment name, run number and suffix "-ave-wfs.txt" , for example: "acq-amo01509-r0125-ave-wfs.txt". |
thresholds | "" | List of threshold values for all Acqiris channels separated by space. If empty – threshold selection is not applied, all waveforms are averaged. |
is_positive_signal |
| Space-separated list of 1/0 values indicating signal polarity. For example, "1 1 1 0 1" (without the quotes!) would indicate Acqiris channels 1,2,3,5 contained positive signal polarity, while channel 4 contained a negative signal polarity. |
do_inverse_selection |
| Space-separated ist of 1/0 values indicating which waveforms to include in average. For example, "0 0 0 1 0" (without the quotes) would tell the code to average only waveforms that do not cross the threshold for channels 1,2,3,5 while channel 4 would average only waveforms that do cross the threshold. |
skip_events |
| Number of events (from the beginning of job) to skip before begin averaging. |
|
| Number of events for averaging. |
|
| Verbosity:
|
Example for Module ImgAlgos::AcqirisAverage
Anchor | ||||
---|---|---|---|---|
|
Module ImgAlgos::AcqirisCalib
- Gets Acqiris waveforms from event store as
ndarray<
object using parametersconst
double,2>source
andkey_in
; - processes events in the range depending on local event numbers
skip_events
andproc_events;
- at the 1st processed event loads the fname_base_line file with baseline
ndarray<
;const
double,2> - subtract baseline from waveforms;
- save corrected waveforms in the event store as
ndarray<
object usingconst
double,2>parameters source
andkey_out.
saves edges into the event as a set of ndarray<double,1>;
parameter | default value | description |
---|---|---|
| "DetInfo(:Acqiris)" | Source of data. |
|
...
| " |
...
acq_wform" | Key for input ndarray with |
...
raw waveforms from
|
key_ |
...
out | " |
...
wf-calibrated" | Key for |
...
output ndarray with |
...
calibrated waveforms. |
...
fname_base_ |
...
line | " |
...
Key for output ndarray<double,1> with calibrated waveforms. This key will have the acqiris channel number (1 thru 20) appended to the end of it, and the data for that channel will be added to the event only if edges were found.
acq-ave" | Name of the input text file with array of the baselines for active Acqiris channels. By default this name coincides with the name of the file produced by the module | |
skip_events |
| Number of events (from the beginning of job) to skip before begin subtraction. |
|
| Number of events for subtraction. |
| 0 | Verbosity:
|
Example for Module ImgAlgos::AcqirisCalib
Anchor | ||||
---|---|---|---|---|
|
Module ImgAlgos::AcqirisCFD
...
""
...
A list of baseline values (one per channel) to subtract from the waveform in volts.
...
""
...
A list of fractions (one per channel) between 0 and 1. The edge-time reported will be at the time when the pulse is at this fraction of the peak value.
...
""
...
A list of threshold values (one per channel) in volts that indicate a new edge should be found. If this value is less than the baseline, then the algorithm will look for negative pulses, otherwise it will look for positive pulses.
...
""
...
A list of deadtimes (one per channel) in seconds. After each edge the algorithm will ignore any new hits in this time interval.
...
""
...
A list of 0/1 values (one per channel) indicating whether edge-times are desired for leading edges (1) or falling edges (0).
Example for Module ImgAlgos::AcqirisCFD
Module ImgAlgos::NDArrImageProducer
This module converts any (detector-associated) ndarray in to image.
For any available in the event store ndarray<
defined by the const
T,NDim>,source
and key_in
parameters, and which size is equal to the number of pixels in the detector, this module creates 2-d image ndarray<
and saves it in the event store with key_out. TOUT is defined by the type_out. Pixel geometry array is retreived from the calibration file of "geometry" type from default standard or specified in const
TOUT,2>calibdir
directory.
Configuration parameters:
- Gets Acqiris waveforms from event store as
ndarray<
object using parametersconst
double,2>source,
key_wform, key_wtime
; runs constant-fraction discriminator algorithm on all acqiris channels using user-specified per-channel parameters;
saves edges into the event as a set of ndarray<double,1>;
parameter
default value
description
source
"DetInfo(:Acqiris)"
...
Source of data
...
.
...
key_
...
wform
"acqiris_wform"
...
Key for input
...
print_bits
...
0
...
module verbosity:
- =0 - print nothing
- +1 - input pars
- +2 - info about (non-) availability of the calibration file
- +4 - event record
- +8 - info about produced image
- +16 - size of types table
- +32 - pixel coordinates
- +64 - detailed information about geometry file processing
ndarray with waveforms (either raw, or subtracted using AcqirisCalib module) from
evt
store.key_wtime
"acqiris_wtime"
Key for input ndarray with waveform times from
evt
store.key_edges "acqiris_edges_"
Key for output ndarray<double,1> with calibrated waveforms. This key will have the acqiris channel number (1 thru 20) appended to the end of it, and the data for that channel will be added to the event only if edges were found.
baselines ""
A list of baseline values (one per channel) to subtract from the waveform in volts.
fractions ""
A list of fractions (one per channel) between 0 and 1. The edge-time reported will be at the time when the pulse is at this fraction of the peak value.
thresholds ""
A list of threshold values (one per channel) in volts that indicate a new edge should be found. If this value is less than the baseline, then the algorithm will look for negative pulses, otherwise it will look for positive pulses.
deadtimes ""
A list of deadtimes (one per channel) in seconds. After each edge the algorithm will ignore any new hits in this time interval.
leading_edges ""
A list of 0/1 values (one per channel) indicating whether edge-times are desired for leading edges (1) or falling edges (0).
Example for Module ImgAlgos::AcqirisCFD
Module ImgAlgos::NDArrImageProducer
This module converts any (detector-associated) ndarray in to image.
For any available in the event store ndarray<
defined by the const
T,NDim>,source
and key_in
parameters, and which size is equal to the number of pixels in the detector, this module creates 2-d image ndarray<
and saves it in the event store with key_out. TOUT is defined by the type_out. Pixel geometry array is retreived from the calibration file of "geometry" type from default standard or specified in const
TOUT,2>calibdir
directory.
Configuration parameters:
parameter | default value | description |
---|---|---|
| "" | input source of data. This parameter MUST BE specified, for example: CxiDs1.0:Cspad.0 |
| "" | key for input data, for example it might be "calibrated", by default (empty) raw data |
key_out | "image" | key for output image in the event store. |
type_out | "asinp" | type of data in output image array. Possible values - "asinp"-the same type as input array, "int16", "float", "double", "int". |
| 0 | module verbosity:
|
Additional parameters which can be used for special applications like alignment:
parameter | default value | description |
---|---|---|
| "" | non-default calibration directory for "geometry" file |
calibgroup | "" | by-default calibration group is retreived from source name as <detector>::CalibV1 |
oname | "" | top object name in the hierarchial geometry file |
oindex | 0 | top object index in the hierarchial geometry file |
pix_scale_size_um | 0 | set the ize of the image bin. By-default this value is extracted from sensor. |
x0_off_pix | 0 | offset of the top geometry object origin x0 coordinate on the image in number of pixels |
y0_off_pix | 0 | offset of the top geometry object origin y0 coordinate on the image in number of pixels |
mode | 0 | mapping algorithm for overlapping pixels of ndarray on the 2-D image; 0-last pixel substitutes intensity, 1-use pixel with maximal intensity, 2-accumulate(sum) intensity |
do_tilt | true | on/off tilt angle correction for sensors |
See also Example for Module ImgAlgos::NDArrImageProducer.
Module ImgAlgos::NDArrAverage
This module averages over events the per-element data of the image array (ndarray<
, where T is implemented for almost all types: int, int16, uint, float, double etc., NDim≤5) and saves files for sum, averaged, rms values, mask, and, the hot pixel map. Input const
T,NDim>ndarray
can be specified by the source
and key
parameters. Averaging may have up to three stages, depending on configuration parameters:
- 0-stage: the pixel amplitudes are averaged without any constrains for events from 0 to
evts_stage1
, the preliminary averaged and rms values are defined for each pixel at the end of this stage. - 1-stage: starting from event
evts_stage1
the pixel data are collected only forabs(amplitude-average0) < gate_width1
. At the end of this stage the preliminary averaged and rms values are defined for each pixel. - 2-stage: starting from the event
evts_stage1 + evts_stage2
the pixel data are collected only forabs(amplitude-average1) < gate_width2
. At the end of this stage the preliminary averaged and rms values are defined for each pixel and saved in the files specified by theavefile
andrmsfile
parameters, respectively.
This 3-stage averaging algorithm eliminates large statistical fluctuations in the pixel amplitude spectrum.
If the parameter thr_rms_ADU
is set ≤0 then threshold value is defined automatically using constrained averaging of pixel rms values in 3 iterations. The threshold value is defined as mean+5*rms
.
parameter | default value | description |
---|---|---|
| DetInfo(:Opal1000) | input source of data |
|
| key for input data, for example, it might be "calibrated" |
| "" | out file with sum of amplitudes, saved if the name is not empty |
| "" | out file with averaged amplitudes, saved if the name is not empty |
| "" | out file with rms, saved if the name is not empty |
maskfile | "" | out file with pixel mask with 0/1-for bad/good pixels, saved if the name is not empty |
| "" | out file with pixel bit-words: 0/1/2/4/8 for good/hot/saturated/cold/cold-rms, saved if the name is not empty |
maxfile | "" | out file with maximal value per pixel over events |
ftype | txt | out file type: txt (default), metatxt, bin |
| 0. | minimal threshold on rms (in ADU); If rms lower than this threshold - pixel is cold-rms. |
| 10000. | maximal threshold on rms (in ADU); =0 - use auto-evaluated threshold. If rms exceeds this threshold - pixel is hot. |
| -100000. | threshold on minimal intensity (in ADU); if ave exceeds this threshold - pixel is good |
| 100000. | threshold on maximal intensity (in ADU); if ave exceeds this threshold - pixel is bad |
| 1000000 | number of events before stage 1 |
| 0 | additional number of events before stage 2 |
| 0 | gate_width for stage 1 |
| 0 | gate_width for stage 2 |
| 0 | module verbosity:
|
If all file names are empty (by default), the files with pre-defined names "arr-ave-<exp>-r<run>.dat" and "arr-rms-<exp>-r<run>.dat" will be saved for averaged and rms arrays, respectively. Otherwise, the files with specified names will be saved.
Default parameters are set for regular single-stage averaging without any constrains.
See also Example for Module ImgAlgos::NDArrAverage.
Module ImgAlgos::NDArrCalib
Functionality
- NDArrCalib uses the
source
andkey_in
parameters to get anyndarray<
object from the event store, whereconst
T,NDIM>T
stands for
orint16_t,
uint16_t, int, float, uint8_t,double, 1≤NDim≤5
, - automaticly gets parameters from calibration store for types
pedestals, common_mode, pixel_status, pixel_gain,
andpixel_rms,
- gets parameters from user-defined files
fname_bkgd
andfname_mask
, if their names are specified, the specified by the
do_...
parameter corrections are applied to raw datandarray<
as follows:const
T,NDIM>
- subtracts pedestals,
- subtracts common mode,
- subtracts normalized background,
- apply gain factors,
- apply hot/bad pixel_status mask,
- apply mask (1/0 = good/bad pixels),
- apply threshold as a common low level,
- apply per-pixel threshold as N*RMS,
- and saves the corrected ndarray<
const TOUT,NDim
> in the event with keykey_out
, whereTOUT
is controlled by the parameterouttype,
which can be set todouble
(default),float
,int,
andint16
. - In ImgAlgos V00-02-01 implemented detectors: CsPad, CsPad2x2, Pnccd, Princeton, Andor, Opal1000, Opal4000
Control on corrections
Code Block | ||
---|---|---|
| ||
A_cor = A_raw
(1) - pedestal | if do_peds==true and pedestals are available in calib store
(2) - common mode | if do_cmod==true and common_mode parameters are available in calib store
(3) - N*background | if do_bkgd==true and the file name is specified in the parameter fname_bkgd and bkgd_ind_* are set
(4) * gain | if do_gain==true and pixel_gain are available in calib store |
Additional parameters which can be used for special applications like alignment:
parameter | default value | description |
---|---|---|
| "" | non-default calibration directory for "geometry" file |
calibgroup | "" | by-default calibration group is retreived from source name as <detector>::CalibV1 |
oname | "" | top object name in the hierarchial geometry file |
oindex | 0 | top object index in the hierarchial geometry file |
pix_scale_size_um | 0 | set the ize of the image bin. By-default this value is extracted from sensor. |
x0_off_pix | 0 | offset of the top geometry object origin x0 coordinate on the image in number of pixels |
y0_off_pix | 0 | offset of the top geometry object origin y0 coordinate on the image in number of pixels |
mode | 0 | mapping algorithm for overlapping pixels of ndarray on the 2-D image; 0-last pixel substitutes intensity, 1-use pixel with maximal intensity, 2-accumulate(sum) intensity |
do_tilt | true | on/off tilt angle correction for sensors |
...
Module ImgAlgos::NDArrAverage
This module averages over events the per-element data of the image array (ndarray<
, where T is implemented for almost all types: int, int16, uint, float, double etc., NDim≤5) and saves files for sum, averaged, rms values, mask, and, the hot pixel map. Input const
T,NDim>ndarray
can be specified by the source
and key
parameters. Averaging may have up to three stages, depending on configuration parameters:
- 0-stage: the pixel amplitudes are averaged without any constrains for events from 0 to
evts_stage1
, the preliminary averaged and rms values are defined for each pixel at the end of this stage. - 1-stage: starting from event
evts_stage1
the pixel data are collected only forabs(amplitude-average0) < gate_width1
. At the end of this stage the preliminary averaged and rms values are defined for each pixel. - 2-stage: starting from the event
evts_stage1 + evts_stage2
the pixel data are collected only forabs(amplitude-average1) < gate_width2
. At the end of this stage the preliminary averaged and rms values are defined for each pixel and saved in the files specified by theavefile
andrmsfile
parameters, respectively.
This 3-stage averaging algorithm eliminates large statistical fluctuations in the pixel amplitude spectrum.
If the parameter thr_rms_ADU
is set ≤0 then threshold value is defined automatically using constrained averaging of pixel rms values in 3 iterations. The threshold value is defined as mean+5*rms
.
parameter | default value | description |
---|---|---|
| DetInfo(:Opal1000) | input source of data |
|
| key for input data, for example, it might be "calibrated" |
| "" | out file with sum of amplitudes, saved if the name is not empty |
| "" | out file with averaged amplitudes, saved if the name is not empty |
| "" | out file with rms, saved if the name is not empty |
maskfile | "" | out file with pixel mask with 0/1-for bad/good pixels, saved if the name is not empty |
| "" | out file with pixel bit-words: 0/1/2/4 for good/hot/saturated/cold, saved if the name is not empty |
maxfile | "" | out file with maximal value per pixel over events |
ftype | txt | out file type: txt (default), metatxt, bin |
| 10000. | threshold on rms (in ADU); =0 - use auto-evaluated threshold. If rms exceeds this threshold - pixel is hot. |
| -100000. | threshold on minimal intensity (in ADU); if ave exceeds this threshold - pixel is good |
| 100000. | threshold on maximal intensity (in ADU); if ave exceeds this threshold - pixel is bad |
| 1000000 | number of events before stage 1 |
| 0 | additional number of events before stage 2 |
| 0 | gate_width for stage 1 |
| 0 | gate_width for stage 2 |
| 0 | module verbosity:
|
If all file names are empty (by default), the files with pre-defined names "arr-ave-<exp>-r<run>.dat" and "arr-rms-<exp>-r<run>.dat" will be saved for averaged and rms arrays, respectively. Otherwise, the files with specified names will be saved.
Default parameters are set for regular single-stage averaging without any constrains.
See also Example for Module ImgAlgos::NDArrAverage.
Module ImgAlgos::NDArrCalib
Functionality
- NDArrCalib uses the
source
andkey_in
parameters to get anyndarray<
object from the event store, whereconst
T,NDIM>T
stands for
orint16_t,
uint16_t, int, float, uint8_t,double, 1≤NDim≤5
, - automaticly gets parameters from calibration store for types
pedestals, common_mode, pixel_status, pixel_gain,
andpixel_rms,
- gets parameters from user-defined files
fname_bkgd
andfname_mask
, if their names are specified, the specified by the
do_...
parameter corrections are applied to raw datandarray<
as follows:const
T,NDIM>
- subtracts pedestals,
- subtracts common mode,
- subtracts normalized background,
- apply gain factors,
- apply hot/bad pixel_status mask,
- apply mask (1/0 = good/bad pixels),
- apply threshold as a common low level,
- apply per-pixel threshold as N*RMS,
- and saves the corrected ndarray<
const
double,NDim> in the event with keykey_out
- In ImgAlgos V00-02-01 implemented detectors: CsPad, CsPad2x2, Pnccd, Princeton, Andor, Opal1000, Opal4000
Control on corrections
Code Block | ||
---|---|---|
| ||
A_cor = A_raw
(1) - pedestal | if do_peds==true and pedestals are available in calib store
(2) - common mode | if do_cmod==true and common_mode parameters are available in calib store
(3) - N*background | if do_bkgd==true and the file name is specified in the parameter fname_bkgd and bkgd_ind_* are set
(4) * gain | if do_gain==true and pixel_gain are available in calib store
(5) apply bad pixel status | if do_stat==true and pixel_status are available in calib store
(6) apply mask | if do_mask==true and the file name is specified in the parameter fname_mask. Parameter masked_value is used to substitute masked values.
(7) apply N*RMS threshold | if do_nrms==true and pixel_rms are available in calib store, parameters threshold_nrms and below_thre_value are set
(8) apply common threshold | if do_thre==true. Parameter below_thre_value is used to substitute below threshold values.
|
...
parameter | default value | description |
---|---|---|
| DetInfo(:Camera) | source of data |
|
| key for input |
| calibrated | output key for calibrated image saved in event |
outtype | double | output ndarray data type can be set to double (default), float , int, and int16 . |
| false | true: pedestals subtracted if available in calib store |
| false | true: common mode correction is evaluated and applied [Ref.] |
| false | true: bad/hot pixels in pixel_status are masked |
| false | true: mask is applied if the file |
| false | true: normalized background is subtracted if the file |
| false | true: |
| false | true: per-pixel threshold is applied if |
| false | true: low level |
|
| input file name for background, applied if the file name is specified |
|
| input file name for mask, applied if the file name is specified |
| 0. | intensity value (in ADU) substituted for masked pixels |
| 3. | threshold as a number of sigmas to |
| 0. | common low level threshold in ADU |
| 0. | intensity substituted for pixels below threshold |
| 0 | minimal index in flatten ndarray, which is used for background normalization |
| 100 | maximal index in flatten ndarray, which is used for background normalization |
| 2 | index increment in flatten ndarray, which is used for background normalization |
| 0 | verbosity:
|
...
parameter | default value | description |
---|---|---|
| "DetInfo()" | source of data |
|
| key for input data ndarray, default is empty - raw data |
| key for output list of peaks as std::vector<AlgDroplet::Droplet> (default is empty - do not save) | |
key_smeared | ||
| 10 | low threshold on pixel amplitude |
| 100 | high threshold on pixel amplitude |
| 1.5 | width of the Gaussian for smearing; =0-no smearing |
| 3 | radius in pixel for smearing - radial size of matrix of weights |
| 3 | radius in pixel for peak finding - radial size of the region to search for local maximum |
low_value | 0 | value substituted for pixels with intensity below threshold and outside window |
|
| list of windows, each window is defined by 5 parameters; |
mask | path to the file with mask, by default (empty) mask is not used | |
masked_value | 0 | value substituted for masked pixels (0-masked, non-zero - good pixel) |
|
| Common prefix for saved files. If non-empty - save files with image and list of droplets for each event with found droplets. The file name is formed as <prefix>-r####-e######-<suffix>.txt, where hash stands for number (0-9), suffix may be |
| 0 | module verbosity:
|
...
This module is a part of complex algorithm, described in Command Line Interface For Time Correlation Analysis.
This module is designed for parallel image processing for correlation analysis.
Functionality:
...
This package contains python modules which work with both frameworks pyana and psana. Functionality of these modules resembles modules from C++ package ImgAlgos. The difference between two frameworks at code level is explained in Migration from pyana to psana.
Module pyimgalgos.cspad_arr_producer
...
The translator package include the H5Output module which translates xtc to hdf5. For more information see the page Outdated: The XTC - to - HDF5 Translator
Package psana_test
Anchor | ||||
---|---|---|---|---|
|
...
Code Block | ||||
---|---|---|---|---|
| ||||
================== === begin job ==== # first the epics aliases are printed during begin job. Epics Aliases: total = 240 Be_xpos Be_ypos Be_zpos ... # next the epics pv, as they appear during beginJob. # This corresponds to the xtc configure transition. # At this point, these are ctrl pvs. Epics PV pvName=HX2:DVD:GCC:01:PMON pvid=106 dbrtype=34 isCtrl=1 pvName=HX2:DVD:GCC:01:PMON numElements=1 status=0 severity=0 units=T upper_disp_limit=1.0000e-02 lower_disp_limit=0.0000e+00 upper_alarm_limit=0.0000e+00 upper_warning_limit=0.0000e+00 lower_warning_limit=0.0000e+00 lower_alarm_limit=0.0000e+00 upper_ctrl_limit=1.0000e-02 lower_ctrl_limit=0.0000e+00 data=5.0000e-09 ... # After epics, we get the content of the psana env configStore. # The dump module is getting all keys from the configStore(), # then retrieving each object. Objects that have a xtc type id, or are # an numpy array will be printed. # For each object, we first get a string describing the even key: type=psana.ControlData.ConfigV2, src=ProcInfo(0.0.0.0, pid=7670) # then we get the data of the object. # most all data for a Psana object is obtained through accessor methods. # methods that return unsigned ints print in hex. # methods that return signed ints print in decimal. # methods that return floats print in scientific format with 4 decimals of precision. npvControls: 0x1 npvMonitors: 0x0 npvLabels: 0x0 events: 0x1E0 uses_duration: 0x0 uses_events: 0x1 # methods that return a compound type, like duration() that returns the compound type time # are printed as follows: duration: nanoseconds: 0x0 seconds: 0x0 # some methods return a python list. Each element in the list is printed separately: pvControls[0]: name: las_lensh index: 0xFFFFFFFF value: 0.0000e+00 array: 0x0 ... # epics config is not dumped, see the EPICS alias list for how Psana stores this data type=psana.Epics.ConfigV1, src=DetInfo(EpicsArch.0:NoDevice.0) epicsConfig not dumped # cspad config is an example which has methods that return ndarrays type=psana.CsPad.ConfigV4, src=DetInfo(XppGon.0:Cspad.0) ... numSect: 0x20 # some methods return a list of simple types, these are printed in one line roiMask [0]=0xFF [1]=0xFF [2]=0xFF [3]=0xFF numAsicsStored [0]=0x10 [1]=0x10 [2]=0x10 [3]=0x10 ... quads[0]: ... dp: # for an ndarray, we print the type, dimensions, adler32 checksum, and quartile # statistics (min, 25th percentile, median, 75th percentile, and max): pots: ndarray_uint8_1: dim=[ 80 ] adler32=0x231B31F5 min=0x0 25th=0x3F median=0xB0 75th=0xFF max=0xFF gm: gainMap: ndarray_uint16_2: dim=[ 185 x 194 ] adler32=0x18730001 min=0x0 25th=0x0 median=0x0 75th=0x0 max=0x0 ... =============================================================== === beginrun 0 === # typically, there is nothing new in beginrun =============================================================== === begincalibcycle run=0 step=0 === # having dumped the entire initial contents of epics and the config store, # the dump module will now only print changes to epics or the config. # That is it remembers how each epics pv and config object printed the last # time it saw it. With each new transition, it looks at all the epics pv and # config objects. If any change, they are dumped. # The control data changed in the calib cycle: type=psana.ControlData.ConfigV2, src=ProcInfo(0.0.0.0, pid=7670) npvControls: 0x1 npvMonitors: 0x0 npvLabels: 0x0 events: 0x1E0 uses_duration: 0x0 uses_events: 0x1 duration: nanoseconds: 0x0 seconds: 0x0 pvControls[0]: name: las_lensh index: 0xFFFFFFFF value: -4.9997e-01 array: 0x0 are dumped. # nextThe wecontrol seedata eventchanged data,in printingthe thecalib following: =============================================================== === event: run=0 step=0 event=0 seconds= 1362889345 nanoseconds= 770371931 fiducials= 19593 # at this point, all epics pv's are replaced with TIME pv's, not the stamp.sec, stamp.nsec below: Epics PV pvName=HX2:DVD:GCC:01:PMON pvid=106 dbrtype=20 isTime=1 numElements=1 status=0 severity=0 stamp.sec=731737344 stamp.nsec=134374000 data=5.2000e-09 ... # while most epics pv's have one value, there are some with more than one. If a EPICS pv has less than 20 values, they are all printed, otherwise the typical ndarray summary is printed. # now we get into regular event data type=psana.EvrData.DataV3, src=DetInfo(NoDetector.0:Evr.0) numFifoEvents: 0x2 fifoEvents[0]: timestampHigh: 0x4C89 timestampLow: 0x32A6 eventCode: 0x29 fifoEvents[1]: timestampHigh: 0x4C89 timestampLow: 0x2E4C eventCode: 0x8C type=psana.CsPad.DataV2, src=DetInfo(XppGon.0:Cspad.0) quads[0]: seq_count: 0x1 ticks: 0x329D fiducials: 0x4C89 sb_temp: ndarray_uint16_1: dim=[ 4 ] adler32=0x4FC00AC min=0x7 25th=0x8 median=0x9 75th=0x291 max=0x291 frame_type: 0x4 data: ndarray_int16_3: dim=[ 8 x 185 x 388 ] adler32=0xAD5ACF7F min=0 25th=1281 median=1346 75th=1475 max=16383 virtual_channel: 0x0 lane: 0x0 tid: 0x0 acq_count: 0x85 op_code: 0x85 quad: 0x0 sectionMask: 0xFF quads[1cycle: type=psana.ControlData.ConfigV2, src=ProcInfo(0.0.0.0, pid=7670) npvControls: 0x1 npvMonitors: 0x0 npvLabels: 0x0 events: 0x1E0 uses_duration: 0x0 uses_events: 0x1 duration: nanoseconds: 0x0 seconds: 0x0 pvControls[0]: name: las_lensh index: 0xFFFFFFFF value: -4.9997e-01 array: 0x0 # next we see event data, printing the following: =============================================================== === event: run=0 step=0 event=0 seconds= 1362889345 nanoseconds= 770371931 fiducials= 19593 # at this point, all epics pv's are replaced with TIME pv's, not the stamp.sec, stamp.nsec below: Epics PV pvName=HX2:DVD:GCC:01:PMON pvid=106 dbrtype=20 isTime=1 numElements=1 status=0 severity=0 stamp.sec=731737344 stamp.nsec=134374000 data=5.2000e-09 ... # while most epics pv's have one value, there are some with more than one. If a EPICS pv has less than 20 values, they are all printed, otherwise the typical ndarray summary is printed. # now we get into regular event data type=psana.EvrData.DataV3, src=DetInfo(NoDetector.0:Evr.0) numFifoEvents: 0x2 fifoEvents[0]: timestampHigh: 0x4C89 timestampLow: 0x32A6 eventCode: 0x29 fifoEvents[1]: timestampHigh: 0x4C89 timestampLow: 0x2E4C eventCode: 0x8C type=psana.CsPad.DataV2, src=DetInfo(XppGon.0:Cspad.0) quads[0]: seq_count: 0x1 ticks: 0x329D fiducials: 0x4C89 sb_temp: ndarray_uint16_1: dim=[ 4 ] adler32=0x2DB006A0x4FC00AC min=0x7 25th=0xA0x8 median=0xA0x9 75th=0x34B0x291 max=0x34B0x291 frame_type: 0x4 data: ndarray_int16_3: dim=[ 8 x 185 x 388 ] adler32=0xD28441BE min=0 25th=1316 median=1374 75th=1504 max=16383 virtual_channel: 0x0 lane: 0x0 tid: 0x0 acq_count: 0x85 op_code: 0x85 quad: 0x1 sectionMask: 0xFF |
src aliases
If a source alias has been defined, it will show up when the event key is printed:
type=psana.Pimax.FrameV1, src=DetInfo(AmoEndstation.0:Pimax.0) alias=pimax
Options
Several options allow you to control the output of psana_test.dump
The most useful are
include = term1 term2
exclude = term1 term2
These are used to filter the key strings. For example, running
psana -m psana_test.dump -o psana_test.dump.include=10k exp=mob30114:run=145
Would only dump event keys that had 10k in them, effectively giving you only Epix::Config10KV1 and psana.Epix.ElementV1 since these are the only types coming from the source DetInfo(NoDetector.0:Epix10k.0).
Other options one could set are:
...
dim=[ 8 x 185 x 388 ] adler32=0xAD5ACF7F min=0 25th=1281 median=1346 75th=1475 max=16383
virtual_channel: 0x0
lane: 0x0
tid: 0x0
acq_count: 0x85
op_code: 0x85
quad: 0x0
sectionMask: 0xFF
quads[1]:
seq_count: 0x1
ticks: 0x329D
fiducials: 0x4C89
sb_temp: ndarray_uint16_1: dim=[ 4 ] adler32=0x2DB006A min=0x7 25th=0xA median=0xA 75th=0x34B max=0x34B
frame_type: 0x4
data: ndarray_int16_3: dim=[ 8 x 185 x 388 ] adler32=0xD28441BE min=0 25th=1316 median=1374 75th=1504 max=16383
virtual_channel: 0x0
lane: 0x0
tid: 0x0
acq_count: 0x85
op_code: 0x85
quad: 0x1
sectionMask: 0xFF |
src aliases
If a source alias has been defined, it will show up when the event key is printed:
type=psana.Pimax.FrameV1, src=DetInfo(AmoEndstation.0:Pimax.0) alias=pimax
Options
Several options allow you to control the output of psana_test.dump
The most useful are
include = term1 term2
exclude = term1 term2
These are used to filter the key strings. For example, running
psana -m psana_test.dump -o psana_test.dump.include=10k exp=mob30114:run=145
Would only dump event keys that had 10k in them, effectively giving you only Epix::Config10KV1 and psana.Epix.ElementV1 since these are the only types coming from the source DetInfo(NoDetector.0:Epix10k.0).
Other options one could set are:
epics = False do not print epics
aliases = False do not print the EPICS alias list
dump_aliases=True follow EPICS aliases to print the EPICS pv's they point to
dump_sml=True dump the small data type (if found, psana should automatically replace these proxies)
regress_dump=True do not print the DAQ assigned pvId when printing EPICS
dump_beginjob_evt=False do not dump begin job data
output_file = filename write output to filename
config = False do not print the contents of the configStore, only regular event data
counter = False do not print the counter string that labels event numbers and calib cycle numbers
header = False
indent = 4 change the indent from the default of 2 to 4
Library Usage
Two functions are provided in the Python psana_test package that allow Python scripts to turn Psana objects into strings. A Python script could include the following function to build dictionaries describing the state of the event, configStore, and epicsStore:
Code Block | ||
---|---|---|
| ||
from psana_test import obj2str, epicsPvToStr
def getPsanaState(event, configStore, epicsStore):
evtDict = {}
cfgDict = {}
epicsDict = {}
for key in event.keys(): |
Library Usage
Two functions are provided in the Python psana_test package that allow Python scripts to turn Psana objects into strings. A Python script could include the following function to build dictionaries describing the state of the event, configStore, and epicsStore:
Code Block | ||
---|---|---|
| ||
from psana_test import obj2str, epicsPvToStr def getPsanaState(event, configStore, epicsStore): evtDict = {} cfgDict = {} epicsDict = {} for key in event.keys(): if key.type() is None: continue obj = event.get(key.type(), key.src(), key.key()) if (obj is None): continue if not hasattr(obj,'TypeId'): continue evtDict[str(key)]=obj2str(obj) for key in configStore.keys(): if key.type() is None: continue obj = configStore.get(key.type(), key.src()) if (obj is None): continue if not hasattr(obj,'TypeId'): continue cfgDict[str(key)]=obj2str(obj) for pvName in epicsStore.pvNames(): pv = epicsStore.getPV(pvName) if not pv: continue epicsDict[pvName] = epicsPvToStr(pv) return evtDict, cfgDict, epicsDict |
xtclinedump
xtclinedump is a command line tool to dump xtc and datagram header information in a line oriented style. By keeping the output for each header to one line, it makes it easy to use grep to filter the output. The command can be run by
Code Block |
---|
xtclinedump dg xtcfile.xtc
or
xtclinedump xtc xtcfile.xtc |
The first just dumps datagram headers, the latter dumps xtc headers. There are some additional options, how much of the xtc payloads to print, and if you want parsed output for epics. A help string is available by typing xtclinedump with no arguments. Except for the non-default epics argument, xtclinedump does no parsing of the xtc payloads, it simply prints the first few bytes in hex. For reading through payloads, the intel architechture uses little endian, so 0x00040000 = 1024,
Package TimeTool
An example of how to use the TimeTool can be found Here.
Modules for analyzing recorded data from a timetool camera setup. The timetool camera measures the time difference between laser and FEL in one of two methods:
- spatial encoding, where the X-rays change the reflectivity of a material and the laser probesthat change by the incident angle of its wavefront; or
- spectral encoding, where the X-rays change the transmission of a material and the chirped laser probes it by a change in the spectral components of the transmitted laser.
Below the package modules are described. The package includes sample configuration files that describe all the options. From a psana release directory, users are encouraged to add the TimeTool package to obtain the latest source. For instance:
Code Block |
---|
newrel ana-current myrel cd myrel kinit if key.type() is None: continue obj = event.get(key.type(), key.src(), key.key()) if (obj is None): continue if not hasattr(obj,'TypeId'): continue evtDict[str(key)]=obj2str(obj) for key in configStore.keys(): if key.type() is None: continue obj = configStore.get(key.type(), key.src()) if (obj is None): continue if not # get ticket to check out package from svn repository addpkg TimeTool sit_setup scons # now examine the files in TimeTool/data: sxr_timetool.cfg sxr_timetool_setup.cfg timetool_setup.py xpp_timetool.cfg xpptut.cfg |
timetool_setup.py is a python script to calculate the digital filter weights.
Module Analyze
a module that analyzes the camera image by projecting a region of interest onto an axis and dividing by a reference projection acquired without the FEL. The resulting projection is processed by a digital filter which yields a peak at the location of the change in reflectivity/transmission. The resulting parameters are written into the psana event. The type of the parameter depends on the release. Starting with ana-0.13.10, a TimeTool::DataV2 object in put in the event store. ana-0.13.3 put a TimeTool::DataV1 object in the event store. This is the preferred method to retrieve the data that TimeTool.Analyze writes. The module also writes its output as a set of doubles, and can optionally be written as a set of ndarrays to help with C++ to Python conversion. To enable this, set the option
put_ndarrays=True
to the config file. However this is not neccessary in releases after ana-0.13.3.
Module Check
a module that retrieves results from the event for either the above module or from data recorded online.
Module Setup
hasattr(obj,'TypeId'): continue
cfgDict[str(key)]=obj2str(obj)
for pvName in epicsStore.pvNames():
pv = epicsStore.getPV(pvName)
if not pv: continue
epicsDict[pvName] = epicsPvToStr(pv)
return evtDict, cfgDict, epicsDict |
xtclinedump
xtclinedump is a command line tool to dump xtc and datagram header information in a line oriented style. By keeping the output for each header to one line, it makes it easy to use grep to filter the output. The command can be run by
Code Block |
---|
xtclinedump dg xtcfile.xtc
or
xtclinedump xtc xtcfile.xtc |
The first just dumps datagram headers, the latter dumps xtc headers. There are some additional options, how much of the xtc payloads to print, and if you want parsed output for epics. A help string is available by typing xtclinedump with no arguments. Except for the non-default epics argument, xtclinedump does no parsing of the xtc payloads, it simply prints the first few bytes in hex. For reading through payloads, the intel architechture uses little endian, so 0x00040000 = 1024,a module that calculates the reference autocorrelation function from events without FEL for use in the digital filter construction.
References
- Psana User Manual - Old
- Psana Reference Manual - Old
- psana - Module Examples
- Migration from pyana to psana
- psana - Migration from pyana
dump_sml dump small data type