11 constexpr
char isSiFE[] =
"isSiFE";
12 constexpr
char adcNbits[] =
"adcNbits";
13 constexpr
char adcSaturation[] =
"adcSaturation";
14 constexpr
char tdcNbits[] =
"tdcNbits";
15 constexpr
char tdcSaturation[] =
"tdcSaturation";
16 constexpr
char tdcOnset[] =
"tdcOnset";
17 constexpr
char toaLSB_ns[] =
"toaLSB_ns";
18 constexpr
char fCPerMIP[] =
"fCPerMIP";
26 if (conf.
exists(adcNbits)) {
28 double saturation = conf.
getParameter<
double>(adcSaturation);
29 float adcLSB = saturation /
pow(2., nBits);
35 if (conf.
exists(tdcNbits)) {
37 double saturation = conf.
getParameter<
double>(tdcSaturation);
39 float tdcLSB = saturation /
pow(2., nBits);
47 if (conf.
exists(toaLSB_ns)) {
53 if (conf.
exists(fCPerMIP)) {
void set_ADCLSB(const double adclsb)
void set_isSiFESim(const bool isSiFE)
std::vector< T >::const_iterator const_iterator
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void push_back(T const &t)
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hef_
bool runHGCHFNose(const HGCalDigiCollection::const_iterator &digi, HGChfnoseUncalibratedRecHitCollection &result) override
bool getData(T &iHolder) const
bool runHGCHEscint(const HGCalDigiCollection::const_iterator &digi, HGChebUncalibratedRecHitCollection &result) override
void configureIt(const edm::ParameterSet &conf, HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > &maker)
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > ee_geometry_token_
HGCalUncalibRecHitWorkerWeights(const edm::ParameterSet &, edm::ConsumesCollector iC)
void set_toaLSBToNS(const double lsb2ns)
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > hef_geometry_token_
bool runHGCEE(const HGCalDigiCollection::const_iterator &digi, HGCeeUncalibratedRecHitCollection &result) override
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > hfnose_geometry_token_
void set_tdcOnsetfC(const double tdcOnset)
ParameterSet const & getParameterSet(std::string const &) const
T getParameter(std::string const &) const
void set(const edm::EventSetup &es) override
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_ee_
void set_fCPerMIP(const std::vector< double > &fCPerMIP)
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_heb_
#define DEFINE_EDM_PLUGIN(factory, type, name)
void set_TDCLSB(const double tdclsb)
HGCalUncalibRecHitRecWeightsAlgo< HGCalDataFrame > uncalibMaker_hfnose_
Power< A, B >::type pow(const A &a, const B &b)
bool runHGCHEsil(const HGCalDigiCollection::const_iterator &digi, HGChefUncalibratedRecHitCollection &result) override