Content
Code
Detector specific code is located in packages:
For calibration and algorithms other psana packages are used, so all examples will run in standard psana environment.
Data pre-processing CLI
Data pre-processing script reads xtc file, process waveforms using CFD algorithm, and saves arrays of times for each for each channel in the "small data" HDF5 file. Example of the command and description of parameters:
hex_data_preproc -h
Calibration CLI
Detector calibration works with two calibration types
- hex_config
- hex_table
e.g. /reg/d/psdm/xpp/xpptut15/calib/Acqiris::CalibV1/AmoETOF.0:Acqiris.0/hex_table/0-end.data
Calibration is running on pre-processed HDF5 file (or xtc but slow). Procedure is explained in the help message of the command
hex_calib -h
Data processing example
Hexanode data processing in psana using MPIDataSource:
MPIDataSource object provides in ds.events() subset of events for particular MPI rank. Method ds.event_number() retrieves total event number in entire dataset.
Other example versions in expmon/examples
:
- ex-hex-proc-datasource.py - hexanode data processing in psana DataSource with MPI,
- ex-hex-data-proc-:2.py - hexanode data processing in psana using DataSource created inside HexDataIO object.