TimeOfFlight  1.32.00
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Private Attributes | List of all members
TOFEstimators Class Reference

Marlin processor that calculates time-of-flight for charged particles. More...

#include <TOFEstimators.h>

+ Inheritance diagram for TOFEstimators:

Public Member Functions

 TOFEstimators (const TOFEstimators &)=delete
 Copy constructor. More...
 
TOFEstimatorsoperator= (const TOFEstimators &)=delete
 Copy assignment operator. More...
 
marlin::ProcessornewProcessor ()
 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...
 

Detailed Description

Marlin processor that calculates time-of-flight for charged particles.

Author
F. Gaede, DESY, April 2018
B. Dudar, DESY, 2022

Definition at line 13 of file TOFEstimators.h.

Constructor & Destructor Documentation

TOFEstimators::TOFEstimators ( const TOFEstimators )
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().

Member Function Documentation

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().

marlin::Processor* TOFEstimators::newProcessor ( )
inline

Method required by the Marlin to register processor in the global scope.

Definition at line 28 of file TOFEstimators.h.

References TOFEstimators().

TOFEstimators& TOFEstimators::operator= ( const 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().

Member Data Documentation

double TOFEstimators::_bField {}
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().

bool TOFEstimators::_extrapolateToEcal {}
private

Stores ExtrapolateToEcal steering parameter.

Definition at line 54 of file TOFEstimators.h.

Referenced by processEvent(), and TOFEstimators().

int TOFEstimators::_maxEcalLayer {}
private

Stores MaxEcalLayer steering parameter.

Definition at line 66 of file TOFEstimators.h.

Referenced by processEvent(), and TOFEstimators().

int TOFEstimators::_nEvent {}
private

Stores current event number.

Definition at line 70 of file TOFEstimators.h.

Referenced by processEvent().

std::vector<std::string> TOFEstimators::_outputParNames {}
private

Stores names of the output parameter - "timeOfFlight".

Definition at line 74 of file TOFEstimators.h.

Referenced by init(), and processEvent().

std::string TOFEstimators::_pfoCollectionName {}
private

Stores ReconstructedParticleCollection steering parameter.

Definition at line 50 of file TOFEstimators.h.

Referenced by processEvent(), and TOFEstimators().

double TOFEstimators::_timeResolution {}
private

Stores TimeResolution steering parameter.

Definition at line 62 of file TOFEstimators.h.

Referenced by init(), processEvent(), and TOFEstimators().

std::string TOFEstimators::_tofMethod {}
private

Stores TofMethod steering parameter.

Definition at line 58 of file TOFEstimators.h.

Referenced by init(), processEvent(), and TOFEstimators().

double TOFEstimators::_tpcOuterR {}
private

Stores outer TPC radius in mm.

Definition at line 82 of file TOFEstimators.h.

Referenced by init(), and processEvent().


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