73 : doEtSum_(
config.getParameter<
bool>(
"doEtSum")),
78 innerCone_(
config.getParameter<double>(
"innerCone")),
79 outerCone_(
config.getParameter<double>(
"outerCone")),
80 depth_(
config.getParameter<
int>(
"depth")),
81 maxSeverityHB_(
config.getParameter<
int>(
"maxSeverityHB")),
82 maxSeverityHE_(
config.getParameter<
int>(
"maxSeverityHE")),
83 useSingleTower_(
config.getParameter<
bool>(
"useSingleTower")),
84 doRhoCorrection_(
config.getParameter<
bool>(
"doRhoCorrection")),
85 rhoScale_(
config.getParameter<double>(
"rhoScale")),
86 rhoMax_(
config.getParameter<double>(
"rhoMax")),
87 effectiveAreas_(
config.getParameter<
std::
vector<double> >(
"effectiveAreas")),
88 absEtaLowEdges_(
config.getParameter<
std::
vector<double> >(
"absEtaLowEdges")),
89 recoEcalCandidateProducer_(consumes(
config.getParameter<
edm::
InputTag>(
"recoEcalCandidateProducer"))),
91 rhoProducer_(doRhoCorrection_ ? consumes<double>(
config.getParameter<
edm::
InputTag>(
"rhoProducer"))
92 :
edm::EDGetTokenT<double>()),
98 putToken_{produces<reco::RecoEcalCandidateIsolationMap>()} {
99 if (doRhoCorrection_) {
100 if (absEtaLowEdges_.size() != effectiveAreas_.size()) {
101 throw cms::Exception(
"IncompatibleVects") <<
"absEtaLowEdges and effectiveAreas should be of the same size. \n";
104 if (absEtaLowEdges_.at(0) != 0.0) {
105 throw cms::Exception(
"IncompleteCoverage") <<
"absEtaLowEdges should start from 0. \n";
108 for (
unsigned int aIt = 0; aIt < absEtaLowEdges_.size() - 1; aIt++) {
109 if (!(absEtaLowEdges_.at(aIt) < absEtaLowEdges_.at(aIt + 1))) {
110 throw cms::Exception(
"ImproperBinning") <<
"absEtaLowEdges entries should be in increasing order. \n";
122 desc.add<
bool>(
"doRhoCorrection",
false);
123 desc.add<
double>(
"rhoMax", 999999.);
124 desc.add<
double>((
"rhoScale"), 1.0);
126 desc.add<std::vector<double> >(
"eThresHB", {0.1, 0.2, 0.3, 0.3});
127 desc.add<std::vector<double> >(
"etThresHB", {0, 0, 0, 0});
128 desc.add<std::vector<double> >(
"eThresHE", {0.1, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2});
129 desc.add<std::vector<double> >(
"etThresHE", {0, 0, 0, 0, 0, 0, 0});
130 desc.add<
double>(
"innerCone", 0);
131 desc.add<
double>(
"outerCone", 0.14);
132 desc.add<
int>(
"depth", 0);
133 desc.add<
int>(
"maxSeverityHB", 9);
134 desc.add<
int>(
"maxSeverityHE", 9);
135 desc.add<
bool>(
"doEtSum",
false);
136 desc.add<
bool>(
"useSingleTower",
false);
137 desc.add<std::vector<double> >(
"effectiveAreas", {0.079, 0.25});
138 desc.add<std::vector<double> >(
"absEtaLowEdges", {0.0, 1.479});
139 descriptions.
add(
"hltEgammaHLTHcalVarProducerFromRecHit",
desc);
159 for (
unsigned int iRecoEcalCand = 0; iRecoEcalCand < recoEcalCandHandle->size(); iRecoEcalCand++) {
212 auto scEta =
std::abs(recoEcalCandRef->superCluster()->eta());
222 isoMap.
insert(recoEcalCandRef, isol);
const edm::ESGetToken< HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd > hcalSevLvlComputerToken_
double getHcalESum(const reco::Candidate *c, int depth) const
const bool doRhoCorrection_
#define DEFINE_FWK_MODULE(type)
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
const edm::EDGetTokenT< double > rhoProducer_
const bool useSingleTower_
EgammaHLTHcalVarProducerFromRecHit(const edm::ParameterSet &)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const final
double getHcalESumBc(const reco::Candidate *c, int depth) const
const edm::ESGetToken< CaloTowerConstituentsMap, CaloGeometryRecord > caloTowerConstituentsMapToken_
const edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > hcalChannelQualityToken_
Abs< T >::type abs(const T &t)
double getHcalEtSum(const reco::Candidate *c, int depth) const
bool getData(T &iHolder) const
const EgammaHcalIsolation::arrayHB eThresHB_
const EgammaHcalIsolation::arrayHE etThresHE_
const std::vector< double > effectiveAreas_
const EgammaHcalIsolation::arrayHB etThresHB_
double getHcalEtSumBc(const reco::Candidate *c, int depth) const
const std::vector< double > absEtaLowEdges_
const edm::EDGetTokenT< HBHERecHitCollection > hbheRecHitsTag_
const edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_
void insert(const key_type &k, const data_type &v)
insert an association
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
T const * get() const
Returns C++ pointer to the item.
const EgammaHcalIsolation::arrayHE eThresHE_
std::array< double, 4 > arrayHB
const edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > hcalTopologyToken_
const edm::EDPutTokenT< reco::RecoEcalCandidateIsolationMap > putToken_
std::array< double, 7 > arrayHE