48 produces < reco::RecoEcalCandidateIsolationMap >();
58 desc.
add<
double>(
"drMax", 0.3);
59 desc.
add<
double>(
"drVetoBarrel", 0.0);
60 desc.
add<
double>(
"drVetoEndcap", 0.070);
61 desc.
add<
double>(
"etaStripBarrel", 0.015);
62 desc.
add<
double>(
"etaStripEndcap", 0.0);
63 desc.
add<
double>(
"energyBarrel", 0.0);
64 desc.
add<
double>(
"energyEndcap", 0.0);
65 desc.
add<
int>(
"pfCandidateType", 4);
66 descriptions.
add((
"hltEgammaHLTPFPhotonIsolationProducer"), desc);
82 for (
unsigned int iReco = 0; iReco < recoecalcandHandle->size(); iReco++) {
86 if (fabs(candRef->eta()) < 1.479) {
97 for(
unsigned i=0;
i<forIsolation->size();
i++) {
110 if (fabs(candRef->eta()) < 1.479) {
120 math::XYZVector photon_directionWrtVtx(candRef->superCluster()->x() - pfvtx.x(),
121 candRef->superCluster()->y() - pfvtx.y(),
122 candRef->superCluster()->z() - pfvtx.z());
124 float dEta = fabs(photon_directionWrtVtx.Eta() - pfc.
momentum().Eta());
125 float dR =
deltaR(photon_directionWrtVtx.Eta(), photon_directionWrtVtx.Phi(), pfc.
momentum().Eta(), pfc.
momentum().Phi());
130 if(dR >
drMax_ || dR < dRVeto)
137 isoMap.
insert(candRef, sum);
virtual double energy() const GCC11_FINAL
energy
T getParameter(std::string const &) const
edm::InputTag pfCandidates_
EgammaHLTPFPhotonIsolationProducer(const edm::ParameterSet &)
~EgammaHLTPFPhotonIsolationProducer()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double deltaR(double eta1, double eta2, double phi1, double phi2)
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
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
virtual Vector momentum() const GCC11_FINAL
spatial momentum vector
void add(std::string const &label, ParameterSetDescription const &psetDescription)
T const * product() const
Particle reconstructed by the particle flow algorithm.
virtual ParticleType particleId() const
virtual void produce(edm::Event &, const edm::EventSetup &)
virtual float pt() const GCC11_FINAL
transverse momentum
edm::InputTag recoEcalCandidateProducer_