CMS 3D CMS Logo

HGCalMulticluster.cc
Go to the documentation of this file.
2 
3 using namespace l1t;
4 
6  : HGCalClusterT<l1t::HGCalCluster>(p4, pt, eta, phi), hOverE_(-99), hOverEValid_(false) {}
7 
9  : HGCalClusterT<l1t::HGCalCluster>(clusterSeed, fraction), hOverE_(-99), hOverEValid_(false) {}
10 
12 
14  energyInterpretationFractions_[eInt] = energy / this->energy();
15 }
16 
18  auto intAndEnergyFraction = energyInterpretationFractions_.find(eInt);
19  if (intAndEnergyFraction == energyInterpretationFractions_.end()) {
20  // NOTE: this is an arbitary choice: we return the default cluster energy if this interpreation is not available!
21  return 1;
22  }
23  return intAndEnergyFraction->second;
24 }
delete x;
Definition: CaloConfig.h:22
std::map< EnergyInterpretation, double > energyInterpretationFractions_
double p4[4]
Definition: TauolaWrapper.h:92
double energy() const final
energy
double interpretationFraction(const HGCalMulticluster::EnergyInterpretation eInt) const
void saveEnergyInterpretation(const HGCalMulticluster::EnergyInterpretation eInt, double energy)
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37