29 thresholdToKeep_(conf.getParameter<
double>("thresholdToKeep")),
30 calibration_(conf.getParameter<
double>("calibrationConstant")) {
40 unsigned char flagsWord = uRecHit.
flags();
48 float positionError = -1.f;
54 time = uRecHit.
time().second;
61 time = 0.5 * (uRecHit.
time().first + uRecHit.
time().second);
71 time = uRecHit.
time().first;
std::pair< float, float > time() const
FTLRecHit makeRecHit(const FTLUncalibratedRecHit &uRecHit, uint32_t &flags) const final
make the rec hit
void getEvent(const edm::Event &) final
get event and eventsetup information
~MTDRecHitAlgo() override
Destructor.
std::pair< float, float > amplitude() const
void getEventSetup(const edm::EventSetup &) final
edm::ESGetToken< MTDTimeCalib, MTDTimeCalibRecord > tcToken_
MTDRecHitAlgo(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes)
Constructor.
float getTimeCalib(const MTDDetId &id) const
static int position[264][3]
#define DEFINE_EDM_PLUGIN(factory, type, name)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const MTDTimeCalib * time_calib_
unsigned char flags() const
float positionError() const