TimeOfFlight
1.32.00
|
Marlin processor that calculates time-of-flight for charged particles. More...
#include <TOFEstimators.h>
Public Member Functions | |
TOFEstimators (const TOFEstimators &)=delete | |
Copy constructor. More... | |
TOFEstimators & | operator= (const TOFEstimators &)=delete |
Copy assignment operator. More... | |
marlin::Processor * | newProcessor () |
Method required by the Marlin to register processor in the global scope. More... | |
TOFEstimators () | |
Default constructor. More... | |
void | init () |
Called at the begin of the job before anything is read. More... | |
void | processEvent (EVENT::LCEvent *evt) |
Called for every event - the working horse. More... | |
Private Attributes | |
std::string | _pfoCollectionName {} |
Stores ReconstructedParticleCollection steering parameter. More... | |
bool | _extrapolateToEcal {} |
Stores ExtrapolateToEcal steering parameter. More... | |
std::string | _tofMethod {} |
Stores TofMethod steering parameter. More... | |
double | _timeResolution {} |
Stores TimeResolution steering parameter. More... | |
int | _maxEcalLayer {} |
Stores MaxEcalLayer steering parameter. More... | |
int | _nEvent {} |
Stores current event number. More... | |
std::vector< std::string > | _outputParNames {} |
Stores names of the output parameter - "timeOfFlight". More... | |
double | _bField {} |
Stores z component of the magnetic field at the origin in Tesla. More... | |
double | _tpcOuterR {} |
Stores outer TPC radius in mm. More... | |
Marlin processor that calculates time-of-flight for charged particles.
Definition at line 13 of file TOFEstimators.h.
|
delete |
Copy constructor.
TOFEstimators::TOFEstimators | ( | ) |
Default constructor.
Registers steering parameters from the xml steering file.
Definition at line 35 of file TOFEstimators.cc.
References _extrapolateToEcal, _maxEcalLayer, _pfoCollectionName, _timeResolution, and _tofMethod.
Referenced by newProcessor().
void TOFEstimators::init | ( | ) |
Called at the begin of the job before anything is read.
Extracts geometry details and initializes Kalman Filter System.
Definition at line 73 of file TOFEstimators.cc.
References _bField, _outputParNames, _timeResolution, _tofMethod, _tpcOuterR, marlin::Global::EVENTSEEDER, TOFUtils::getTPCOuterR(), and marlin::ProcessorEventSeeder::registerProcessor().
|
inline |
Method required by the Marlin to register processor in the global scope.
Definition at line 28 of file TOFEstimators.h.
References TOFEstimators().
|
delete |
Copy assignment operator.
void TOFEstimators::processEvent | ( | EVENT::LCEvent * | evt | ) |
Called for every event - the working horse.
Calculates momentum, track length and time of flight and writes them into PIDHandler of the input collection object.
Definition at line 89 of file TOFEstimators.cc.
References _bField, _extrapolateToEcal, _maxEcalLayer, _nEvent, _outputParNames, _pfoCollectionName, _timeResolution, _tofMethod, _tpcOuterR, std::endl(), marlin::Global::EVENTSEEDER, TOFUtils::getSETHit(), TOFUtils::getTofClosest(), TOFUtils::getTofFrankAvg(), TOFUtils::getTofFrankFit(), TOFUtils::selectFrankEcalHits(), and std::vector< T >::size().
|
private |
Stores z component of the magnetic field at the origin in Tesla.
Definition at line 78 of file TOFEstimators.h.
Referenced by init(), and processEvent().
|
private |
Stores ExtrapolateToEcal steering parameter.
Definition at line 54 of file TOFEstimators.h.
Referenced by processEvent(), and TOFEstimators().
|
private |
Stores MaxEcalLayer steering parameter.
Definition at line 66 of file TOFEstimators.h.
Referenced by processEvent(), and TOFEstimators().
|
private |
Stores current event number.
Definition at line 70 of file TOFEstimators.h.
Referenced by processEvent().
|
private |
Stores names of the output parameter - "timeOfFlight".
Definition at line 74 of file TOFEstimators.h.
Referenced by init(), and processEvent().
|
private |
Stores ReconstructedParticleCollection steering parameter.
Definition at line 50 of file TOFEstimators.h.
Referenced by processEvent(), and TOFEstimators().
|
private |
Stores TimeResolution steering parameter.
Definition at line 62 of file TOFEstimators.h.
Referenced by init(), processEvent(), and TOFEstimators().
|
private |
Stores TofMethod steering parameter.
Definition at line 58 of file TOFEstimators.h.
Referenced by init(), processEvent(), and TOFEstimators().
|
private |
Stores outer TPC radius in mm.
Definition at line 82 of file TOFEstimators.h.
Referenced by init(), and processEvent().