1 #ifndef DataFormats_HcalRecHit_HBHEChannelInfo_h_
2 #define DataFormats_HcalRecHit_HBHEChannelInfo_h_
45 constexpr
explicit HBHEChannelInfo(
const bool hasTimeFromTDC,
const bool hasEffectivePed)
93 const bool capidError,
94 const bool dropThisChannel) {
112 const uint8_t rawADC,
113 const float differentialChargeGain,
116 const double pedWidth,
137 constexpr
unsigned soi()
const {
return soi_; }
155 constexpr uint8_t
const*
adc()
const {
return adc_; }
168 constexpr
double tsGain(
const unsigned ts)
const {
return gain_[ts]; }
172 constexpr uint8_t
tsAdc(
const unsigned ts)
const {
return adc_[ts]; }
187 for (
unsigned i = begin;
i < imax; ++
i)
195 for (
unsigned i = begin;
i < imax; ++
i)
204 double dmax = -DBL_MAX;
206 for (
unsigned i = begin;
i < imax; ++
i) {
218 double dmax = -DBL_MAX;
220 for (
unsigned i = begin;
i < imax; ++
i) {
235 for (
unsigned i = begin;
i < imax; ++
i)
304 #endif // DataFormats_HcalRecHit_HBHEChannelInfo_h_
constexpr double const * pedestalWidth() const
constexpr unsigned nSamples() const
constexpr double const * rawCharge() const
constexpr bool hasTimeInfo() const
constexpr int recoShape() const
constexpr uint8_t tsAdc(const unsigned ts) const
constexpr double tsGain(const unsigned ts) const
constexpr double const * gain() const
constexpr double tsEnergy(const unsigned ts) const
double gainWidth_[MAXSAMPLES]
constexpr unsigned peakEnergyTS(const unsigned begin, const unsigned end) const
constexpr float const * dFcPerADC() const
constexpr HBHEChannelInfo(const bool hasTimeFromTDC, const bool hasEffectivePed)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
constexpr bool isDropped() const
bool hasEffectivePedestals_
constexpr uint8_t const * adc() const
constexpr unsigned peakChargeTS(const unsigned begin, const unsigned end) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
constexpr double tsCharge(const unsigned ts) const
constexpr double lambda() const
constexpr float soiRiseTime() const
float dFcPerADC_[MAXSAMPLES]
constexpr double const * pedestal() const
static const unsigned MAXSAMPLES
constexpr double tsPedestalWidth(const unsigned ts) const
double pedestalWidth_[MAXSAMPLES]
constexpr HcalDetId id() const
constexpr int capid() const
constexpr double noisecorr() const
constexpr void setChannelInfo(const HcalDetId &detId, const int recoShape, const unsigned nSamp, const unsigned iSoi, const int iCapid, const double darkCurrent, const double fcByPE, const double lambda, const double noisecorr, const bool linkError, const bool capidError, const bool dropThisChannel)
double pedestal_[MAXSAMPLES]
constexpr HBHEChannelInfo()
constexpr unsigned soi() const
constexpr double tsPedestal(const unsigned ts) const
constexpr float tsDFcPerADC(const unsigned ts) const
constexpr bool hasCapidError() const
constexpr uint8_t peakAdcValue(const unsigned begin, const unsigned end) const
constexpr double energyInWindow(const unsigned begin, const unsigned end) const
constexpr double fcByPE() const
double rawCharge_[MAXSAMPLES]
constexpr double chargeInWindow(const unsigned begin, const unsigned end) const
constexpr float tsRiseTime(const unsigned ts) const
constexpr void tagAsDropped()
constexpr float UNKNOWN_T_NOTDC
constexpr double tsGainWidth(const unsigned ts) const
constexpr bool hasEffectivePedestals() const
constexpr bool hasLinkError() const
constexpr double const * gainWidth() const
constexpr float const * riseTime() const
constexpr double tsRawCharge(const unsigned ts) const
constexpr void setSample(const unsigned ts, const uint8_t rawADC, const float differentialChargeGain, const double q, const double ped, const double pedWidth, const double g, const double gainWidth, const float t)
float riseTime_[MAXSAMPLES]
constexpr double darkCurrent() const