|
| | OpalTTFex (Parameters *) |
| | Load the reference projection from the file named by the ttreffile kwarg (default detName.ttref; relative names are taken under $HOME, or /tmp if HOME is unset), if that file exists.
|
| |
| | ~OpalTTFex () |
| | Save the accumulated reference projection to the reference file.
|
| |
| void | configure (XtcData::ConfigIter &, unsigned, unsigned) |
| | Read the fex settings from the configuration (FIR weights, optionally inverted, calibration polynomial, beam and laser event selections, projection axis and minimum, prescales, convergence factors, pedestal from user.black_level minus fex.pedestal_adj, regions of interest and reference record mode) for an image whose columns and rows are the two unsigned arguments, and reset the counters.
|
| |
| void | unconfigure () |
| | Print the fraction of calls cut at each stage, if analyze() was called.
|
| |
| std::pair< std::vector< double >, TTResult > | analyze (std::vector< XtcData::Array< uint8_t > > &subframes, std::vector< double > &sigout, std::vector< double > &refout) |
| | Analyze one event: subframes[3] holds the EventInfo and subframes[2] the image.
|
| |
| bool | write_image () const |
| | Return true if the image prescale (fex.prescale.image) is non-zero.
|
| |
| bool | write_projections () const |
| | Return true if the projection prescale (fex.prescale.projections) is non-zero.
|
| |
| bool | write_ref_image () const |
| | Return true if the reference record mode asks for reference images (mode 2).
|
| |
| bool | write_ref_projection () const |
| | Return true if the reference record mode asks for reference projections (mode 1).
|
| |
| bool | write_evt_image () |
| | Return true, and restart the count, once the number of images analyzed since the last true reaches the image prescale.
|
| |
| bool | write_evt_projections () |
| | Return true, and restart the count, once the number of projections made since the last true reaches the projection prescale.
|
| |
| std::vector< double > & | sig_projection () |
| | Return the rolling average of the signal projection.
|
| |
| std::vector< double > & | ref_projection () |
| | Return the rolling average of the reference projection.
|
| |
| virtual void | _monitor_raw_sig (std::vector< double > &) |
| | Hook called with the raw signal projection; prints samples only when built with DBUG2.
|
| |
| virtual void | _monitor_ref_sig (std::vector< double > &) |
| | Hook called with the reference projection; prints samples only when built with DBUG2.
|
| |
| virtual void | _monitor_sub_sig (std::vector< double > &) |
| | Hook called with the reference-normalized signal; prints samples only when built with DBUG2.
|
| |
| virtual void | _monitor_flt_sig (std::vector< double > &) |
| | Hook called with the filtered signal; prints samples only when built with DBUG2.
|
| |
Timetool feature extraction for Opal camera images: projects the signal (and optional reference and sideband) regions of interest, divides the averaged signal by a rolling reference, filters it and fits the edge.
The reference is loaded from and saved to a file.
| std::pair< std::vector< double >, TTResult > Drp::OpalTTFex::analyze |
( |
std::vector< XtcData::Array< uint8_t > > & |
subframes, |
|
|
std::vector< double > & |
sigout, |
|
|
std::vector< double > & |
refout |
|
) |
| |
Analyze one event: subframes[3] holds the EventInfo and subframes[2] the image.
Returns six values (filtered position, calibrated position, amplitude, next amplitude, reference amplitude, FWHM) with a TTResult; sigout receives the signal projection (divided by the reference if that stage is reached) and refout a copy of the reference average when it is used.
Read the fex settings from the configuration (FIR weights, optionally inverted, calibration polynomial, beam and laser event selections, projection axis and minimum, prescales, convergence factors, pedestal from user.black_level minus fex.pedestal_adj, regions of interest and reference record mode) for an image whose columns and rows are the two unsigned arguments, and reset the counters.