56 produces < reco::RecoEcalCandidateIsolationMap >();
69 desc.
add<
bool>(
"doRhoCorrection",
false);
70 desc.
add<
double>(
"rhoMax", 9.9999999E7);
71 desc.
add<
double>(
"rhoScale", 1.0);
72 desc.
add<
double>(
"etMinBarrel", -9999.0);
73 desc.
add<
double>(
"eMinBarrel", 0.095);
74 desc.
add<
double>(
"etMinEndcap", 0.11);
75 desc.
add<
double>(
"eMinEndcap", -9999.0);
76 desc.
add<
double>(
"intRadiusBarrel", 3.0);
77 desc.
add<
double>(
"intRadiusEndcap", 3.0);
78 desc.
add<
double>(
"extRadius", 0.3);
79 desc.
add<
double>(
"jurassicWidth", 3.0);
80 desc.
add<
double>(
"effectiveAreaBarrel", 0.101);
81 desc.
add<
double>(
"effectiveAreaEndcap", 0.046);
82 desc.
add<
bool>(
"useIsolEt",
true);
83 desc.
add<
bool>(
"tryBoth",
true);
84 desc.
add<
bool>(
"subtract",
false);
85 desc.
add<
bool>(
"useNumCrystals",
true);
87 descriptions.
add((
"hltEgammaHLTEcalRecIsolationProducer"), desc);
134 for (reco::RecoEcalCandidateCollection::const_iterator iRecoEcalCand= recoecalcandHandle->begin(); iRecoEcalCand!=recoecalcandHandle->end(); iRecoEcalCand++) {
152 else if( fabs(superClus->eta())<1.479) {
154 else isol = ecalBarrelIsol.
getEnergySum(&(*iRecoEcalCand));
158 else isol = ecalEndcapIsol.
getEnergySum(&(*iRecoEcalCand));
162 double subtractVal=0;
165 else subtractVal = superClus.
get()->rawEnergy();
170 if (fabs(superClus->eta()) < 1.442)
176 isoMap.
insert(recoecalcandref, isol);
179 iEvent.
put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(isoMap));
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double egIsoConeSizeInBarrel_
double getEtSum(const reco::Candidate *emObject) const
~EgammaHLTEcalRecIsolationProducer()
double egIsoConeSizeInEndcap_
float effectiveAreaBarrel_
Sin< T >::type sin(const T &t)
void produce(edm::Event &, const edm::EventSetup &) override
double getEnergySum(const reco::Candidate *emObject) const
void setUseNumCrystals(bool b=true)
edm::EDGetTokenT< EcalRecHitCollection > ecalEndcapRecHitProducer_
T const * get() const
Returns C++ pointer to the item.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
T const * product() const
void insert(const key_type &k, const data_type &v)
insert an association
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_
T const * product() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
float effectiveAreaEndcap_
double egIsoJurassicWidth_
EgammaHLTEcalRecIsolationProducer(const edm::ParameterSet &)
edm::EDGetTokenT< double > rhoProducer_
edm::EDGetTokenT< EcalRecHitCollection > ecalBarrelRecHitProducer_