9 template<
typename DET >
21 if( conf.
exists(isSiFE) ) {
24 maker.set_isSiFESim(
false);
27 if( conf.
exists(adcNbits) ) {
30 float adcLSB = saturation/
pow(2.,nBits);
31 maker.set_ADCLSB(adcLSB);
33 maker.set_ADCLSB(-1.);
36 if( conf.
exists(tdcNbits) ) {
40 float tdcLSB = saturation/
pow(2.,nBits);
41 maker.set_TDCLSB(tdcLSB);
42 maker.set_tdcOnsetfC(onset);
44 maker.set_TDCLSB(-1.);
45 maker.set_tdcOnsetfC(-1.);
48 if( conf.
exists(toaLSB_ns) ) {
49 maker.set_toaLSBToNS(conf.
getParameter<
double>(toaLSB_ns));
51 maker.set_toaLSBToNS(-1.);
54 if( conf.
exists(fCPerMIP) ) {
55 maker.set_fCPerMIP(conf.
getParameter<std::vector<double> >(fCPerMIP));
57 maker.set_fCPerMIP(std::vector<double>({1.0}));
T getParameter(std::string const &) const
HGCalUncalibRecHitRecWeightsAlgo< HGCEEDataFrame > uncalibMaker_ee_
std::vector< HGCEEDataFrame >::const_iterator const_iterator
HGCalUncalibRecHitRecWeightsAlgo< HGCHEDataFrame > uncalibMaker_hef_
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void configureIt(const edm::ParameterSet &conf, HGCalUncalibRecHitRecWeightsAlgo< HGCDataFrame< DET, HGCSample >> &maker)
void push_back(T const &t)
ParameterSet const & getParameterSet(std::string const &) const
HGCalUncalibRecHitRecWeightsAlgo< HGCBHDataFrame > uncalibMaker_heb_
bool run2(const edm::Event &evt, const HGCHEDigiCollection::const_iterator &digi, HGChefUncalibratedRecHitCollection &result) override
bool run3(const edm::Event &evt, const HGCBHDigiCollection::const_iterator &digi, HGChebUncalibratedRecHitCollection &result) override
HGCalUncalibRecHitWorkerWeights(const edm::ParameterSet &)
void set(const edm::EventSetup &es) override
#define DEFINE_EDM_PLUGIN(factory, type, name)
bool run1(const edm::Event &evt, const HGCEEDigiCollection::const_iterator &digi, HGCeeUncalibratedRecHitCollection &result) override
T const * product() const
Power< A, B >::type pow(const A &a, const B &b)