Belle II Software development
|
Translator mirroring the realistic Digitization. More...
#include <RealisticTDCCountTranslator.h>
Public Member Functions | |
RealisticTDCCountTranslator (bool useInWirePropagationDelay=false) | |
Constructor, with the additional information, if propagation in the wire shall be considered. | |
~RealisticTDCCountTranslator () | |
Destructor. | |
double | getDriftLength (unsigned short tdcCount, const WireID &wireID=WireID(), double timeOfFlightEstimator=0, bool leftRight=false, double z=0, double alpha=0, double theta=static_cast< double >(TMath::Pi()/2.), unsigned short adcCount=0) override |
Get Drift length. | |
double | getDriftTime (unsigned short tdcCount, const WireID &wireID, double timeOfFlightEstimator, double z, unsigned short adcCount) override |
Get Drift time. | |
double | getDriftLengthResolution (double driftLength, const WireID &wireID=WireID(), bool leftRight=false, double z=0, double alpha=0, double=static_cast< double >(TMath::Pi()/2.)) override |
Get position resolution^2 corresponding to the drift length from getDriftLength of this class. | |
Private Attributes | |
bool | m_useInWirePropagationDelay |
Flag to activate the propagation delay of the sense wire. | |
bool | m_realData = false |
Flag to distinguish betw. | |
StoreObjPtr< EventT0 > | m_eventTimeStoreObject |
Event timing. | |
const CDCGeoControlPar & | m_gcp |
Cached reference to CDC GeoControlPar object. | |
const CDCSimControlPar & | m_scp |
Cached reference to CDC SimControlPar object. | |
const CDCGeometryPar & | m_cdcp |
Cached reference to CDC GeometryPar object. | |
const double | m_tdcBinWidth |
Cached TDC bin width (ns). | |
double | m_fudgeFactor = 1. |
Cached fudge factor for space resol. | |
Translator mirroring the realistic Digitization.
Definition at line 25 of file RealisticTDCCountTranslator.h.
|
explicit |
Constructor, with the additional information, if propagation in the wire shall be considered.
Definition at line 17 of file RealisticTDCCountTranslator.cc.
|
inline |
|
overridevirtual |
Get Drift length.
tdcCount | TDC count (ns). |
wireID | Encoded sense wire ID. |
timeOfFlightEstimator | Time of flight (ns). |
leftRight | left/right flag. |
z | z-position on the wire (cm). |
alpha | Track incident angle in r-phi plane (rad). |
theta | Track incident angle in s-z plane (=polar angle) (rad). |
adcCount | ADC count. |
Implements TDCCountTranslatorBase.
Definition at line 92 of file RealisticTDCCountTranslator.cc.
|
overridevirtual |
Get position resolution^2 corresponding to the drift length from getDriftLength of this class.
this function returns the variance that is used as the CDC measurment resolution in track fitting
driftLength | Drift length (cm). |
wireID | Encoded sense wire ID. |
leftRight | Left/right flag. |
z | z-position on the wire (cm). |
alpha | Track incident angle in r-phi plane (rad). |
theta | Track incident angle in s-z plane (=polar angle) (rad). |
Implements TDCCountTranslatorBase.
Definition at line 126 of file RealisticTDCCountTranslator.cc.
|
overridevirtual |
Get Drift time.
tdcCount | TDC count (ns). |
wireID | Encoded sense wire ID. |
timeOfFlightEstimator | Time of flight (ns). |
z | z-position on the wire (cm). |
adcCount | ADC count. |
Implements TDCCountTranslatorBase.
Definition at line 39 of file RealisticTDCCountTranslator.cc.
|
private |
Cached reference to CDC GeometryPar object.
Definition at line 119 of file RealisticTDCCountTranslator.h.
|
private |
Event timing.
The event time is fetched from the data store using this pointer.
Definition at line 104 of file RealisticTDCCountTranslator.h.
|
private |
Cached fudge factor for space resol.
Definition at line 135 of file RealisticTDCCountTranslator.h.
|
private |
Cached reference to CDC GeoControlPar object.
Definition at line 109 of file RealisticTDCCountTranslator.h.
|
private |
|
private |
Cached reference to CDC SimControlPar object.
Definition at line 114 of file RealisticTDCCountTranslator.h.
|
private |
Cached TDC bin width (ns).
N.B. The declaration should be after m_cdcp for proper initialization.
Definition at line 130 of file RealisticTDCCountTranslator.h.
|
private |
Flag to activate the propagation delay of the sense wire.
true : activated, false : the propagation delay is not used.
Definition at line 94 of file RealisticTDCCountTranslator.h.