MarlinTPC
1.2.0
|
This processor is used to select in the raw data only a part of the time spectrum, in fact shortening the time window of the data acquired. More...
#include <RawDataCutterProcessor.h>
Public Member Functions | |
virtual Processor * | newProcessor () |
virtual void | init () |
Called at the begin of the job before anything is read. More... | |
virtual void | processRunHeader (lcio::LCRunHeader *run) |
Called for every run. | |
virtual void | processEvent (lcio::LCEvent *evt) |
Called for every event - the working horse. | |
virtual void | check (lcio::LCEvent *evt) |
virtual void | end () |
Called after data processing for clean up. | |
Protected Attributes | |
std::string | _inputcolName |
Input collection name. | |
std::string | _outcolName |
Output collection name. | |
bool | _outputIsPersistent |
Set the persistency flag of the output collection. | |
int | _maxTimeBin |
Maximum time value allowed in the tracker raw data. More... | |
int | _startOffset |
Number of time bins at the start of the collection window which would correspond to data collected at negative drift lengths. More... | |
float | _driftVelocity |
Electron drift velocity (mm/us) used to compute the maximum time necessary to drift through the TPC. | |
float | _driftLength |
Maximum TPC drift length (mm). More... | |
float | _readoutFreq |
Readout frequency of the electronics (MHz) | |
int | _endOffset |
Safety Offset to be added at the Maximum drift time calculated. | |
std::string | _TPCConditionsCollName |
Name of the collection containing the TPC Conditions i.e. More... | |
std::string | _ADCElectronicsCollName |
Name of the collection containing the GenericADCElectronicsParameters i.e. More... | |
bool | _shortenPulse |
Boolean selector that specifies whether to shorten the pulses started before the filter time but continuing afterwards. | |
This processor is used to select in the raw data only a part of the time spectrum, in fact shortening the time window of the data acquired.
This processor cuts all the data arriving later than the maximum drift time to clean up the raw data before the main processing phase.
The user can set the length of this time window manually specifying the maximum number of time bins allowed, or this value can be calculated from the condition data
Needs the collection of TrackerRawData
Collection of TrackerRawData
InputCollectionName:string | Name of the input tracker raw data collection |
OutputCollectionName:string | Name of the collection where to store the corrected data |
WriteOutputToStorage:bool | If true the output collection is written to file |
MaxTimeBinOverride:int | Set this parameter if you want to define manually the maximum time bin length. No calculation will be executed |
StartOffset:int | Defines the time bin of the anode position |
DriftVelocityOverride:float | Defines the drift velocity in mm/us. If set the data in the condition database will not be considered |
DriftLengthOverride:float | Defines the maximum drift length in mm of the TPC. If set the data in the GEAR file will not be considered |
ReadoutFrequencyOverride:float | Defines the electronics readout frequency in MHz. If set the data in the condition database will not be considered |
EndOffset:int | Defines the time bin to add to the calculated maximum as a safety factor |
TPCConditionsCollName:string | Defines the name of the condition collection containing the drift velocity |
ADCElectronicsCollName:string | Defines the name of the condition collection containing the readout frequency |
|
virtual |
Called at the begin of the job before anything is read.
Use to initialize the processor, e.g. book histograms.
References _ADCElectronicsCollName, _driftLength, _driftVelocity, _endOffset, _maxTimeBin, _readoutFreq, _startOffset, _TPCConditionsCollName, and marlintpc::ADCElectronicsListener::useLastValidIfNoDataAvailable().
|
protected |
Name of the collection containing the GenericADCElectronicsParameters i.e.
readout frequency
Referenced by init().
|
protected |
Maximum TPC drift length (mm).
The length of the TPC used to calculate the maximum drift time
Referenced by init(), and processEvent().
|
protected |
Maximum time value allowed in the tracker raw data.
The processor will cut all data after this value
Referenced by init(), and processEvent().
|
protected |
Number of time bins at the start of the collection window which would correspond to data collected at negative drift lengths.
I.e. The DAQ could store some time bin before the trigger comes or the delays of the DAQ could be set in such a way that the electrons produced at the anode of the TPC are not at time bin 0.
Referenced by init(), and processEvent().
|
protected |