1 #ifndef RecoLocalCalo_HGCalRecAlgos_HGCalUncalibRecHitRecWeightsAlgo_HH 2 #define RecoLocalCalo_HGCalRecAlgos_HGCalUncalibRecHitRecWeightsAlgo_HH 40 throw cms::Exception(
"BadConversionFactor") <<
"At least one of fCPerMIP is zero!" << std::endl;
51 return geom_ !=
nullptr;
56 double amplitude_(-1.), pedestal_(-1.), jitter_(-99.), chi2_(-1.);
59 constexpr
int iSample = 2;
60 const auto&
sample = dataFrame.sample(iSample);
85 if (
sample.getToAValid()) {
93 LogDebug(
"HGCUncalibratedRecHit") <<
"isSiFESim_: " <<
isSiFESim_ <<
" ADC+: set the charge to: " << amplitude_
95 <<
" TDC+: set the ToA to: " << jitter_ <<
' ' <<
sample.toa()
97 <<
" getToAValid(): " <<
sample.getToAValid()
98 <<
" mode(): " <<
sample.mode() << std::endl;
99 LogDebug(
"HGCUncalibratedRecHit") <<
"Final uncalibrated amplitude : " << amplitude_ << std::endl;
105 static constexpr
float c_cm_ns = CLHEP::c_light * CLHEP::ns / CLHEP::cm;
void set_ADCLSB(const double adclsb)
static constexpr float c_cm_ns
void set_isSiFESim(const bool isSiFE)
bool setGeometry(const edm::ESHandle< HGCalGeometry > &geom)
std::vector< double > fCPerMIP_
virtual HGCUncalibratedRecHit makeRecHit(const C &dataFrame)
Compute HGCUncalibratedRecHit from DataFrame.
const HGCalGeometry * geom_
void set_toaLSBToNS(const double lsb2ns)
const HGCalTopology & topology() const
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
void set_tdcOnsetfC(const double tdcOnset)
void set_tofDelay(const double tofDelay)
int waferType(DetId const &id, bool fromFile) const
const HGCalDDDConstants * ddd_
GlobalPoint getPosition(const DetId &id, bool debug=false) const
void set_fCPerMIP(const std::vector< double > &fCPerMIP)
void set_TDCLSB(const double tdclsb)
const HGCalDDDConstants & dddConstants() const