![]() |
Belle II Software
release-06-00-14
|
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. | |
void | setEventTime (double eventTime=0) |
If trigger jitter was simulated, in every event one has to give an estimate of the effect. More... | |
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. More... | |
double | getDriftTime (unsigned short tdcCount, const WireID &wireID, double timeOfFlightEstimator, double z, unsigned short adcCount) override |
Get Drift time. More... | |
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. More... | |
Private Attributes | |
bool | m_useInWirePropagationDelay |
Flag to activate the propagation delay of the sense wire. More... | |
bool | m_realData = false |
Flag to distinguish betw. More... | |
StoreObjPtr< EventT0 > | m_eventTimeStoreObject |
Event timing. More... | |
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). More... | |
double | m_fudgeFactor = 1. |
Cached fudge factor for space resol. | |
Translator mirroring the realistic Digitization.
Definition at line 25 of file RealisticTDCCountTranslator.h.
|
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.
|
inline |
If trigger jitter was simulated, in every event one has to give an estimate of the effect.
To reproduce the old behaviour, we replace the final event t0 here
Definition at line 38 of file RealisticTDCCountTranslator.h.
|
private |
Event timing.
The event time is fetched from the data store using this pointer.
Definition at line 117 of file RealisticTDCCountTranslator.h.
|
private |
Flag to distinguish betw.
data and MC.
Definition at line 112 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 143 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 107 of file RealisticTDCCountTranslator.h.