Belle II Software  release-05-01-25
DriftTimeUtil Struct Reference

Structure to expose some drift time and length functions from the CDCGeometryPar to Python. More...

#include <DriftTimeUtil.h>

Static Public Member Functions

static double getDriftV (double driftTime, unsigned short iCLayer, unsigned short lr, double alpha=0., double theta=0.5 *M_PI)
 Get the realistic drift velocity. More...
 
static double getDriftLength (double driftTime, unsigned short iCLayer, unsigned short lr, double alpha=0., double theta=0.5 *M_PI)
 Return the drift length to the sense wire. More...
 
static double getDriftTime (double dist, unsigned short iCLayer, unsigned short lr, double alpha, double theta)
 Return the drift time to the sense wire. More...
 
static double getPropTime (const WireID &wireID, double z)
 Getter for the in wire propagation time. More...
 
static double getTimeWalk (const WireID &wireID, unsigned short adcCount)
 Returns time-walk. More...
 
static double getMeasuredTime (const WireID &wireID, unsigned short tdcCount, bool smear)
 Returns the time measured at the readout board. More...
 

Detailed Description

Structure to expose some drift time and length functions from the CDCGeometryPar to Python.

Definition at line 32 of file DriftTimeUtil.h.

Member Function Documentation

◆ getDriftLength()

static double getDriftLength ( double  driftTime,
unsigned short  iCLayer,
unsigned short  lr,
double  alpha = 0.,
double  theta = 0.5 * M_PI 
)
inlinestatic

Return the drift length to the sense wire.

Parameters
driftTimeDrift time (ns).
iCLayerContinuous layer id.
lrLeft/Right boolean.
alphaIncident angle (in rphi plane) w.r.t. the cell (rad).
thetaIncident angle (polar angle) (rad).

Definition at line 59 of file DriftTimeUtil.h.

73  {

◆ getDriftTime()

static double getDriftTime ( double  dist,
unsigned short  iCLayer,
unsigned short  lr,
double  alpha,
double  theta 
)
inlinestatic

Return the drift time to the sense wire.

Parameters
distDrift length (cm).
iCLayerContinuous layer id
lrLeft/Right boolean
alphaIncident angle (in rphi plane) w.r.t. the cell (rad).
thetaIncident angle (polar angle) (rad).

Definition at line 76 of file DriftTimeUtil.h.

◆ getDriftV()

static double getDriftV ( double  driftTime,
unsigned short  iCLayer,
unsigned short  lr,
double  alpha = 0.,
double  theta = 0.5 * M_PI 
)
inlinestatic

Get the realistic drift velocity.

Parameters
driftTimeDrift time (ns).
iCLayerContinuous layer id
lrLeft/Right
alphaIncident angle (in rphi plane) w.r.t. the cell (rad).
thetaIncident angle (polar angle) (rad).

Definition at line 42 of file DriftTimeUtil.h.

◆ getMeasuredTime()

static double getMeasuredTime ( const WireID wireID,
unsigned short  tdcCount,
bool  smear 
)
inlinestatic

Returns the time measured at the readout board.

Parameters
wireIDwire id
tdcCountTDC count
Returns
measured time (in ns)

Definition at line 129 of file DriftTimeUtil.h.

◆ getPropTime()

static double getPropTime ( const WireID wireID,
double  z 
)
inlinestatic

Getter for the in wire propagation time.

Parameters
wireIDwire id
zstart location of the signal propagation on the wire

Definition at line 90 of file DriftTimeUtil.h.

◆ getTimeWalk()

static double getTimeWalk ( const WireID wireID,
unsigned short  adcCount 
)
inlinestatic

Returns time-walk.

Parameters
wireIDwire id
adcCountADC count
Returns
time-walk (in ns)

Definition at line 118 of file DriftTimeUtil.h.


The documentation for this struct was generated from the following file: