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;