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);
59 auto outlooseEM = std::make_unique<edm::ValueMap<Bool_t>>();
61 fillerlooseEM.insert(photons, LooseEM.begin(), LooseEM.end());
66 auto outloose = std::make_unique<edm::ValueMap<Bool_t>>();
68 fillerloose.insert(photons, Loose.begin(), Loose.end());
73 auto outtight = std::make_unique<edm::ValueMap<Bool_t>>();
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)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
PhotonIDProducer(const edm::ParameterSet &conf)
virtual void produce(edm::Event &e, const edm::EventSetup &c)
void decideEB(const reco::Photon *pho, bool &LooseEM, bool &LoosePhoton, bool &TightPhoton)
CutBasedPhotonIDAlgo * cutBasedAlgo_
virtual ~PhotonIDProducer()
std::string photonCutBasedIDLooseLabel_
std::string photonCutBasedIDLooseEMLabel_
std::string photonCutBasedIDTightLabel_
edm::EDGetTokenT< reco::PhotonCollection > photonToken_