113 std::vector<double> chIsoValues;
114 std::vector<double> phIsoValues;
115 std::vector<double> nhIsoValues;
116 chIsoValues.reserve(phoCollection->size());
117 phIsoValues.reserve(phoCollection->size());
118 nhIsoValues.reserve(phoCollection->size());
120 unsigned int ivtx = 0;
124 for (reco::PhotonCollection::const_iterator aPho = recoPho->begin(); aPho != recoPho->end(); ++aPho) {
133 std::cout <<
" pt " << aPho->pt() <<
" eta " << aPho->eta() <<
" phi " << aPho->phi()
134 <<
" charge " << aPho->charge()<<
" : " << std::endl;;
147 chFiller.
insert(phoCollection, chIsoValues.begin(), chIsoValues.end() );
150 phFiller.
insert(phoCollection, phIsoValues.begin(), phIsoValues.end() );
153 nhFiller.
insert(phoCollection, nhIsoValues.begin(), nhIsoValues.end() );
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
float getIsolationPhoton()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
LuminosityBlockNumber_t luminosityBlock() const
float getIsolationCharged()
edm::EDGetTokenT< reco::PhotonCollection > photonToken_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
PFIsolationEstimator isolator
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
edm::EDGetTokenT< reco::PFCandidateCollection > particleFlowToken_
virtual bool filter(edm::Event &, const edm::EventSetup &)
T const * product() const
std::vector< Photon > PhotonCollection
collectin of Photon objects
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
float getIsolationNeutral()
void initializePhotonIsolation(Bool_t bApplyVeto)
float fGetIsolation(const reco::PFCandidate *pfCandidate, const reco::PFCandidateCollection *pfParticlesColl, reco::VertexRef vtx, edm::Handle< reco::VertexCollection > vertices)
void setConeSize(float fValue=0.4)
PhotonIsoProducer(const edm::ParameterSet &)