22 double icalconst = 1.;
26 if (icalit != icalMap.
end()) {
27 icalconst = (*icalit);
34 for (
unsigned int igain(0); igain <=
NGAINS; ++igain) {
37 LSB[igain] = Emax / (
MAXADC * gainRatios[igain]);
45 double correction_factor_for_premixed_sample_transparency = 1.0;
51 value_LC =
cache->second;
59 double value_LC_prime = 1.;
65 value_LC_prime =
cache->second;
73 correction_factor_for_premixed_sample_transparency = value_LC_prime / value_LC;
78 for (
int isample = 0; isample < digi.size(); ++isample) {
79 int gainId = digi[isample].gainId();
84 correction_factor_for_premixed_sample_transparency;
88 correction_factor_for_premixed_sample_transparency;
93 correction_factor_for_premixed_sample_transparency;
129 double icalconst = 1.;
133 if (icalit != icalMap.
end()) {
134 icalconst = (*icalit);
141 for (
unsigned int igain(0); igain <=
NGAINS; ++igain) {
144 LSB[igain] = Emax / (
MAXADC * gainRatios[igain]);
152 double correction_factor_for_premixed_sample_transparency = 1.0;
153 double value_LC = 1.;
159 value_LC =
cache->second;
167 double value_LC_prime = 1.;
172 value_LC_prime =
cache->second;
180 correction_factor_for_premixed_sample_transparency = value_LC_prime / value_LC;
185 for (
int isample = 0; isample < digi.size(); ++isample) {
186 int gainId = digi[isample].gainId();
191 correction_factor_for_premixed_sample_transparency;
194 correction_factor_for_premixed_sample_transparency;
198 correction_factor_for_premixed_sample_transparency;
230 double icalconst = 1.;
234 if (icalit != icalMap.
end()) {
235 icalconst = double(*icalit);
240 for (
int isample = 0; isample < digi.size(); ++isample) {
CalibCache m_valueLCCache_LC_prime
const bool m_timeDependent
CalibCache m_valueLCCache_LC
static constexpr int NGAINS
double findLaserConstant_LC(const DetId &detId) const
const std::vector< float > GetGainRatios(const DetId &detid)
const_iterator find(uint32_t rawId) const
const EcalIntercalibConstantsMC * ical
static constexpr int MAXADC
const_iterator find(uint32_t rawId) const
constexpr int gainId(sample_type sample)
get the gainId (2 bits)
CaloSamples samplesInPE(const DIGI &digi)
std::vector< Item >::const_iterator const_iterator
double findLaserConstant_LC_prime(const DetId &detId) const
const_iterator end() const
std::vector< Item >::const_iterator const_iterator
const self & getMap() const
const_iterator end() const
const self & getMap() const
const ESIntercalibConstants * esmips
double fullScaleEnergy(const DetId &detId) const
double peToAConversion(const DetId &detId) const
uint16_t *__restrict__ uint16_t const *__restrict__ adc