1 #ifndef RecoLocalCalo_HGCalRecAlgos_HGCalUncalibRecHitRecWeightsAlgo_HH
2 #define RecoLocalCalo_HGCalRecAlgos_HGCalUncalibRecHitRecWeightsAlgo_HH
37 if (std::any_of(fCPerMIP.cbegin(), fCPerMIP.cend(), [](
double conv) {
return conv <= 0.0; })) {
38 throw cms::Exception(
"BadConversionFactor") <<
"At least one of fCPerMIP is zero!" << std::endl;
52 double amplitude_(-1.), pedestal_(-1.), jitter_(-1.), chi2_(-1.);
55 constexpr
int iSample = 2;
56 const auto&
sample = dataFrame.sample(iSample);
63 flag = !
sample.threshold();
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.
const HGCalTopology & topology() const
void set_toaLSBToNS(const double lsb2ns)
const HGCalDDDConstants & dddConstants() const
void set_tdcOnsetfC(const double tdcOnset)
const HGCalDDDConstants * ddd_
void set_fCPerMIP(const std::vector< double > &fCPerMIP)
void set_TDCLSB(const double tdclsb)
int waferType(DetId const &id, bool fromFile=false) const