DataFormats
L1THGCal
src
HGCalMulticluster.cc
Go to the documentation of this file.
1
#include "
DataFormats/L1THGCal/interface/HGCalMulticluster.h
"
2
3
using namespace
l1t
;
4
5
HGCalMulticluster::HGCalMulticluster
(
const
LorentzVector
p4
,
int
pt
,
int
eta
,
int
phi)
6
:
HGCalClusterT
<
l1t
::
HGCalCluster
>(
p4
,
pt
,
eta
, phi), hOverE_(-99), hOverEValid_(
false
) {}
7
8
HGCalMulticluster::HGCalMulticluster
(
const
edm::Ptr<l1t::HGCalCluster>
&clusterSeed,
float
fraction
)
9
:
HGCalClusterT
<
l1t
::
HGCalCluster
>(clusterSeed,
fraction
), hOverE_(-99), hOverEValid_(
false
) {}
10
11
HGCalMulticluster::~HGCalMulticluster
() {}
12
13
void
HGCalMulticluster::saveEnergyInterpretation
(
const
HGCalMulticluster::EnergyInterpretation
eInt,
double
energy
) {
14
energyInterpretationFractions_
[eInt] =
energy
/ this->
energy
();
15
}
16
17
double
HGCalMulticluster::interpretationFraction
(
const
HGCalMulticluster::EnergyInterpretation
eInt)
const
{
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
}
l1t::HGCalCluster
Definition:
HGCalCluster.h:11
funct::false
false
Definition:
Factorize.h:29
l1t::HGCalMulticluster::HGCalMulticluster
HGCalMulticluster()
Definition:
HGCalMulticluster.h:15
DiDispStaMuonMonitor_cfi.pt
pt
Definition:
DiDispStaMuonMonitor_cfi.py:39
l1t::HGCalMulticluster::interpretationFraction
double interpretationFraction(const HGCalMulticluster::EnergyInterpretation eInt) const
Definition:
HGCalMulticluster.cc:17
HGCalMulticluster.h
l1t::HGCalMulticluster::saveEnergyInterpretation
void saveEnergyInterpretation(const HGCalMulticluster::EnergyInterpretation eInt, double energy)
Definition:
HGCalMulticluster.cc:13
HLT_FULL_cff.fraction
fraction
Definition:
HLT_FULL_cff.py:52861
PVValHelper::eta
Definition:
PVValidationHelpers.h:69
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition:
HCALHighEnergyHPDFilter_cfi.py:5
l1t::HGCalClusterT
Definition:
HGCalClusterT.h:21
l1t::HGCalMulticluster::~HGCalMulticluster
~HGCalMulticluster() override
Definition:
HGCalMulticluster.cc:11
l1t
delete x;
Definition:
CaloConfig.h:22
l1t::HGCalMulticluster::EnergyInterpretation
EnergyInterpretation
Definition:
HGCalMulticluster.h:36
p4
double p4[4]
Definition:
TauolaWrapper.h:92
edm::Ptr
Definition:
AssociationVector.h:31
reco::LeafCandidate::energy
double energy() const final
energy
Definition:
LeafCandidate.h:125
l1t::HGCalMulticluster::energyInterpretationFractions_
std::map< EnergyInterpretation, double > energyInterpretationFractions_
Definition:
HGCalMulticluster.h:92
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition:
Candidate.h:36
Generated for CMSSW Reference Manual by
1.8.16