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

This processor recalculates the time of the hit based on the highest pulse in the hit according to the choosen time evaluation method. More...

#include <HitTimeRecalculationProcessor.h>

Inheritance diagram for marlintpc::HitTimeRecalculationProcessor:

Public Member Functions

virtual Processor * newProcessor ()
 
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

double _getDriftVelocity ()
 

Protected Attributes

std::string _inputColName
 name of the collection, where input TrackerHits are stored
 
std::string _outputColName
 name of the collection, where TrackerHits are stored
 
std::string _pedestalColName
 the name of the pedestal collection
 
std::string _electrParaObjName
 Name of the conditions object in which the parameters of the read out electronics is stored.
 
std::string _electrParaColName
 Name of the conditions collection in which the parameters of the read out electronics is stored.
 
std::string _inputTPCConditionsCollectionName
 the name of the collection the TPC conditions are stored with
 
TPCConditionsListener_tpcConditionsListener
 the standard way to access TPC conditions: the TPCConditions object via listening
 
int _timeCalculationMode
 the mode to calulate the time
 
double _timeCalculationParameter
 parameter for time methods (different meaning for different methods)
 
float _pulseStartPedestalWidthFactor
 factor to calculate the start threshold
 
float _noiseValuePedestalWidthFactor
 factor to calculate the noise cut
 
float _readoutFrequencyOverride
 The readout frequency of every readout group (in MHz). More...
 
float _pedestalValueOverride
 The pedestal value to be used for every hardware channel in every readout group. More...
 
float _pedestalWidthOverride
 The pedestal width to be used for every hardware channel in every readout group. More...
 
bool _isPedestalSubtractedOverride
 Sets, if the data is already pedestal subtracted in the read-out electronics. More...
 
int _polarityOverride
 the polarity of all readout groups, overrides LCCD
 
float _driftVelocityOverride
 drift velocity in [mm/mu s]
 
PulseFinder_pulseFinder
 The instance of the pulse finder object.
 

Detailed Description

This processor recalculates the time of the hit based on the highest pulse in the hit according to the choosen time evaluation method.

Input - Prerequisites

Collection of TrackerHits

Output

Parameters
InputCollectionName:stringName of the input TrackerHit collection
OutputCollectionName:stringName of the output TrackerHit collection
PulseStartPedestalWidthFactor:floatA pulse starts if the ADC value is this factor times width of the pedestal (default: : 4.0)
NoiseValuePedestalWidthFactor:floatThe noise (cut) value is calculated as this factor times pedestal width (default: 3.0)
ElectronicsParameterObjectName:stringName of the conditions object in which the parameters of the read out electronics is stored
ElectronicsParametersCollectionName:stringName of the conditions collection in which the parameters of the read out electronics is stored
PedestalCollectionName:stringName of the conditions collection in which the pedestals are stored
TimeCalculationMode:intSpecifies the mode for time calculation. Valid values:
INFLEXION_POINT = 0 (default)
FIT_PARABOLA = 1
CENTRE_OF_GRAVITY = 2
FIRST_ABOVE_THRESHOLD = 3
AT_MAXIMUM = 4
CONSTANT_FRACTION = 5
GAMMA_FIT = 6
COG_ATMAX = 7
PedestalValueOverrideOPTIONAL: Manually set the pedestal value (in ADC counts)
PedestalWidthOverrideOPTIONAL: Manually set value of the pedestal width (in ADC coutns)
IsPedestalSubtractedOverrideOPTIONAL: Manually set whether the pedestal has been subtracted (true or false)
SignalPolarityOverrideOPTIONAL: Manually set value of the electronics polarity (+-1)
ReadoutFrequencyOverrideOPTIONAL: Manually set value of the readout frequency (in MHz)
PlateauLengthCutOffOPTIONAL: The maximum length of a plateau within a pulse in time bins. This used to cut off strange pulses that go into a plateau.

As the interpretation of the data changes with the charge calculation mode (all charge or max charge) or the time calculation mode (different offsets), the parameters TimeCalculationMode and ChargeCalculationMode are stored as collection parameters of the pulse collection (in addition to being written to the run header together with all other processor parameters).

Author
ChA. Muennich, DESY

Member Data Documentation

bool marlintpc::HitTimeRecalculationProcessor::_isPedestalSubtractedOverride
protected

Sets, if the data is already pedestal subtracted in the read-out electronics.

This overrides any information provided by LCCD

float marlintpc::HitTimeRecalculationProcessor::_pedestalValueOverride
protected

The pedestal value to be used for every hardware channel in every readout group.

This overrides any information provided by LCCD

float marlintpc::HitTimeRecalculationProcessor::_pedestalWidthOverride
protected

The pedestal width to be used for every hardware channel in every readout group.

This overrides any information provided by LCCD

float marlintpc::HitTimeRecalculationProcessor::_readoutFrequencyOverride
protected

The readout frequency of every readout group (in MHz).

This overrides any information provided by LCCD


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