#include <InputGenJetsParticleSelector.h>
Public Types | |
typedef std::vector< bool > | ParticleBitmap |
typedef std::vector< const reco::GenParticle * > | ParticleVector |
enum | ResonanceState { kNo = 0, kDirect, kIndirect } |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions | |
static bool | isHadron (int pdgId) |
static bool | isResonance (int pdgId) |
Static Public Member Functions inherited from edm::EDProducer | |
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::GenParticle *particle) const |
Private Attributes | |
std::vector< unsigned int > | excludeFromResonancePids |
bool | excludeResonances |
std::vector< unsigned int > | ignoreParticleIDs |
edm::EDGetTokenT < reco::GenParticleCollection > | input_genpartcoll_token_ |
edm::InputTag | inTag |
bool | partonicFinalState |
double | ptMin |
bool | tausAsJets |
Additional Inherited Members | |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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::GenParticle*> InputGenJetsParticleSelector::ParticleVector |
Definition at line 32 of file InputGenJetsParticleSelector.h.
InputGenJetsParticleSelector::InputGenJetsParticleSelector | ( | const edm::ParameterSet & | params | ) |
Definition at line 47 of file InputGenJetsParticleSelector.cc.
References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), input_genpartcoll_token_, inTag, setExcludeFromResonancePids(), and setIgnoredParticles().
InputGenJetsParticleSelector::~InputGenJetsParticleSelector | ( | ) |
Definition at line 65 of file InputGenJetsParticleSelector.cc.
|
inlineprivate |
Definition at line 76 of file InputGenJetsParticleSelector.h.
InputGenJetsParticleSelector::ResonanceState InputGenJetsParticleSelector::fromResonance | ( | ParticleBitmap & | invalid, |
const ParticleVector & | p, | ||
const reco::GenParticle * | particle | ||
) | const |
Definition at line 178 of file InputGenJetsParticleSelector.cc.
References i, customizeTrackingMonitorSeedNumber::idx, isExcludedFromResonance(), isIgnored(), isParton(), isResonance(), kDirect, kIndirect, kNo, reco::CompositeRefCandidateT< D >::mother(), reco::CompositeRefCandidateT< D >::numberOfMothers(), partIdx(), benchmark_cfg::pdgId, reco::LeafCandidate::pdgId(), query::result, and reco::LeafCandidate::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::GenParticle * | particle | ||
) | const |
Definition at line 220 of file InputGenJetsParticleSelector.cc.
References testPartonChildren().
Referenced by produce().
|
private |
Definition at line 111 of file InputGenJetsParticleSelector.cc.
References excludeFromResonancePids, and benchmark_cfg::pdgId.
Referenced by fromResonance().
|
static |
bool InputGenJetsParticleSelector::isIgnored | ( | int | pdgId | ) | const |
Definition at line 101 of file InputGenJetsParticleSelector.cc.
References ignoreParticleIDs, and benchmark_cfg::pdgId.
Referenced by fromResonance(), and produce().
bool InputGenJetsParticleSelector::isParton | ( | int | pdgId | ) | const |
Definition at line 79 of file InputGenJetsParticleSelector.cc.
References benchmark_cfg::pdgId, and tausAsJets.
Referenced by fromResonance(), and produce().
|
static |
Definition at line 94 of file InputGenJetsParticleSelector.cc.
References benchmark_cfg::pdgId.
Referenced by fromResonance().
|
virtual |
Implements edm::EDProducer.
Definition at line 228 of file InputGenJetsParticleSelector.cc.
References excludeResonances, fromResonance(), genParticleCandidates2GenParticles_cfi::genParticles, edm::Event::getByToken(), hasPartonChildren(), i, customizeTrackingMonitorSeedNumber::idx, input_genpartcoll_token_, align::invalid, invalidateTree(), isIgnored(), isParton(), getDQMSummary::iter, reco::CompositeRefCandidateT< D >::numberOfDaughters(), partonicFinalState, reco::LeafCandidate::pdgId(), reco::LeafCandidate::pt(), ptMin, edm::Event::put(), findQualityFiles::size, python.multivaluedict::sort(), and reco::LeafCandidate::status().
|
private |
Definition at line 73 of file InputGenJetsParticleSelector.cc.
References excludeFromResonancePids, and python.multivaluedict::sort().
Referenced by InputGenJetsParticleSelector().
|
inline |
Definition at line 49 of file InputGenJetsParticleSelector.h.
References excludeResonances, and archive::flag.
|
private |
Definition at line 67 of file InputGenJetsParticleSelector.cc.
References ignoreParticleIDs, and python.multivaluedict::sort().
Referenced by InputGenJetsParticleSelector().
|
inline |
Definition at line 47 of file InputGenJetsParticleSelector.h.
References archive::flag, and partonicFinalState.
|
inline |
|
inline |
Definition at line 51 of file InputGenJetsParticleSelector.h.
References archive::flag, and tausAsJets.
|
private |
Definition at line 154 of file InputGenJetsParticleSelector.cc.
References reco::CompositeRefCandidateT< D >::daughter(), i, customizeTrackingMonitorSeedNumber::idx, CandMCTagUtils::isParton(), npart, reco::CompositeRefCandidateT< D >::numberOfDaughters(), partIdx(), reco::Candidate::pdgId(), and query::result.
Referenced by hasPartonChildren().
|
private |
Definition at line 84 of file InputGenJetsParticleSelector.h.
Referenced by isExcludedFromResonance(), and setExcludeFromResonancePids().
|
private |
Definition at line 90 of file InputGenJetsParticleSelector.h.
Referenced by getExcludeResonances(), produce(), and setExcludeResonances().
|
private |
Definition at line 83 of file InputGenJetsParticleSelector.h.
Referenced by getIgnoredParticles(), isIgnored(), and setIgnoredParticles().
|
private |
Definition at line 94 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 89 of file InputGenJetsParticleSelector.h.
Referenced by getPartonicFinalState(), produce(), and setPartonicFinalState().
|
private |
Definition at line 92 of file InputGenJetsParticleSelector.h.
Referenced by getPtMin(), produce(), and setPtMin().
|
private |
Definition at line 91 of file InputGenJetsParticleSelector.h.
Referenced by getTausAndJets(), isParton(), and setTausAsJets().