19 cutBasedAlgo_->setup(conf);
41 reco::PhotonCollection::const_iterator photon;
42 std::vector <Bool_t> Loose;
43 std::vector <Bool_t> Tight;
44 std::vector <Bool_t> LooseEM;
45 for (photon = (*photons).begin();
46 photon != (*photons).end(); ++photon) {
54 LooseEM.push_back(LooseEMQual);
55 Loose.push_back(LooseQual);
56 Tight.push_back(TightQual);
63 fillerlooseEM.
insert(photons, LooseEM.begin(), LooseEM.end());
70 fillerloose.
insert(photons, Loose.begin(), Loose.end());
77 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)
PhotonIDProducer(const edm::ParameterSet &conf)
void insert(const H &h, I begin, I end)
virtual void produce(edm::Event &e, const edm::EventSetup &c)
std::string photonProducer_
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()
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::string photonCutBasedIDLooseLabel_
std::string photonCutBasedIDLooseEMLabel_
std::string photonCutBasedIDTightLabel_