#include <MCTruthHelper.h>
Public Member Functions | |
int | absPdgId (const reco::GenParticle &p) |
int | absPdgId (const HepMC::GenParticle &p) |
const reco::GenParticle * | daughter (const reco::GenParticle &p, unsigned int idau) |
const HepMC::GenParticle * | daughter (const HepMC::GenParticle &p, unsigned int idau) |
void | fillGenStatusFlags (const P &p, reco::GenStatusFlags &statusFlags) |
const P * | findDecayedMother (const P &p) |
const P * | findDecayedMother (const P &p, int abspdgid) |
const P * | firstCopy (const P &p) |
bool | fromHardProcess (const P &p) |
bool | fromHardProcessBeforeFSR (const P &p) |
bool | fromHardProcessDecayed (const P &p) |
bool | fromHardProcessFinalState (const P &p) |
const P * | hardProcessMotherCopy (const P &p) |
bool | isDecayedLeptonHadron (const P &p) |
bool | isDirectHadronDecayProduct (const P &p) |
bool | isDirectHardProcessTauDecayProduct (const P &p) |
bool | isDirectPromptTauDecayProduct (const P &p) |
bool | isDirectTauDecayProduct (const P &p) |
bool | isFirstCopy (const P &p) |
bool | isHadron (const P &p) |
bool | isHardProcess (const P &p) |
bool | isHardProcessTauDecayProduct (const P &p) |
bool | isLastCopy (const P &p) |
bool | isLastCopyBeforeFSR (const P &p) |
bool | isMuonDecayProduct (const P &p) |
bool | isPrompt (const P &p) |
bool | isPromptDecayed (const P &p) |
bool | isPromptFinalState (const P &p) |
bool | isPromptMuonDecayProduct (const P &p) |
bool | isPromptTauDecayProduct (const P &p) |
bool | isTauDecayProduct (const P &p) |
const P * | lastCopy (const P &p) |
const P * | lastCopyBeforeFSR (const P &p) |
const P * | lastDaughterCopyBeforeFSR (const P &p) |
const reco::GenParticle * | mother (const reco::GenParticle &p, unsigned int imoth=0) |
const HepMC::GenParticle * | mother (const HepMC::GenParticle &p, unsigned int imoth=0) |
const P * | nextCopy (const P &p) |
unsigned int | numberOfDaughters (const reco::GenParticle &p) |
unsigned int | numberOfDaughters (const HepMC::GenParticle &p) |
unsigned int | numberOfMothers (const reco::GenParticle &p) |
unsigned int | numberOfMothers (const HepMC::GenParticle &p) |
int | pdgId (const reco::GenParticle &p) |
int | pdgId (const HepMC::GenParticle &p) |
const P * | previousCopy (const P &p) |
const P * | uniqueMother (const P &p) |
Protected Attributes | |
std::unordered_set< const P * > | dupCheck_ |
Definition at line 14 of file MCTruthHelper.h.
int MCTruthHelper< P >::absPdgId | ( | const reco::GenParticle & | p | ) |
Definition at line 576 of file MCTruthHelper.h.
References funct::abs(), and reco::LeafCandidate::pdgId().
int MCTruthHelper< P >::absPdgId | ( | const HepMC::GenParticle & | p | ) |
const reco::GenParticle * MCTruthHelper< P >::daughter | ( | const reco::GenParticle & | p, |
unsigned int | idau | ||
) |
Definition at line 624 of file MCTruthHelper.h.
References reco::CompositeRefCandidateT< D >::daughter().
const HepMC::GenParticle * MCTruthHelper< P >::daughter | ( | const HepMC::GenParticle & | p, |
unsigned int | idau | ||
) |
Definition at line 630 of file MCTruthHelper.h.
void MCTruthHelper< P >::fillGenStatusFlags | ( | const P & | p, |
reco::GenStatusFlags & | statusFlags | ||
) |
Definition at line 636 of file MCTruthHelper.h.
References reco::GenStatusFlags::setFromHardProcess(), reco::GenStatusFlags::setFromHardProcessBeforeFSR(), reco::GenStatusFlags::setIsDecayedLeptonHadron(), reco::GenStatusFlags::setIsDirectHadronDecayProduct(), reco::GenStatusFlags::setIsDirectHardProcessTauDecayProduct(), reco::GenStatusFlags::setIsDirectPromptTauDecayProduct(), reco::GenStatusFlags::setIsDirectTauDecayProduct(), reco::GenStatusFlags::setIsFirstCopy(), reco::GenStatusFlags::setIsHardProcess(), reco::GenStatusFlags::setIsHardProcessTauDecayProduct(), reco::GenStatusFlags::setIsLastCopy(), reco::GenStatusFlags::setIsLastCopyBeforeFSR(), reco::GenStatusFlags::setIsPrompt(), reco::GenStatusFlags::setIsPromptTauDecayProduct(), and reco::GenStatusFlags::setIsTauDecayProduct().
Referenced by GenParticleProducer::convertParticle().
const P * MCTruthHelper< P >::findDecayedMother | ( | const P & | p | ) |
Definition at line 538 of file MCTruthHelper.h.
References P.
const P * MCTruthHelper< P >::findDecayedMother | ( | const P & | p, |
int | abspdgid | ||
) |
Definition at line 551 of file MCTruthHelper.h.
References P.
const P * MCTruthHelper< P >::firstCopy | ( | const P & | p | ) |
bool MCTruthHelper< P >::fromHardProcess | ( | const P & | p | ) |
Definition at line 306 of file MCTruthHelper.h.
bool MCTruthHelper< P >::fromHardProcessBeforeFSR | ( | const P & | p | ) |
Definition at line 338 of file MCTruthHelper.h.
References P, and AlCaHLTBitMon_ParallelJobs::p.
bool MCTruthHelper< P >::fromHardProcessDecayed | ( | const P & | p | ) |
Definition at line 318 of file MCTruthHelper.h.
bool MCTruthHelper< P >::fromHardProcessFinalState | ( | const P & | p | ) |
Definition at line 312 of file MCTruthHelper.h.
const P * MCTruthHelper< P >::hardProcessMotherCopy | ( | const P & | p | ) |
bool MCTruthHelper< P >::isDecayedLeptonHadron | ( | const P & | p | ) |
Definition at line 208 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isDirectHadronDecayProduct | ( | const P & | p | ) |
Definition at line 261 of file MCTruthHelper.h.
References P.
bool MCTruthHelper< P >::isDirectHardProcessTauDecayProduct | ( | const P & | p | ) |
Definition at line 331 of file MCTruthHelper.h.
References P, and metsig::tau.
bool MCTruthHelper< P >::isDirectPromptTauDecayProduct | ( | const P & | p | ) |
Definition at line 240 of file MCTruthHelper.h.
References P, and metsig::tau.
bool MCTruthHelper< P >::isDirectTauDecayProduct | ( | const P & | p | ) |
Definition at line 232 of file MCTruthHelper.h.
References P, and metsig::tau.
bool MCTruthHelper< P >::isFirstCopy | ( | const P & | p | ) |
Definition at line 366 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isHadron | ( | const P & | p | ) |
bool MCTruthHelper< P >::isHardProcess | ( | const P & | p | ) |
Definition at line 275 of file MCTruthHelper.h.
References P.
bool MCTruthHelper< P >::isHardProcessTauDecayProduct | ( | const P & | p | ) |
Definition at line 324 of file MCTruthHelper.h.
References P, and metsig::tau.
bool MCTruthHelper< P >::isLastCopy | ( | const P & | p | ) |
Definition at line 372 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isLastCopyBeforeFSR | ( | const P & | p | ) |
Definition at line 378 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isMuonDecayProduct | ( | const P & | p | ) |
Definition at line 248 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isPrompt | ( | const P & | p | ) |
Definition at line 194 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isPromptDecayed | ( | const P & | p | ) |
Definition at line 213 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isPromptFinalState | ( | const P & | p | ) |
Definition at line 203 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isPromptMuonDecayProduct | ( | const P & | p | ) |
Definition at line 254 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isPromptTauDecayProduct | ( | const P & | p | ) |
Definition at line 225 of file MCTruthHelper.h.
References P, and metsig::tau.
bool MCTruthHelper< P >::isTauDecayProduct | ( | const P & | p | ) |
Definition at line 219 of file MCTruthHelper.h.
const P * MCTruthHelper< P >::lastCopy | ( | const P & | p | ) |
const P * MCTruthHelper< P >::lastCopyBeforeFSR | ( | const P & | p | ) |
Definition at line 423 of file MCTruthHelper.h.
References P, and benchmark_cfg::pdgId.
const P * MCTruthHelper< P >::lastDaughterCopyBeforeFSR | ( | const P & | p | ) |
Definition at line 457 of file MCTruthHelper.h.
References P, AlCaHLTBitMon_ParallelJobs::p, and benchmark_cfg::pdgId.
const reco::GenParticle * MCTruthHelper< P >::mother | ( | const reco::GenParticle & | p, |
unsigned int | imoth = 0 |
||
) |
Definition at line 600 of file MCTruthHelper.h.
References reco::CompositeRefCandidateT< D >::mother().
const HepMC::GenParticle * MCTruthHelper< P >::mother | ( | const HepMC::GenParticle & | p, |
unsigned int | imoth = 0 |
||
) |
Definition at line 606 of file MCTruthHelper.h.
const P * MCTruthHelper< P >::nextCopy | ( | const P & | p | ) |
Definition at line 523 of file MCTruthHelper.h.
References P, and benchmark_cfg::pdgId.
unsigned int MCTruthHelper< P >::numberOfDaughters | ( | const reco::GenParticle & | p | ) |
Definition at line 612 of file MCTruthHelper.h.
References reco::CompositeRefCandidateT< D >::numberOfDaughters().
unsigned int MCTruthHelper< P >::numberOfDaughters | ( | const HepMC::GenParticle & | p | ) |
Definition at line 618 of file MCTruthHelper.h.
unsigned int MCTruthHelper< P >::numberOfMothers | ( | const reco::GenParticle & | p | ) |
Definition at line 588 of file MCTruthHelper.h.
References reco::CompositeRefCandidateT< D >::numberOfMothers().
unsigned int MCTruthHelper< P >::numberOfMothers | ( | const HepMC::GenParticle & | p | ) |
Definition at line 594 of file MCTruthHelper.h.
int MCTruthHelper< P >::pdgId | ( | const reco::GenParticle & | p | ) |
Definition at line 564 of file MCTruthHelper.h.
References reco::LeafCandidate::pdgId().
Referenced by Particle.Particle::__str__().
int MCTruthHelper< P >::pdgId | ( | const HepMC::GenParticle & | p | ) |
const P * MCTruthHelper< P >::previousCopy | ( | const P & | p | ) |
Definition at line 508 of file MCTruthHelper.h.
References P, and benchmark_cfg::pdgId.
const P * MCTruthHelper< P >::uniqueMother | ( | const P & | p | ) |
Definition at line 384 of file MCTruthHelper.h.
References P, AlCaHLTBitMon_ParallelJobs::p, and benchmark_cfg::pdgId.
|
protected |
Definition at line 183 of file MCTruthHelper.h.