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 | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndRuns () 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 25 of file GenJetFlavourInfoPreserver.cc.
|
explicit |
Definition at line 42 of file GenJetFlavourInfoPreserver.cc.
|
inlineoverride |
Definition at line 28 of file GenJetFlavourInfoPreserver.cc.
|
override |
Definition at line 52 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 36 of file GenJetFlavourInfoPreserver.cc.
Referenced by produce().
|
private |
Definition at line 33 of file GenJetFlavourInfoPreserver.cc.
Referenced by produce().
|
private |
Definition at line 37 of file GenJetFlavourInfoPreserver.cc.
Referenced by produce().
|
private |
Definition at line 34 of file GenJetFlavourInfoPreserver.cc.
Referenced by produce().