Belle II Software  release-06-01-15
SimpleTDCCountTranslator Class Reference

Translator mirroring the simple Digitization. More...

#include <SimpleTDCCountTranslator.h>

Inheritance diagram for SimpleTDCCountTranslator:
Collaboration diagram for SimpleTDCCountTranslator:

Public Member Functions

 SimpleTDCCountTranslator (bool useInWirePropagationDelay=false)
 Constructor, with the additional information, if propagation in the wire shall be considered.
 
 ~SimpleTDCCountTranslator ()
 Destructor.
 
void setEventTime (short eventTime=0)
 If trigger jitter was simulated, in every event one has to give an estimate of the effect.
 
double getDriftLength (unsigned short tdcCount, const WireID &wireID=WireID(), double timeOfFlightEstimator=0, bool leftRight=false, double z=0, double=0, double=0, unsigned short=0) override
 Get Drift length (cm). More...
 
double getDriftTime (unsigned short tdcCount, const WireID &wireID, double timeOfFlightEstimator, double z, unsigned short) override
 Get Drift time. More...
 
double getDriftLengthResolution (double, const WireID &=WireID(), bool=false, double=0, double=0, double=0) override
 Uncertainty corresponding to drift length from getDriftLength of this class. More...
 

Private Attributes

bool m_useInWirePropagationDelay
 Flag to activate the propagation delay of the sense wire. More...
 
TVector3 m_backWirePos
 Wire position at the cdc backward endplate.
 
double m_eventTime
 Event timing. More...
 

Detailed Description

Translator mirroring the simple Digitization.

Definition at line 23 of file SimpleTDCCountTranslator.h.

Member Function Documentation

◆ getDriftLength()

double getDriftLength ( unsigned short  tdcCount,
const WireID wireID = WireID(),
double  timeOfFlightEstimator = 0,
bool  leftRight = false,
double  z = 0,
double  = 0,
double  = 0,
unsigned short  = 0 
)
overridevirtual

Get Drift length (cm).

@parm tdcCount TDC count (ns). @parm wireID Encoded sense wire ID. @parm timeOfFlightEstimator Time of Flight (ns). @parm leftRight left/right flag. @parm z z-positin on the wire (cm).

Implements TDCCountTranslatorBase.

Definition at line 16 of file SimpleTDCCountTranslator.cc.

24 {
25  const double driftTime = getDriftTime(tdcCount, wireID, timeOfFlightEstimator, z, 0);
26 
27  //Now we have an estimate for the time it took from the ionisation to the hitting of the wire.
28  //Need to reverse calculate the relation between drift lenght and drift time.
29  double driftL = (driftTime >= 0.) ? driftTime * 4e-3 : -999.;
30  return driftL;
31 }
double getDriftTime(unsigned short tdcCount, const WireID &wireID, double timeOfFlightEstimator, double z, unsigned short) override
Get Drift time.

◆ getDriftLengthResolution()

double getDriftLengthResolution ( double  ,
const WireID = WireID(),
bool  = false,
double  = 0,
double  = 0,
double  = 0 
)
overridevirtual

Uncertainty corresponding to drift length from getDriftLength of this class.

this function returns the variance that is used as the CDC measurment resolution in track fitting if the default resolution of the CDC Digitizer is changed this value has to be changed, too! this variance is calculated by sigam_cdcHit^2 + sigma_translationError^2 sigma_translationError is an additional (non-gaussian) smearing is introduced due to driftlength to TDC conversio and can be (partially) corrected by adding sigma_translationError^2 = (40/sqrt(12) µm)^2 to sigam_cdcHit^2 see mail: [belle2_tracking:0515]

Currently in the simple digitization just a Gaussian smearing is used.

Returns
Uncertainty on the drift length, currently 1.69e-4.

Implements TDCCountTranslatorBase.

Definition at line 68 of file SimpleTDCCountTranslator.cc.

◆ getDriftTime()

double getDriftTime ( unsigned short  tdcCount,
const WireID wireID,
double  timeOfFlightEstimator,
double  z,
unsigned short   
)
overridevirtual

Get Drift time.

Parameters
tdcCountTDC count (ns).
wireIDEncoded sense wire ID.
timeOfFlightEstimatorTime of flight (ns).
zz-position on the wire (cm).
adcCountADC count.
Returns
Drift time (ns)

Implements TDCCountTranslatorBase.

Definition at line 33 of file SimpleTDCCountTranslator.cc.

Member Data Documentation

◆ m_eventTime

double m_eventTime
private

Event timing.

If this is not simulated, m_eventTime is set to be 0.

Definition at line 105 of file SimpleTDCCountTranslator.h.

◆ m_useInWirePropagationDelay

bool m_useInWirePropagationDelay
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 SimpleTDCCountTranslator.h.


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