1 #ifndef DataFormats_PatCandidates_HcalDepthEnergyFractions_h 2 #define DataFormats_PatCandidates_HcalDepthEnergyFractions_h 27 for (
auto frac : fractions_) fractionsI_.push_back((uint8_t)(
frac*200.));
33 for (
auto fracI : fractionsI_) fractions_.push_back(
float(fracI)/200.);
49 if (i<fractions_.size())
return fractions_[i];
60 if (i<fractionsI_.size())
return int(fractionsI_[i]);
HcalDepthEnergyFractions()
std::vector< uint8_t > fractionsI_
const std::vector< uint8_t > & fractionsI() const
void reset(std::vector< float > v)
float fraction(unsigned int i) const
const std::vector< float > & fractions() const
HcalDepthEnergyFractions(const std::vector< float > &v)
std::vector< float > fractions_
int fractionI(unsigned int i) const