17 cutBasedAlgo_->setup(conf);
39 reco::PhotonCollection::const_iterator photon;
40 std::vector <Bool_t>
Loose;
41 std::vector <Bool_t>
Tight;
42 std::vector <Bool_t> LooseEM;
43 for (photon = (*photons).begin();
44 photon != (*photons).end(); ++photon) {
52 LooseEM.push_back(LooseEMQual);
53 Loose.push_back(LooseQual);
54 Tight.push_back(TightQual);
61 fillerlooseEM.
insert(photons, LooseEM.begin(), LooseEM.end());
68 fillerloose.
insert(photons, Loose.begin(), Loose.end());
75 fillertight.
insert(photons, Tight.begin(), Tight.end());
T getParameter(std::string const &) const
void decideEE(const reco::Photon *pho, bool &LooseEM, bool &LoosePhoton, bool &TightPhoton)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
PhotonIDProducer(const edm::ParameterSet &conf)
void insert(const H &h, I begin, I end)
virtual void produce(edm::Event &e, const edm::EventSetup &c)
void decideEB(const reco::Photon *pho, bool &LooseEM, bool &LoosePhoton, bool &TightPhoton)
CutBasedPhotonIDAlgo * cutBasedAlgo_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual ~PhotonIDProducer()
std::string photonCutBasedIDLooseLabel_
std::string photonCutBasedIDLooseEMLabel_
std::string photonCutBasedIDTightLabel_
edm::EDGetTokenT< reco::PhotonCollection > photonToken_