Definition at line 28 of file GenJetGenPartMerger.cc.
◆ GenJetGenPartMerger()
Definition at line 56 of file GenJetGenPartMerger.cc.
61 produces<reco::GenJetCollection>(
"merged");
62 produces<edm::ValueMap<bool>>(
"hasTauAnc");
T getParameter(std::string const &) const
const edm::EDGetTokenT< reco::GenJetCollection > jetToken_
const StringCutObjectSelector< reco::Candidate > cut_
const edm::EDGetTokenT< reco::GenParticleCollection > partToken_
const edm::EDGetTokenT< edm::ValueMap< bool > > tauAncToken_
◆ ~GenJetGenPartMerger()
GenJetGenPartMerger::~GenJetGenPartMerger |
( |
| ) |
|
|
override |
◆ beginStream()
◆ endStream()
void GenJetGenPartMerger::endStream |
( |
| ) |
|
|
overrideprivate |
◆ fillDescriptions()
◆ produce()
Definition at line 80 of file GenJetGenPartMerger.cc.
References cut_, trigObjTnPSource_cfi::filler, iEvent, metsig::jet, jetToken_, eostools::move(), MillePedeFileConverter_cfg::out, partToken_, and tauAncToken_.
82 auto merged = std::make_unique<reco::GenJetCollection>();
84 std::vector<bool> hasTauAncValues;
90 for (
unsigned int ijet = 0; ijet < jetHandle->size(); ++ijet) {
91 auto jet = jetHandle->at(ijet);
95 hasTauAncValues.push_back(tauAncProd[jetRef]);
99 for (
const auto&
part : partProd) {
104 merged->push_back(
jet);
105 hasTauAncValues.push_back(
false);
110 auto out = std::make_unique<edm::ValueMap<bool>>();
112 filler.insert(newmerged, hasTauAncValues.begin(), hasTauAncValues.end());
Jets made from MC generator particles.
const edm::EDGetTokenT< reco::GenJetCollection > jetToken_
const StringCutObjectSelector< reco::Candidate > cut_
const edm::EDGetTokenT< reco::GenParticleCollection > partToken_
const edm::EDGetTokenT< edm::ValueMap< bool > > tauAncToken_
◆ cut_
◆ jetToken_
◆ partToken_
◆ tauAncToken_