MarlinTPC
1.2.0
|
Convert zero-suppressed ADC raw data to pulses. More...
#include <ADCPulseConverterProcessor.h>
Public Member Functions | |
virtual Processor * | newProcessor () |
ADCPulseConverterProcessor () | |
constructor | |
virtual void | init () |
virtual void | processRunHeader (lcio::LCRunHeader *run) |
virtual void | processEvent (lcio::LCEvent *evt) |
virtual void | check (lcio::LCEvent *evt) |
virtual void | end () |
Protected Member Functions | |
int | findPulses (lcio::TrackerData *thisData, lcio::LCCollectionVec *thisCollection, float StartThreshold) |
find pulses by threshold in the ADC information More... | |
float | calcPulseTime (lcio::TrackerData *thisPulse) |
The time is just the centre of gravity of the pulse. | |
float | calcPulseCharge (lcio::TrackerData *thisPulse) |
calculate the integrated charge of the given pulse by sum up all bins of the ADC spectrum | |
Protected Attributes | |
std::string | _inputColName |
name of the collection, where input data are stored | |
std::string | _outputPulseColName |
name of the collection, where TrackerPulse are stored | |
int | _outputIsTransient |
set the status which is set to the transient flag of the output collection it is an int instead of a boolean, because the processor parameter cannot be a boolean | |
int | _forceSpectrumSave |
if not 0 the ADC spectrum will be saved for all pulses instead of only for pulses with quality !=0 it is an int instead of a boolean, bcause the processor parameter cannot be a boolean | |
int | _minPulseDataSize |
Convert zero-suppressed ADC raw data to pulses.
Runs on all channels without applying an additional threshold, no pedestal information needed. No pre- and afterpulses are considered as the threshold is 0, so everything that is there is put into the pulse.
Collection of TrackerPulses //Collection of TrackerData which belong to a pulse
InputCollectionName | name of the input TrackerData collection |
OutputTrackerPulseCollectionName | name of the output TrackerPulse collection |
// | OutputTrackerDataCollectionName name of the output TrackerData collection |
ForceSpectrumSave | if not 0 the ADC spectrum will be stored for all pulses |
|
protected |
find pulses by threshold in the ADC information
thisData | 'raw' data (non zero supressed, can also handle zero supressed data) |