11 #include <cdc/translators/SimpleTDCCountTranslator.h>
12 #include <cdc/geometry/CDCGeometryPar.h>
18 double SimpleTDCCountTranslator::getDriftLength(
unsigned short tdcCount,
20 double timeOfFlightEstimator,
27 const double driftTime = getDriftTime(tdcCount, wireID, timeOfFlightEstimator, z, 0);
31 double driftL = (driftTime >= 0.) ? driftTime * 4e-3 : -999.;
35 double SimpleTDCCountTranslator::getDriftTime(
unsigned short tdcCount,
37 double timeOfFlightEstimator,
43 double driftTime = (
static_cast<double>(geometryPar.
getTdcOffset() - (tdcCount + 0.5)));
47 if (m_useInWirePropagationDelay) {
52 driftTime -= (z - m_backWirePos.Z()) / 27.25;
56 driftTime -= m_eventTime;
59 driftTime -= timeOfFlightEstimator;
70 double SimpleTDCCountTranslator::getDriftLengthResolution(
double,