12 calibration_(conf.getParameter<double>(
"calibrationConstant")) {}
36 unsigned char flagsWord = uRecHit.
flags();
46 time = uRecHit.
time().second;
53 time = 0.5 * (uRecHit.
time().first + uRecHit.
time().second);
60 time = uRecHit.
time().first;
std::pair< float, float > time() const
void getEvent(const edm::Event &) final
get event and eventsetup information
~MTDRecHitAlgo() override
Destructor.
FTLRecHit makeRecHit(const FTLUncalibratedRecHit &uRecHit, uint32_t &flags) const final
make the rec hit
std::pair< float, float > amplitude() const
void getEventSetup(const edm::EventSetup &) final
MTDRecHitAlgo(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes)
Constructor.
float getTimeCalib(const MTDDetId &id) const
#define DEFINE_EDM_PLUGIN(factory, type, name)
const MTDTimeCalib * time_calib_
unsigned char flags() const
T const * product() const