#include <InputGenJetsParticleSelector.h>
Public Types | |
typedef std::vector< bool > | ParticleBitmap |
typedef std::vector< const reco::Candidate * > | ParticleVector |
enum | ResonanceState { kNo = 0, kDirect, kIndirect } |
Public Types inherited from edm::global::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Public Member Functions | |
ResonanceState | fromResonance (ParticleBitmap &invalid, const ParticleVector &p, const reco::Candidate *particle) const |
bool | getExcludeResonances () const |
const std::vector< unsigned int > & | getIgnoredParticles () const |
bool | getPartonicFinalState () const |
double | getPtMin () const |
bool | getTausAndJets () const |
bool | hasPartonChildren (ParticleBitmap &invalid, const ParticleVector &p, const reco::Candidate *particle) const |
InputGenJetsParticleSelector (const edm::ParameterSet &) | |
bool | isIgnored (int pdgId) const |
bool | isParton (int pdgId) const |
void | produce (edm::StreamID, edm::Event &evt, const edm::EventSetup &evtSetup) const override |
void | setExcludeResonances (bool flag=true) |
void | setPartonicFinalState (bool flag=true) |
void | setPtMin (double ptMin) |
void | setTausAsJets (bool flag=true) |
~InputGenJetsParticleSelector () override | |
Public Member Functions inherited from edm::global::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::global::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
~EDProducerBase () override | |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Static Public Member Functions | |
static bool | isHadron (int pdgId) |
static bool | isResonance (int pdgId) |
Static Public Member Functions inherited from edm::global::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
InputGenJetsParticleSelector () | |
bool | isExcludedFromResonance (int pdgId) const |
void | setExcludeFromResonancePids (const std::vector< unsigned int > &particleIDs) |
void | setIgnoredParticles (const std::vector< unsigned int > &particleIDs) |
int | testPartonChildren (ParticleBitmap &invalid, const ParticleVector &p, const reco::Candidate *particle) const |
Private Attributes | |
std::vector< unsigned int > | excludeFromResonancePids |
bool | excludeResonances |
std::vector< unsigned int > | ignoreParticleIDs |
edm::EDGetTokenT< reco::CandidateView > | input_genpartcoll_token_ |
edm::EDGetTokenT< reco::CandidateView > | input_prunedgenpartcoll_token_ |
edm::InputTag | inTag |
bool | isMiniAOD |
bool | partonicFinalState |
edm::InputTag | prunedInTag |
double | ptMin |
bool | tausAsJets |
Additional Inherited Members | |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Definition at line 28 of file InputGenJetsParticleSelector.h.
typedef std::vector<bool> InputGenJetsParticleSelector::ParticleBitmap |
Definition at line 31 of file InputGenJetsParticleSelector.h.
typedef std::vector<const reco::Candidate*> InputGenJetsParticleSelector::ParticleVector |
Definition at line 32 of file InputGenJetsParticleSelector.h.
InputGenJetsParticleSelector::InputGenJetsParticleSelector | ( | const edm::ParameterSet & | params | ) |
Definition at line 49 of file InputGenJetsParticleSelector.cc.
References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), input_genpartcoll_token_, input_prunedgenpartcoll_token_, inTag, isMiniAOD, edm::InputTag::label(), partonicFinalState, prunedInTag, setExcludeFromResonancePids(), and setIgnoredParticles().
|
override |
Definition at line 76 of file InputGenJetsParticleSelector.cc.
|
inlineprivate |
Definition at line 76 of file InputGenJetsParticleSelector.h.
InputGenJetsParticleSelector::ResonanceState InputGenJetsParticleSelector::fromResonance | ( | ParticleBitmap & | invalid, |
const ParticleVector & | p, | ||
const reco::Candidate * | particle | ||
) | const |
Definition at line 189 of file InputGenJetsParticleSelector.cc.
References mps_fire::i, training_settings::idx, isExcludedFromResonance(), isIgnored(), isParton(), isResonance(), kDirect, kIndirect, kNo, reco::Candidate::mother(), reco::Candidate::numberOfMothers(), partIdx(), reco::Candidate::pdgId(), mps_fire::result, and reco::Candidate::status().
Referenced by produce().
|
inline |
Definition at line 41 of file InputGenJetsParticleSelector.h.
References excludeResonances.
|
inline |
Definition at line 44 of file InputGenJetsParticleSelector.h.
References ignoreParticleIDs.
|
inline |
Definition at line 40 of file InputGenJetsParticleSelector.h.
References partonicFinalState.
|
inline |
|
inline |
Definition at line 42 of file InputGenJetsParticleSelector.h.
References tausAsJets.
bool InputGenJetsParticleSelector::hasPartonChildren | ( | ParticleBitmap & | invalid, |
const ParticleVector & | p, | ||
const reco::Candidate * | particle | ||
) | const |
Definition at line 231 of file InputGenJetsParticleSelector.cc.
References testPartonChildren().
Referenced by produce(), and setPtMin().
|
private |
Definition at line 122 of file InputGenJetsParticleSelector.cc.
References excludeFromResonancePids, createfilelist::int, and common_cff::pdgId.
Referenced by fromResonance().
|
static |
Definition at line 98 of file InputGenJetsParticleSelector.cc.
References common_cff::pdgId.
Referenced by setPtMin(), and testPartonChildren().
bool InputGenJetsParticleSelector::isIgnored | ( | int | pdgId | ) | const |
Definition at line 112 of file InputGenJetsParticleSelector.cc.
References ignoreParticleIDs, createfilelist::int, and common_cff::pdgId.
Referenced by fromResonance(), produce(), and setPtMin().
bool InputGenJetsParticleSelector::isParton | ( | int | pdgId | ) | const |
Definition at line 90 of file InputGenJetsParticleSelector.cc.
References common_cff::pdgId, and tausAsJets.
Referenced by fromResonance(), produce(), setPtMin(), and testPartonChildren().
|
static |
Definition at line 105 of file InputGenJetsParticleSelector.cc.
References common_cff::pdgId.
Referenced by fromResonance(), and setPtMin().
|
override |
Definition at line 239 of file InputGenJetsParticleSelector.cc.
References edm::View< T >::begin(), DEFINE_FWK_MODULE, edm::View< T >::end(), excludeResonances, fromResonance(), GenHFHadronMatcher_cfi::genParticles, edm::Event::getByToken(), hasPartonChildren(), mps_fire::i, training_settings::idx, input_genpartcoll_token_, input_prunedgenpartcoll_token_, align::invalid, invalidateTree(), isIgnored(), isMiniAOD, isParton(), eostools::move(), reco::Candidate::numberOfDaughters(), HadronAndPartonSelector_cfi::particles, partonicFinalState, reco::Candidate::pdgId(), prunedGenParticles_cfi::prunedGenParticles, reco::Candidate::pt(), ptMin, edm::View< T >::ptrAt(), edm::Event::put(), findQualityFiles::size, and reco::Candidate::status().
|
private |
Definition at line 84 of file InputGenJetsParticleSelector.cc.
References excludeFromResonancePids.
Referenced by InputGenJetsParticleSelector().
|
inline |
Definition at line 49 of file InputGenJetsParticleSelector.h.
References excludeResonances, and RemoveAddSevLevel::flag.
|
private |
Definition at line 78 of file InputGenJetsParticleSelector.cc.
References ignoreParticleIDs.
Referenced by InputGenJetsParticleSelector().
|
inline |
Definition at line 47 of file InputGenJetsParticleSelector.h.
References RemoveAddSevLevel::flag, and partonicFinalState.
|
inline |
Definition at line 52 of file InputGenJetsParticleSelector.h.
References hasPartonChildren(), align::invalid, isHadron(), isIgnored(), isParton(), isResonance(), AlCaHLTBitMon_ParallelJobs::p, common_cff::pdgId, and ptMin.
|
inline |
Definition at line 51 of file InputGenJetsParticleSelector.h.
References RemoveAddSevLevel::flag, and tausAsJets.
|
private |
Definition at line 165 of file InputGenJetsParticleSelector.cc.
References reco::Candidate::daughter(), mps_fire::i, training_settings::idx, isHadron(), isParton(), npart, reco::Candidate::numberOfDaughters(), partIdx(), reco::Candidate::pdgId(), and mps_fire::result.
Referenced by hasPartonChildren(), and invalidateTree().
|
private |
Definition at line 85 of file InputGenJetsParticleSelector.h.
Referenced by isExcludedFromResonance(), and setExcludeFromResonancePids().
|
private |
Definition at line 91 of file InputGenJetsParticleSelector.h.
Referenced by getExcludeResonances(), produce(), and setExcludeResonances().
|
private |
Definition at line 84 of file InputGenJetsParticleSelector.h.
Referenced by getIgnoredParticles(), isIgnored(), and setIgnoredParticles().
|
private |
Definition at line 96 of file InputGenJetsParticleSelector.h.
Referenced by InputGenJetsParticleSelector(), and produce().
|
private |
Definition at line 97 of file InputGenJetsParticleSelector.h.
Referenced by InputGenJetsParticleSelector(), and produce().
|
private |
Definition at line 78 of file InputGenJetsParticleSelector.h.
Referenced by InputGenJetsParticleSelector().
|
private |
Definition at line 93 of file InputGenJetsParticleSelector.h.
Referenced by InputGenJetsParticleSelector(), and produce().
|
private |
Definition at line 90 of file InputGenJetsParticleSelector.h.
Referenced by getPartonicFinalState(), InputGenJetsParticleSelector(), produce(), and setPartonicFinalState().
|
private |
Definition at line 79 of file InputGenJetsParticleSelector.h.
Referenced by InputGenJetsParticleSelector().
|
private |
Definition at line 94 of file InputGenJetsParticleSelector.h.
Referenced by getPtMin(), produce(), and setPtMin().
|
private |
Definition at line 92 of file InputGenJetsParticleSelector.h.
Referenced by getTausAndJets(), isParton(), and setTausAsJets().