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.);
60 const auto&
sample = dataFrame.sample(iSample);
85 if (
sample.getToAValid()) {
94 LogDebug(
"HGCUncalibratedRecHit") <<
"isSiFESim_: " <<
isSiFESim_ <<
" ADC+: set the charge to: " << amplitude_
96 <<
" TDC+: set the ToA to: " << jitter_ <<
' ' <<
sample.toa()
98 <<
" getToAValid(): " <<
sample.getToAValid()
99 <<
" mode(): " <<
sample.mode() << std::endl;
100 LogDebug(
"HGCUncalibratedRecHit") <<
"Final uncalibrated amplitude : " << amplitude_ << std::endl;
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 ~HGCalUncalibRecHitRecWeightsAlgo()
GlobalPoint getPosition(const DetId &id, bool cog, bool debug) const
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)
virtual HGCUncalibratedRecHit makeRecHit(const C &dataFrame, const bool computeLocalTime)
Compute HGCUncalibratedRecHit from DataFrame.
int waferType(DetId const &id, bool fromFile) const
const HGCalDDDConstants * ddd_
void set_fCPerMIP(const std::vector< double > &fCPerMIP)
void set_TDCLSB(const double tdclsb)
const HGCalDDDConstants & dddConstants() const