|
void | beginStream (edm::StreamID) override |
|
void | endStream () override |
|
template<class C1 , class C2 , class C3 , class C4 > |
void | matchElectronToPhoton (const C1 &refProdOne, C2 &itemsOne, const std::string &nameOne, const C3 &refProdMany, C4 &itemsMany, const std::string &nameMany) |
|
template<class C1 , class C2 , class C3 , class C4 > |
void | matchOneToMany (const C1 &refProdOne, C2 &itemsOne, const std::string &nameOne, const C3 &refProdMany, C4 &itemsMany, const std::string &nameMany) |
|
void | produce (edm::Event &, const edm::EventSetup &) override |
|
Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 45 of file PATObjectCrossLinker.cc.
Definition at line 162 of file PATObjectCrossLinker.cc.
References MillePedeFileConverter_cfg::e, pwdgSkimBPark_cfi::electrons, electrons_, edm::Event::getByToken(), edm::Event::getRefBeforePut(), dqmiolumiharvest::j, singleTopDQM_cfi::jets, jets_, visualization-live-secondInstance_cfg::m, matchElectronToPhoton(), matchOneToMany(), eostools::move(), PDWG_BPHSkim_cff::muons, muons_, AlCaHLTBitMon_ParallelJobs::p, BPHMonitor_cfi::photons, photons_, edm::Event::put(), OrderedSet::t, Tau3MuMonitor_cff::taus, and taus_.
166 auto jets = std::make_unique<std::vector<pat::Jet>>();
167 for (
const auto&
j : *jetsIn)
169 auto jetRefProd = iEvent.
getRefBeforePut<std::vector<pat::Jet>>(
"jets");
173 auto muons = std::make_unique<std::vector<pat::Muon>>();
174 for (
const auto&
m : *muonsIn)
176 auto muRefProd = iEvent.
getRefBeforePut<std::vector<pat::Muon>>(
"muons");
180 auto electrons = std::make_unique<std::vector<pat::Electron>>();
181 for (
const auto&
e : *electronsIn)
183 auto eleRefProd = iEvent.
getRefBeforePut<std::vector<pat::Electron>>(
"electrons");
187 auto taus = std::make_unique<std::vector<pat::Tau>>();
188 for (
const auto&
t : *tausIn)
190 auto tauRefProd = iEvent.
getRefBeforePut<std::vector<pat::Tau>>(
"taus");
194 auto photons = std::make_unique<std::vector<pat::Photon>>();
195 for (
const auto&
p : *photonsIn)
197 auto phRefProd = iEvent.
getRefBeforePut<std::vector<pat::Photon>>(
"photons");
void matchOneToMany(const C1 &refProdOne, C2 &itemsOne, const std::string &nameOne, const C3 &refProdMany, C4 &itemsMany, const std::string &nameMany)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::EDGetTokenT< edm::View< pat::Muon > > muons_
const edm::EDGetTokenT< edm::View< pat::Jet > > jets_
const edm::EDGetTokenT< edm::View< pat::Electron > > electrons_
RefProd< PROD > getRefBeforePut()
void matchElectronToPhoton(const C1 &refProdOne, C2 &itemsOne, const std::string &nameOne, const C3 &refProdMany, C4 &itemsMany, const std::string &nameMany)
const edm::EDGetTokenT< edm::View< pat::Tau > > taus_
const edm::EDGetTokenT< edm::View< pat::Photon > > photons_