1 #ifndef RecoLocalCalo_HGCalRecAlgos_HGCalUncalibRecHitRecWeightsAlgo_HH 2 #define RecoLocalCalo_HGCalRecAlgos_HGCalUncalibRecHitRecWeightsAlgo_HH 38 throw cms::Exception(
"BadConversionFactor") <<
"At least one of fCPerMIP is zero!" << std::endl;
45 ddd_ = &(
geom->topology().dddConstants());
52 double amplitude_(-1.), pedestal_(-1.), jitter_(-1.), chi2_(-1.);
55 constexpr
int iSample = 2;
56 const auto&
sample = dataFrame.sample(iSample);
72 if (
sample.getToAValid()) {
77 if (
sample.getToAValid()) {
91 LogDebug(
"HGCUncalibratedRecHit") <<
"isSiFESim_: " <<
isSiFESim_ <<
" ADC+: set the charge to: " << amplitude_
93 <<
" TDC+: set the ToA to: " << jitter_ <<
' ' <<
sample.toa()
95 <<
" getToAValid(): " <<
sample.getToAValid()
96 <<
" mode(): " <<
sample.mode() << std::endl;
97 LogDebug(
"HGCUncalibratedRecHit") <<
"Final uncalibrated amplitude : " << amplitude_ << std::endl;
void set_ADCLSB(const double adclsb)
void setGeometry(const HGCalGeometry *geom)
void set_isSiFESim(const bool isSiFE)
std::vector< double > fCPerMIP_
virtual HGCUncalibratedRecHit makeRecHit(const C &dataFrame)
Compute HGCUncalibratedRecHit from DataFrame.
int waferType(DetId const &id, bool fromFile=false) const
void set_toaLSBToNS(const double lsb2ns)
void set_tdcOnsetfC(const double tdcOnset)
const HGCalDDDConstants * ddd_
void set_fCPerMIP(const std::vector< double > &fCPerMIP)
void set_TDCLSB(const double tdclsb)