#include <JetInput.h>
Public Types | |
typedef std::vector< bool > | ParticleBitmap |
typedef std::vector< const HepMC::GenParticle * > | ParticleVector |
enum | ResonanceState { kNo = 0, kDirect, kIndirect } |
typedef std::vector< const HepMC::GenVertex * > | VertexVector |
Public Member Functions | |
bool | fromHardProcess (ParticleBitmap &invalid, const ParticleVector &p, const HepMC::GenParticle *particle, const VertexVector &hardProcess) const |
ResonanceState | fromResonance (ParticleBitmap &invalid, const ParticleVector &p, const HepMC::GenParticle *particle, const HepMC::GenVertex *signalVertex, const VertexVector &hardProcess) const |
bool | fromSignalVertex (ParticleBitmap &invalid, const ParticleVector &p, const HepMC::GenParticle *particle, const HepMC::GenVertex *signalVertex) const |
const std::vector< unsigned int > & | getExcludedFromResonances () const |
const std::vector< unsigned int > & | getExcludedResonances () const |
bool | getExcludeResonances () const |
bool | getHardProcessOnly () 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 HepMC::GenParticle *particle) const |
bool | isExcludedFromResonances (int pdgId) const |
bool | isHardProcess (const HepMC::GenVertex *vertex, const VertexVector &hardProcess) const |
bool | isIgnored (int pdgId) const |
bool | isParton (int pdgId) const |
bool | isResonance (int pdgId) const |
JetInput () | |
JetInput (const edm::ParameterSet ¶ms) | |
ParticleVector | operator() (const HepMC::GenEvent *event) const |
void | setExcludedFromResonances (const std::vector< unsigned int > &particleIds) |
void | setExcludedResonances (const std::vector< unsigned int > &particleIds) |
void | setExcludeResonances (bool flag=true) |
void | setHardProcessOnly (bool flag=true) |
void | setIgnoredParticles (const std::vector< unsigned int > &particleIDs) |
void | setPartonicFinalState (bool flag=true) |
void | setPtMin (double ptMin) |
void | setTausAsJets (bool flag=true) |
~JetInput () | |
Static Public Member Functions | |
static bool | isHadron (int pdgId) |
Private Member Functions | |
int | testPartonChildren (ParticleBitmap &invalid, const ParticleVector &p, const HepMC::GenVertex *v) const |
Private Attributes | |
std::vector< unsigned int > | excludedFromResonances |
std::vector< unsigned int > | excludedResonances |
bool | excludeResonances |
std::vector< unsigned int > | ignoreParticleIDs |
bool | onlyHardProcess |
bool | partonicFinalState |
double | ptMin |
bool | tausAsJets |
Definition at line 14 of file JetInput.h.
typedef std::vector<bool> lhef::JetInput::ParticleBitmap |
Definition at line 16 of file JetInput.h.
typedef std::vector<const HepMC::GenParticle*> lhef::JetInput::ParticleVector |
Definition at line 17 of file JetInput.h.
typedef std::vector<const HepMC::GenVertex*> lhef::JetInput::VertexVector |
Definition at line 18 of file JetInput.h.
Enumerator | |
---|---|
kNo | |
kDirect | |
kIndirect |
Definition at line 57 of file JetInput.h.
lhef::JetInput::JetInput | ( | ) |
Definition at line 17 of file JetInput.cc.
lhef::JetInput::JetInput | ( | const edm::ParameterSet & | params | ) |
Definition at line 26 of file JetInput.cc.
References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), setExcludedFromResonances(), setExcludedResonances(), and setIgnoredParticles().
lhef::JetInput::~JetInput | ( | ) |
Definition at line 47 of file JetInput.cc.
bool lhef::JetInput::fromHardProcess | ( | ParticleBitmap & | invalid, |
const ParticleVector & | p, | ||
const HepMC::GenParticle * | particle, | ||
const VertexVector & | hardProcess | ||
) | const |
Definition at line 201 of file JetInput.cc.
References customizeTrackingMonitorSeedNumber::idx, isHardProcess(), lhef::partIdx(), and findQualityFiles::v.
Referenced by operator()().
JetInput::ResonanceState lhef::JetInput::fromResonance | ( | ParticleBitmap & | invalid, |
const ParticleVector & | p, | ||
const HepMC::GenParticle * | particle, | ||
const HepMC::GenVertex * | signalVertex, | ||
const VertexVector & | hardProcess | ||
) | const |
Definition at line 252 of file JetInput.cc.
References excludedFromResonances, excludedResonances, customizeTrackingMonitorSeedNumber::idx, isExcludedFromResonances(), isHardProcess(), isIgnored(), isParton(), isResonance(), kDirect, kIndirect, kNo, lhef::partIdx(), query::result, and findQualityFiles::v.
Referenced by operator()().
bool lhef::JetInput::fromSignalVertex | ( | ParticleBitmap & | invalid, |
const ParticleVector & | p, | ||
const HepMC::GenParticle * | particle, | ||
const HepMC::GenVertex * | signalVertex | ||
) | const |
Definition at line 226 of file JetInput.cc.
References customizeTrackingMonitorSeedNumber::idx, lhef::partIdx(), and findQualityFiles::v.
|
inline |
Definition at line 35 of file JetInput.h.
References excludedFromResonances.
|
inline |
Definition at line 33 of file JetInput.h.
References excludedResonances.
|
inline |
|
inline |
|
inline |
Definition at line 31 of file JetInput.h.
References ignoreParticleIDs.
|
inline |
|
inline |
|
inline |
bool lhef::JetInput::hasPartonChildren | ( | ParticleBitmap & | invalid, |
const ParticleVector & | p, | ||
const HepMC::GenParticle * | particle | ||
) | const |
Definition at line 194 of file JetInput.cc.
References testPartonChildren().
Referenced by operator()().
bool lhef::JetInput::isExcludedFromResonances | ( | int | pdgId | ) | const |
Definition at line 113 of file JetInput.cc.
References excludedFromResonances, and lhef::isContained().
Referenced by fromResonance().
|
static |
Definition at line 82 of file JetInput.cc.
References benchmark_cfg::pdgId.
Referenced by testPartonChildren().
bool lhef::JetInput::isHardProcess | ( | const HepMC::GenVertex * | vertex, |
const VertexVector & | hardProcess | ||
) | const |
Definition at line 121 of file JetInput.cc.
Referenced by fromHardProcess(), fromResonance(), and operator()().
bool lhef::JetInput::isIgnored | ( | int | pdgId | ) | const |
Definition at line 108 of file JetInput.cc.
References ignoreParticleIDs, and lhef::isContained().
Referenced by fromResonance(), and operator()().
bool lhef::JetInput::isParton | ( | int | pdgId | ) | const |
Definition at line 73 of file JetInput.cc.
References benchmark_cfg::pdgId, and tausAsJets.
Referenced by fromResonance(), operator()(), and testPartonChildren().
bool lhef::JetInput::isResonance | ( | int | pdgId | ) | const |
Definition at line 97 of file JetInput.cc.
References excludedResonances, lhef::isContained(), and benchmark_cfg::pdgId.
Referenced by fromResonance().
JetInput::ParticleVector lhef::JetInput::operator() | ( | const HepMC::GenEvent * | event | ) | const |
Definition at line 300 of file JetInput.cc.
References excludeResonances, fromHardProcess(), fromResonance(), configurableAnalysis::GenParticle, hasPartonChildren(), i, align::invalid, lhef::invalidateTree(), isHardProcess(), isIgnored(), isParton(), GetRecoTauVFromDQM_MC_cff::next, onlyHardProcess, partonicFinalState, ptMin, query::result, findQualityFiles::size, python.multivaluedict::sort(), and findQualityFiles::v.
void lhef::JetInput::setExcludedFromResonances | ( | const std::vector< unsigned int > & | particleIds | ) |
Definition at line 66 of file JetInput.cc.
References excludedFromResonances, and python.multivaluedict::sort().
Referenced by JetInput().
void lhef::JetInput::setExcludedResonances | ( | const std::vector< unsigned int > & | particleIds | ) |
Definition at line 58 of file JetInput.cc.
References excludedResonances, setExcludeResonances(), and python.multivaluedict::sort().
Referenced by JetInput().
|
inline |
Definition at line 43 of file JetInput.h.
References excludeResonances.
Referenced by setExcludedResonances().
|
inline |
void lhef::JetInput::setIgnoredParticles | ( | const std::vector< unsigned int > & | particleIDs | ) |
Definition at line 51 of file JetInput.cc.
References ignoreParticleIDs, and python.multivaluedict::sort().
Referenced by JetInput().
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 165 of file JetInput.cc.
References customizeTrackingMonitorSeedNumber::idx, isHadron(), isParton(), lhef::partIdx(), and query::result.
Referenced by hasPartonChildren().
|
private |
Definition at line 87 of file JetInput.h.
Referenced by fromResonance(), getExcludedFromResonances(), isExcludedFromResonances(), and setExcludedFromResonances().
|
private |
Definition at line 86 of file JetInput.h.
Referenced by fromResonance(), getExcludedResonances(), isResonance(), and setExcludedResonances().
|
private |
Definition at line 90 of file JetInput.h.
Referenced by getExcludeResonances(), operator()(), and setExcludeResonances().
|
private |
Definition at line 85 of file JetInput.h.
Referenced by getIgnoredParticles(), isIgnored(), and setIgnoredParticles().
|
private |
Definition at line 89 of file JetInput.h.
Referenced by getHardProcessOnly(), operator()(), and setHardProcessOnly().
|
private |
Definition at line 88 of file JetInput.h.
Referenced by getPartonicFinalState(), operator()(), and setPartonicFinalState().
|
private |
Definition at line 92 of file JetInput.h.
Referenced by getPtMin(), operator()(), and setPtMin().
|
private |
Definition at line 91 of file JetInput.h.
Referenced by getTausAndJets(), isParton(), and setTausAsJets().