29 , hbheRecHitProducer_ (consumes<
HBHERecHitCollection>(config.getParameter<
edm::InputTag>(
"hbheRecHitProducer")))
30 , rhoProducer_ (consumes<double>(config.getParameter<
edm::InputTag>(
"rhoProducer")))
31 , doRhoCorrection_ (config.getParameter<
bool>(
"doRhoCorrection"))
32 , rhoMax_ (config.getParameter<double>(
"rhoMax"))
33 , rhoScale_ (config.getParameter<double>(
"rhoScale"))
34 , doEtSum_ (config.getParameter<
bool>(
"doEtSum"))
35 , effectiveAreaBarrel_ (config.getParameter<double>(
"effectiveAreaBarrel"))
36 , effectiveAreaEndcap_ (config.getParameter<double>(
"effectiveAreaEndcap"))
38 config.getParameter<double>(
"eMinHE"),
39 config.getParameter<double>(
"etMinHB"),
40 config.getParameter<double>(
"etMinHE"),
41 config.getParameter<double>(
"innerCone"),
42 config.getParameter<double>(
"outerCone"),
43 config.getParameter<
int>(
"depth")))
46 produces < reco::RecoEcalCandidateIsolationMap >();
58 desc.
add<
bool>((
"doRhoCorrection"),
false);
59 desc.
add<
double>((
"rhoMax"), 9.9999999E7);
60 desc.
add<
double>((
"rhoScale"), 1.0);
61 desc.
add<
double>((
"eMinHB"), 0.7);
62 desc.
add<
double>((
"eMinHE"), 0.8);
63 desc.
add<
double>((
"etMinHB"), -1.0);
64 desc.
add<
double>((
"etMinHE"), -1.0);
65 desc.
add<
double>((
"innerCone"), 0);
66 desc.
add<
double>((
"outerCone"), 0.15);
67 desc.
add<
int>((
"depth"), -1);
68 desc.
add<
bool>((
"doEtSum"),
false);
69 desc.
add<
double>((
"effectiveAreaBarrel"), 0.105);
70 desc.
add<
double>((
"effectiveAreaEndcap"), 0.170);
71 descriptions.
add((
"hltEgammaHLTHcalIsolationProducersRegional"), desc);
111 for(reco::RecoEcalCandidateCollection::const_iterator iRecoEcalCand = recoEcalCandHandle->begin(); iRecoEcalCand != recoEcalCandHandle->end(); iRecoEcalCand++){
118 recoEcalCandRef->superCluster()->phi(),hbheRecHitCollection,caloGeom,
119 hcalSevLvlComp.
product(),hcalChStatus);
122 if (fabs(recoEcalCandRef->superCluster()->eta()) < 1.442)
128 isol =
isolAlgo_->
getESum(recoEcalCandRef->superCluster()->eta(),recoEcalCandRef->superCluster()->phi(),
129 hbheRecHitCollection,caloGeom,
130 hcalSevLvlComp.
product(),hcalChStatus);
133 isoMap.
insert(recoEcalCandRef, isol);
136 iEvent.
put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(isoMap));
EgammaHLTHcalIsolation const *const isolAlgo_
const bool doRhoCorrection_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const edm::EDGetTokenT< double > rhoProducer_
const float effectiveAreaBarrel_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::EDGetTokenT< HBHERecHitCollection > hbheRecHitProducer_
const edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_
const float effectiveAreaEndcap_
EgammaHLTHcalIsolationProducersRegional(const edm::ParameterSet &)
~EgammaHLTHcalIsolationProducersRegional() override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
float getEtSum(float candEta, float candPhi, const HBHERecHitCollection *hbhe, const CaloGeometry *geometry) const
void produce(edm::StreamID sid, edm::Event &, const edm::EventSetup &) const override
T const * product() const
void insert(const key_type &k, const data_type &v)
insert an association
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< RecoEcalCandidate > RecoEcalCandidateCollection
collectin of RecoEcalCandidate objects
float getESum(float candEta, float candPhi, const HBHERecHitCollection *hbhe, const CaloGeometry *geometry) const
T const * product() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)