51 produces < reco::RecoEcalCandidateIsolationMap >();
54 produces < reco::ElectronIsolationMap >();
65 desc.
add<
bool>(
"doRhoCorrection",
false);
66 desc.
add<
double>(
"rhoMax", 9.9999999E7);
67 desc.
add<
double>(
"rhoScale", 1.0);
68 desc.
add<
double>(
"effectiveAreaBarrel", 0.101);
69 desc.
add<
double>(
"effectiveAreaEndcap", 0.046);
70 desc.
add<
bool>(
"useSCRefs",
false);
71 desc.
add<
double>(
"drMax", 0.3);
72 desc.
add<
double>(
"drVetoBarrel", 0.0);
73 desc.
add<
double>(
"drVetoEndcap", 0.0);
74 desc.
add<
double>(
"etaStripBarrel", 0.0);
75 desc.
add<
double>(
"etaStripEndcap", 0.0);
76 desc.
add<
double>(
"energyBarrel", 0.0);
77 desc.
add<
double>(
"energyEndcap", 0.0);
78 desc.
add<
int>(
"pfCandidateType", 5);
79 descriptions.
add((
"hltEgammaHLTPFNeutralIsolationProducer"), desc);
111 for (
unsigned int iReco = 0; iReco < recoecalcandHandle->size(); iReco++) {
114 if (fabs(candRef->eta()) < 1.479) {
125 for(
unsigned i=0;
i<forIsolation->size();
i++) {
131 if (fabs(candRef->eta()) < 1.479) {
141 math::XYZVector candDirectionWrtVtx(candRef->superCluster()->x() - pfvtx.x(),
142 candRef->superCluster()->y() - pfvtx.y(),
143 candRef->superCluster()->z() - pfvtx.z());
145 float dEta = fabs(candDirectionWrtVtx.Eta() - pfc.
momentum().Eta());
146 if(dEta < etaStrip)
continue;
148 float dR =
deltaR(candDirectionWrtVtx.Eta(), candDirectionWrtVtx.Phi(), pfc.
momentum().Eta(), pfc.
momentum().Phi());
149 if(dR >
drMax_ || dR < dRVeto)
continue;
156 if (fabs(candRef->eta()) < 1.479)
162 recoEcalCandMap.
insert(candRef, sum);
165 iEvent.
put(mapForEvent);
175 for(
unsigned int iEl=0; iEl<electronHandle->size(); iEl++) {
178 if (fabs(eleRef->eta()) < 1.479) {
189 for(
unsigned i=0;
i<forIsolation->size();
i++) {
195 if (fabs(eleRef->eta()) < 1.479) {
203 float dEta = fabs(eleRef->eta() - pfc.
momentum().Eta());
204 if(dEta < etaStrip)
continue;
207 if(dR >
drMax_ || dR < dRVeto)
continue;
214 if (fabs(eleRef->superCluster()->eta()) < 1.479)
220 eleMap.
insert(eleRef, sum);
223 iEvent.
put(mapForEvent);
T getParameter(std::string const &) const
EgammaHLTPFNeutralIsolationProducer(const edm::ParameterSet &)
edm::EDGetTokenT< double > rhoProducer_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual Vector momentum() const
spatial momentum vector
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_
virtual double pt() const
transverse momentum
virtual double energy() const
energy
float effectiveAreaEndcap_
edm::EDGetTokenT< reco::PFCandidateCollection > pfCandidateProducer_
edm::EDGetTokenT< reco::ElectronCollection > electronProducer_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual const Point & vertex() const
vertex position (overwritten by PF...)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
double deltaR(double eta1, double eta2, double phi1, double phi2)
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void produce(edm::Event &, const edm::EventSetup &) override
T const * product() const
void insert(const key_type &k, const data_type &v)
insert an association
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Particle reconstructed by the particle flow algorithm.
virtual ParticleType particleId() const
float effectiveAreaBarrel_