Go to the source code of this file.
Definition at line 10 of file HGCalUncalibRecHitWorkerWeights.cc.
References HGCalUncalibRecHit_cfi::adcNbits, HGCalUncalibRecHit_cfi::adcSaturation, constexpr, edm::ParameterSet::exists(), HGCalUncalibRecHit_cfi::fCPerMIP, edm::ParameterSet::getParameter(), HGCalUncalibRecHit_cfi::isSiFE, funct::pow(), HGCalUncalibRecHit_cfi::tdcNbits, HGCalUncalibRecHit_cfi::tdcOnset, HGCalUncalibRecHit_cfi::tdcSaturation, and HGCalUncalibRecHit_cfi::toaLSB_ns.
Referenced by HGCalUncalibRecHitWorkerWeights::HGCalUncalibRecHitWorkerWeights().
21 if( conf.
exists(isSiFE) ) {
27 if( conf.
exists(adcNbits) ) {
30 float adcLSB = saturation/
pow(2.,nBits);
36 if( conf.
exists(tdcNbits) ) {
40 float tdcLSB = saturation/
pow(2.,nBits);
48 if( conf.
exists(toaLSB_ns) ) {
54 if( conf.
exists(fCPerMIP) ) {
T getParameter(std::string const &) const
void set_ADCLSB(const double adclsb)
void set_isSiFESim(const bool isSiFE)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void set_toaLSBToNS(const double lsb2ns)
void set_tdcOnsetfC(const double tdcOnset)
void set_fCPerMIP(const std::vector< double > &fCPerMIP)
void set_TDCLSB(const double tdclsb)
Power< A, B >::type pow(const A &a, const B &b)