 |
Belle II Software
release-05-01-25
|
12 #include <cdc/geometry/CDCGeometryPar.h>
14 #include <cdc/geometry/CDCGeoControlPar.h>
21 namespace TrackFindingCDC {
24 struct DriftTimeUtil {
35 unsigned short iCLayer,
38 double theta = 0.5 * M_PI)
52 unsigned short iCLayer,
55 double theta = 0.5 * M_PI)
69 unsigned short iCLayer,
87 TVector3 backwardWirePos =
89 TVector3 forwardWirePos =
91 double zDistance = z - backwardWirePos.Z();
95 (forwardWirePos - backwardWirePos).Mag() / (forwardWirePos.Z() - backwardWirePos.Z());
97 double distance = zDistance * stereoFactor;
121 static double getMeasuredTime(
const WireID& wireID,
unsigned short tdcCount,
bool smear)
125 smearing = gRandom->Rndm() - 0.5;
128 double measuredTime =
130 if (measuredTime > 2000) {
131 B2INFO(
"channelT0 " << channelT0);
132 B2INFO(
"measuredTime " << measuredTime);
Class to identify a wire inside the CDC.
double getPropSpeedInv(const unsigned int layerID) const
Get the inversel of propagation speed in the sense wire.
const TVector3 wireForwardPosition(int layerId, int cellId, EWirePosition set=c_Base) const
Returns the forward position of the input sense wire.
static CDCGeoControlPar & getInstance()
Static method to get a reference to the CDCGeoControlPar instance.
double getTdcBinWidth() const
Return TDC bin width (nsec).
static double getMeasuredTime(const WireID &wireID, unsigned short tdcCount, bool smear)
Returns the time measured at the readout board.
static double getTimeWalk(const WireID &wireID, unsigned short adcCount)
Returns time-walk.
static double getDriftTime(double dist, unsigned short iCLayer, unsigned short lr, double alpha, double theta)
Return the drift time to the sense wire.
double getDriftLength(double dt, unsigned short layer, unsigned short lr, double alpha=0., double theta=0.5 *M_PI, bool calculateMinTime=true, double minTime=0.) const
Return the drift dength to the sense wire.
The Class for CDC Geometry Parameters.
const TVector3 wireBackwardPosition(int layerId, int cellId, EWirePosition set=c_Base) const
Returns the backward position of the input sense wire.
static CDCGeometryPar & Instance(const CDCGeometry *=nullptr)
Static method to get a reference to the CDCGeometryPar instance.
Abstract base class for different kinds of events.
double getDriftTime(double dist, unsigned short layer, unsigned short lr, double alpha, double theta) const
Return the drift time to the sense wire.
double getDriftV(double dt, unsigned short layer, unsigned short lr, double alpha=0., double theta=0.5 *M_PI) const
Get the realistic drift velocity.
static double getPropTime(const WireID &wireID, double z)
Getter for the in wire propagation time.
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.
float getT0(const WireID &wireID) const
Returns t0 parameter of the specified sense wire.
int getSenseWireZposMode() const
Get sense wire z position mode.
double getTimeWalk(const WireID &wID, unsigned short adcCount) const
Returns time-walk.
double getBwdDeltaZ(unsigned short layerID) const
Return backward 'deltaZ'.
unsigned short getICLayer() const
Getter for continuous layer numbering.
The Class for CDC Geometry Control Parameters.
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.