9 template<
typename DET >
14 constexpr char adcSaturation[] =
"adcSaturation";
16 constexpr char tdcSaturation[] =
"tdcSaturation";
20 if( conf.
exists(isSiFE) ) {
23 maker.set_isSiFESim(
false);
26 if( conf.
exists(adcNbits) ) {
28 double saturation = conf.
getParameter<
double>(adcSaturation);
29 float adcLSB = saturation/
pow(2.,nBits);
30 maker.set_ADCLSB(adcLSB);
32 maker.set_ADCLSB(-1.);
35 if( conf.
exists(tdcNbits) ) {
37 double saturation = conf.
getParameter<
double>(tdcSaturation);
39 float tdcLSB = saturation/
pow(2.,nBits);
40 maker.set_TDCLSB(tdcLSB);
41 maker.set_tdcOnsetfC(onset);
43 maker.set_TDCLSB(-1.);
44 maker.set_tdcOnsetfC(-1.);
47 if( conf.
exists(toaLSB_ns) ) {
48 maker.set_toaLSBToNS(conf.
getParameter<
double>(toaLSB_ns));
50 maker.set_toaLSBToNS(-1.);
bool run3(const edm::Event &evt, const HGCHEDigiCollection::const_iterator &digi, HGChebUncalibratedRecHitCollection &result)
T getParameter(std::string const &) const
HGCalUncalibRecHitRecWeightsAlgo< HGCDataFrame< HGCHEDetId, HGCSample > > uncalibMaker_hef_
void set(const edm::EventSetup &es)
std::vector< HGCEEDataFrame >::const_iterator const_iterator
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)
bool run1(const edm::Event &evt, const HGCEEDigiCollection::const_iterator &digi, HGCeeUncalibratedRecHitCollection &result)
virtual HGCUncalibratedRecHit makeRecHit(const C &dataFrame)
Compute parameters.
HGCalUncalibRecHitRecWeightsAlgo< HGCDataFrame< HGCEEDetId, HGCSample > > uncalibMaker_ee_
bool run2(const edm::Event &evt, const HGCHEDigiCollection::const_iterator &digi, HGChefUncalibratedRecHitCollection &result)
ParameterSet const & getParameterSet(std::string const &) const
HGCalUncalibRecHitWorkerWeights(const edm::ParameterSet &)
HGCalUncalibRecHitRecWeightsAlgo< HGCDataFrame< HGCHEDetId, HGCSample > > uncalibMaker_heb_
#define DEFINE_EDM_PLUGIN(factory, type, name)
Power< A, B >::type pow(const A &a, const B &b)