Transfers the JetFlavourInfos from the original GenJets to the slimmedGenJets in MiniAOD. More...
Public Member Functions | |
GenJetFlavourInfoPreserver (const edm::ParameterSet &iConfig) | |
void | produce (edm::Event &iEvent, const edm::EventSetup &iSetup) override |
~GenJetFlavourInfoPreserver () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () const final |
Private Attributes | |
const edm::EDGetTokenT< reco::JetFlavourInfoMatchingCollection > | genJetFlavourInfosToken_ |
const edm::EDGetTokenT< edm::View< reco::GenJet > > | genJetsToken_ |
const edm::EDGetTokenT< edm::Association< std::vector< reco::GenJet > > > | slimmedGenJetAssociationToken_ |
const edm::EDGetTokenT< edm::View< reco::Jet > > | slimmedGenJetsToken_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Transfers the JetFlavourInfos from the original GenJets to the slimmedGenJets in MiniAOD.
Definition at line 27 of file GenJetFlavourInfoPreserver.cc.
|
explicit |
Definition at line 44 of file GenJetFlavourInfoPreserver.cc.
|
inlineoverride |
Definition at line 30 of file GenJetFlavourInfoPreserver.cc.
|
override |
Definition at line 54 of file GenJetFlavourInfoPreserver.cc.
References DEFINE_FWK_MODULE, slimmedGenJetsFlavourInfos_cfi::genJetFlavourInfos, genJetFlavourInfosToken_, ttbarCategorization_cff::genJets, genJetsToken_, edm::Event::getByToken(), mps_fire::i, GenHFHadronMatcher_cfi::jetFlavourInfos, eostools::move(), edm::Event::put(), edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >::size(), slimmedGenJetsFlavourInfos_cfi::slimmedGenJetAssociation, slimmedGenJetAssociationToken_, slimmedGenJets_cfi::slimmedGenJets, and slimmedGenJetsToken_.
Referenced by ~GenJetFlavourInfoPreserver().
|
private |
Definition at line 38 of file GenJetFlavourInfoPreserver.cc.
Referenced by produce().
|
private |
Definition at line 35 of file GenJetFlavourInfoPreserver.cc.
Referenced by produce().
|
private |
Definition at line 39 of file GenJetFlavourInfoPreserver.cc.
Referenced by produce().
|
private |
Definition at line 36 of file GenJetFlavourInfoPreserver.cc.
Referenced by produce().