#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 |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Member Functions | |
ResonanceState | fromResonance (ParticleBitmap &invalid, const ParticleVector &p, const reco::GenParticle *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::GenParticle *particle) const |
InputGenJetsParticleSelector (const edm::ParameterSet &) | |
bool | isIgnored (int pdgId) const |
bool | isParton (int pdgId) const |
virtual void | produce (edm::Event &evt, const edm::EventSetup &evtSetup) |
void | setExcludeResonances (bool flag=true) |
void | setPartonicFinalState (bool flag=true) |
void | setPtMin (double ptMin) |
void | setTausAsJets (bool flag=true) |
~InputGenJetsParticleSelector () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
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::InputTag | inTag |
bool | partonicFinalState |
double | ptMin |
bool | tausAsJets |
Additional Inherited Members | |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
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 42 of file InputGenJetsParticleSelector.cc.
References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), setExcludeFromResonancePids(), and setIgnoredParticles().
InputGenJetsParticleSelector::~InputGenJetsParticleSelector | ( | ) |
Definition at line 58 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 172 of file InputGenJetsParticleSelector.cc.
References i, 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 214 of file InputGenJetsParticleSelector.cc.
References testPartonChildren().
Referenced by produce().
|
private |
Definition at line 104 of file InputGenJetsParticleSelector.cc.
References excludeFromResonancePids, benchmark_cfg::pdgId, and pos.
Referenced by fromResonance().
|
static |
bool InputGenJetsParticleSelector::isIgnored | ( | int | pdgId | ) | const |
Definition at line 94 of file InputGenJetsParticleSelector.cc.
References ignoreParticleIDs, benchmark_cfg::pdgId, and pos.
Referenced by fromResonance(), and produce().
bool InputGenJetsParticleSelector::isParton | ( | int | pdgId | ) | const |
Definition at line 72 of file InputGenJetsParticleSelector.cc.
References benchmark_cfg::pdgId, and tausAsJets.
Referenced by fromResonance(), and produce().
|
static |
Definition at line 87 of file InputGenJetsParticleSelector.cc.
References benchmark_cfg::pdgId.
Referenced by fromResonance().
|
virtual |
Implements edm::EDProducer.
Definition at line 222 of file InputGenJetsParticleSelector.cc.
References prof2calltree::count, excludeResonances, fromResonance(), genParticleCandidates2GenParticles_cfi::genParticles, edm::Event::getByLabel(), hasPartonChildren(), i, inTag, align::invalid, invalidateTree(), isIgnored(), isParton(), 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 66 of file InputGenJetsParticleSelector.cc.
References excludeFromResonancePids, and python.multivaluedict::sort().
Referenced by InputGenJetsParticleSelector().
|
inline |
Definition at line 49 of file InputGenJetsParticleSelector.h.
References excludeResonances.
|
private |
Definition at line 60 of file InputGenJetsParticleSelector.cc.
References ignoreParticleIDs, and python.multivaluedict::sort().
Referenced by InputGenJetsParticleSelector().
|
inline |
Definition at line 47 of file InputGenJetsParticleSelector.h.
References partonicFinalState.
|
inline |
|
inline |
Definition at line 51 of file InputGenJetsParticleSelector.h.
References tausAsJets.
|
private |
Definition at line 148 of file InputGenJetsParticleSelector.cc.
References reco::CompositeRefCandidateT< D >::daughter(), i, 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 78 of file InputGenJetsParticleSelector.h.
Referenced by produce().
|
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().