|
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 46 of file PATObjectCrossLinker.cc.
Definition at line 159 of file PATObjectCrossLinker.cc.
References MillePedeFileConverter_cfg::e, lowPtElectrons_cff::electrons, electrons_, edm::Event::getByToken(), edm::Event::getRefBeforePut(), fwrapper::jets, jets_, funct::m, matchElectronToPhoton(), matchOneToMany(), eostools::move(), extraflags_cff::muons, muons_, AlCaHLTBitMon_ParallelJobs::p, muons_cff::photons, photons_, edm::Event::put(), protons_cff::t, nano_cff::taus, and taus_.
164 auto jets = std::make_unique<std::vector<pat::Jet>>();
165 for(
const auto & j : *jetsIn)
jets->push_back(j);
166 auto jetRefProd = iEvent.
getRefBeforePut< std::vector<pat::Jet> >(
"jets");
170 auto muons = std::make_unique<std::vector<pat::Muon>>();
171 for(
const auto &
m : *muonsIn)
muons->push_back(
m);
172 auto muRefProd = iEvent.
getRefBeforePut< std::vector<pat::Muon> >(
"muons");
176 auto electrons = std::make_unique<std::vector<pat::Electron>>();
177 for(
const auto &
e : *electronsIn)
electrons->push_back(
e);
178 auto eleRefProd = iEvent.
getRefBeforePut< std::vector<pat::Electron> >(
"electrons");
182 auto taus = std::make_unique<std::vector<pat::Tau>>();
183 for(
const auto &
t : *tausIn)
taus->push_back(
t);
184 auto tauRefProd = iEvent.
getRefBeforePut< std::vector<pat::Tau> >(
"taus");
188 auto photons = std::make_unique<std::vector<pat::Photon>>();
189 for(
const auto &
p : *photonsIn)
photons->push_back(
p);
190 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_