MarlinTPC  1.2.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
marlintpc::ADCPulseConverterProcessor Class Reference

Convert zero-suppressed ADC raw data to pulses. More...

#include <ADCPulseConverterProcessor.h>

Inheritance diagram for marlintpc::ADCPulseConverterProcessor:

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
 

Detailed Description

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.

Input - Prerequisites

Output

Collection of TrackerPulses //Collection of TrackerData which belong to a pulse

Parameters
InputCollectionNamename of the input TrackerData collection
OutputTrackerPulseCollectionNamename of the output TrackerPulse collection
//OutputTrackerDataCollectionName name of the output TrackerData collection
ForceSpectrumSaveif not 0 the ADC spectrum will be stored for all pulses
Author
Martin Killenberg, University of Bonn

Member Function Documentation

int marlintpc::ADCPulseConverterProcessor::findPulses ( lcio::TrackerData *  thisData,
lcio::LCCollectionVec *  thisCollection,
float  StartThreshold 
)
protected

find pulses by threshold in the ADC information

Parameters
thisData'raw' data (non zero supressed, can also handle zero supressed data)

The documentation for this class was generated from the following files: