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);
113 for (
unsigned int iReco = 0; iReco < recoecalcandHandle->size(); iReco++) {
116 if (fabs(candRef->eta()) < 1.479) {
127 for(
unsigned i=0;
i<forIsolation->size();
i++) {
133 if (fabs(candRef->eta()) < 1.479) {
143 math::XYZVector candDirectionWrtVtx(candRef->superCluster()->x() - pfvtx.x(),
144 candRef->superCluster()->y() - pfvtx.y(),
145 candRef->superCluster()->z() - pfvtx.z());
147 float dEta = fabs(candDirectionWrtVtx.Eta() - pfc.
momentum().Eta());
148 if(dEta < etaStrip)
continue;
150 float dR =
deltaR(candDirectionWrtVtx.Eta(), candDirectionWrtVtx.Phi(), pfc.
momentum().Eta(), pfc.
momentum().Phi());
151 if(dR >
drMax_ || dR < dRVeto)
continue;
158 if (fabs(candRef->eta()) < 1.479)
164 recoEcalCandMap.
insert(candRef, sum);
174 for(
unsigned int iEl=0; iEl<electronHandle->size(); iEl++) {
177 if (fabs(eleRef->eta()) < 1.479) {
188 for(
unsigned i=0;
i<forIsolation->size();
i++) {
194 if (fabs(eleRef->eta()) < 1.479) {
202 float dEta = fabs(eleRef->eta() - pfc.
momentum().Eta());
203 if(dEta < etaStrip)
continue;
206 if(dR >
drMax_ || dR < dRVeto)
continue;
213 if (fabs(eleRef->superCluster()->eta()) < 1.479)
219 eleMap.
insert(eleRef, sum);
226 iEvent.
put(mapForEvent);
229 iEvent.
put(mapForEvent);
virtual void produce(edm::Event &, const edm::EventSetup &)
T getParameter(std::string const &) const
EgammaHLTPFNeutralIsolationProducer(const edm::ParameterSet &)
virtual float pt() const
transverse momentum
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 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 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)
T const * product() const
Particle reconstructed by the particle flow algorithm.
virtual ParticleType particleId() const
float effectiveAreaBarrel_