10 uint32_t nBits = conf.
getParameter<uint32_t>(
"adcNbits");
11 double saturation = conf.
getParameter<
double>(
"adcSaturation");
12 adcLSB_ = saturation/(1<<nBits);
40 unsigned char flag = 0;
42 LogDebug(
"FTLSimpleUncalibRecHit") <<
"ADC+: set the charge to: " << amplitude <<
' ' <<
sample.data()
43 <<
' ' <<
adcLSB_ <<
' ' << std::endl;
44 LogDebug(
"FTLSimpleUncalibRecHit") <<
"ADC+: set the time to: " << time <<
' ' <<
sample.toa()
46 LogDebug(
"FTLSimpleUncalibRecHit") <<
"Final uncalibrated amplitude : " << amplitude << std::endl;
T getParameter(std::string const &) const
virtual void getEventSetup(const edm::EventSetup &) override final
virtual FTLUncalibratedRecHit makeRecHit(const FTLDataFrame &dataFrame) const override final
make the rec hit
virtual void getEvent(const edm::Event &) override final
get event and eventsetup information
const D & id() const
det id
const S & sample(int i) const
FTLSimpleUncalibRecHitAlgo(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes)
Constructor.
#define DEFINE_EDM_PLUGIN(factory, type, name)
virtual ~FTLSimpleUncalibRecHitAlgo()
Destructor.