9 #include <cdc/translators/SimpleTDCCountTranslator.h>
10 #include <cdc/geometry/CDCGeometryPar.h>
16 double SimpleTDCCountTranslator::getDriftLength(
unsigned short tdcCount,
18 double timeOfFlightEstimator,
25 const double driftTime = getDriftTime(tdcCount, wireID, timeOfFlightEstimator, z, 0);
29 double driftL = (driftTime >= 0.) ? driftTime * 4e-3 : -999.;
33 double SimpleTDCCountTranslator::getDriftTime(
unsigned short tdcCount,
35 double timeOfFlightEstimator,
41 double driftTime = (
static_cast<double>(geometryPar.
getTdcOffset() - (tdcCount + 0.5)));
45 if (m_useInWirePropagationDelay) {
50 driftTime -= (z - m_backWirePos.Z()) / 27.25;
54 driftTime -= m_eventTime;
57 driftTime -= timeOfFlightEstimator;
68 double SimpleTDCCountTranslator::getDriftLengthResolution(
double,
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.
unsigned short getTdcOffset() const
Return TDC offset value (default = 0 ch).
Class to identify a wire inside the CDC.
Abstract base class for different kinds of events.