16 recoPhoton_.nPhotons = 0;
18 for (reco::PhotonCollection::const_iterator
ph =
photons->begin();
21 recoPhoton_.e.push_back(
ph->energy());
22 recoPhoton_.pt.push_back(
ph->pt());
23 recoPhoton_.et.push_back(
ph->et());
24 recoPhoton_.eta.push_back(
ph->eta());
25 recoPhoton_.phi.push_back(
ph->phi());
26 recoPhoton_.r9.push_back(
ph->r9());
27 recoPhoton_.hasPixelSeed.push_back(
ph->hasPixelSeed());
31 recoPhoton_.isTightPhoton.push_back((*(phoVIDDecisionHandles[0]))[photonEdmRef]);
32 recoPhoton_.isLoosePhoton.push_back((*(phoVIDDecisionHandles[1]))[photonEdmRef]);
34 recoPhoton_.nPhotons++;
void SetPhoton(const edm::Event &event, const edm::EventSetup &setup, const edm::Handle< reco::PhotonCollection > photons, const std::vector< edm::Handle< edm::ValueMap< bool > > > phoVIDDecisionHandles, const unsigned &maxPhoton)