1 #ifndef RecoLocalCalo_HGCalRecAlgos_HGCalUncalibRecHitRecWeightsAlgo_HH 2 #define RecoLocalCalo_HGCalRecAlgos_HGCalUncalibRecHitRecWeightsAlgo_HH 37 if( std::any_of(fCPerMIP.cbegin(),
39 [](
double conv){
return conv <= 0.0; }) ) {
40 throw cms::Exception(
"BadConversionFactor") <<
"At least one of fCPerMIP is zero!" << std::endl;
52 double amplitude_(-1.), pedestal_(-1.), jitter_(-1.), chi2_(-1.);
56 const auto&
sample = dataFrame.sample(iSample);
62 flag = !
sample.threshold();
71 LogDebug(
"HGCUncalibratedRecHit") <<
"TDC+: set the charge to: " << amplitude_ <<
' ' <<
sample.data()
73 <<
"TDC+: set the ToA to: " << jitter_ <<
' ' 75 <<
" flag=" << flag << std::endl;
79 LogDebug(
"HGCUncalibratedRecHit") <<
"ADC+: set the charge to: " << amplitude_ <<
' ' <<
sample.data()
81 <<
"TDC+: set the ToA to: " << jitter_ <<
' ' 86 LogDebug(
"HGCUncalibratedRecHit") <<
"ADC+: set the charge to: " << amplitude_ <<
' ' <<
sample.data()
87 <<
' ' <<
adcLSB_ <<
' ' << std::endl;
91 amplitude_ = amplitude_/
fCPerMIP_[thickness-1];
93 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)
static HepMC::IO_HEPEVT conv
std::vector< double > fCPerMIP_
virtual HGCUncalibratedRecHit makeRecHit(const C &dataFrame)
Compute parameters.
const HGCalTopology & topology() const
void set_toaLSBToNS(const double lsb2ns)
int waferType(DetId const &id) const
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)