![]() |
![]() |
#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().
Referenced by MCTruthHelper< P >::findDecayedMother(), and MCTruthHelper< P >::isDecayedLeptonHadron().
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().
Referenced by MCTruthHelper< P >::lastCopyBeforeFSR(), MCTruthHelper< P >::lastDaughterCopyBeforeFSR(), and MCTruthHelper< P >::nextCopy().
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 MCTruthHelper< P >::fromHardProcess(), MCTruthHelper< P >::fromHardProcessBeforeFSR(), MCTruthHelper< P >::isDecayedLeptonHadron(), MCTruthHelper< P >::isDirectHadronDecayProduct(), MCTruthHelper< P >::isDirectHardProcessTauDecayProduct(), MCTruthHelper< P >::isDirectPromptTauDecayProduct(), MCTruthHelper< P >::isDirectTauDecayProduct(), MCTruthHelper< P >::isFirstCopy(), MCTruthHelper< P >::isHardProcess(), MCTruthHelper< P >::isHardProcessTauDecayProduct(), MCTruthHelper< P >::isLastCopy(), MCTruthHelper< P >::isLastCopyBeforeFSR(), MCTruthHelper< P >::isPrompt(), MCTruthHelper< P >::isPromptTauDecayProduct(), MCTruthHelper< P >::isTauDecayProduct(), 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 MCTruthHelper< P >::dupCheck_, MCTruthHelper< P >::isDecayedLeptonHadron(), and MCTruthHelper< P >::mother().
Referenced by MCTruthHelper< P >::isDirectHardProcessTauDecayProduct(), MCTruthHelper< P >::isDirectPromptTauDecayProduct(), MCTruthHelper< P >::isDirectTauDecayProduct(), MCTruthHelper< P >::isHardProcessTauDecayProduct(), MCTruthHelper< P >::isMuonDecayProduct(), MCTruthHelper< P >::isPrompt(), MCTruthHelper< P >::isPromptMuonDecayProduct(), MCTruthHelper< P >::isPromptTauDecayProduct(), and MCTruthHelper< P >::isTauDecayProduct().
const P * MCTruthHelper< P >::findDecayedMother | ( | const P & | p, |
int | abspdgid | ||
) |
Definition at line 551 of file MCTruthHelper.h.
References MCTruthHelper< P >::absPdgId(), MCTruthHelper< P >::dupCheck_, MCTruthHelper< P >::isDecayedLeptonHadron(), and MCTruthHelper< P >::mother().
const P * MCTruthHelper< P >::firstCopy | ( | const P & | p | ) |
Definition at line 397 of file MCTruthHelper.h.
References MCTruthHelper< P >::dupCheck_, AlCaHLTBitMon_ParallelJobs::p, and MCTruthHelper< P >::previousCopy().
Referenced by MCTruthHelper< P >::isFirstCopy(), MCTruthHelper< P >::isHardProcess(), and MCTruthHelper< P >::lastCopyBeforeFSR().
bool MCTruthHelper< P >::fromHardProcess | ( | const P & | p | ) |
Definition at line 306 of file MCTruthHelper.h.
References MCTruthHelper< P >::hardProcessMotherCopy().
Referenced by MCTruthHelper< P >::fillGenStatusFlags(), MCTruthHelper< P >::fromHardProcessDecayed(), MCTruthHelper< P >::fromHardProcessFinalState(), and MCTruthHelper< P >::isDirectHardProcessTauDecayProduct().
bool MCTruthHelper< P >::fromHardProcessBeforeFSR | ( | const P & | p | ) |
Definition at line 338 of file MCTruthHelper.h.
References MCTruthHelper< P >::hardProcessMotherCopy(), MCTruthHelper< P >::isLastCopy(), MCTruthHelper< P >::lastDaughterCopyBeforeFSR(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by MCTruthHelper< P >::fillGenStatusFlags().
bool MCTruthHelper< P >::fromHardProcessDecayed | ( | const P & | p | ) |
Definition at line 318 of file MCTruthHelper.h.
References MCTruthHelper< P >::fromHardProcess(), and MCTruthHelper< P >::isDecayedLeptonHadron().
Referenced by MCTruthHelper< P >::isHardProcessTauDecayProduct().
bool MCTruthHelper< P >::fromHardProcessFinalState | ( | const P & | p | ) |
const P * MCTruthHelper< P >::hardProcessMotherCopy | ( | const P & | p | ) |
Definition at line 490 of file MCTruthHelper.h.
References MCTruthHelper< P >::dupCheck_, MCTruthHelper< P >::isHardProcess(), AlCaHLTBitMon_ParallelJobs::p, and MCTruthHelper< P >::previousCopy().
Referenced by MCTruthHelper< P >::fromHardProcess(), and MCTruthHelper< P >::fromHardProcessBeforeFSR().
bool MCTruthHelper< P >::isDecayedLeptonHadron | ( | const P & | p | ) |
Definition at line 208 of file MCTruthHelper.h.
References MCTruthHelper< P >::absPdgId(), MCTruthHelper< P >::isHadron(), and MCTruthHelper< P >::isLastCopy().
Referenced by MCTruthHelper< P >::fillGenStatusFlags(), MCTruthHelper< P >::findDecayedMother(), MCTruthHelper< P >::fromHardProcessDecayed(), MCTruthHelper< P >::isDirectHadronDecayProduct(), and MCTruthHelper< P >::isPromptDecayed().
bool MCTruthHelper< P >::isDirectHadronDecayProduct | ( | const P & | p | ) |
Definition at line 261 of file MCTruthHelper.h.
References MCTruthHelper< P >::isDecayedLeptonHadron(), MCTruthHelper< P >::isHadron(), and MCTruthHelper< P >::uniqueMother().
Referenced by MCTruthHelper< P >::fillGenStatusFlags().
bool MCTruthHelper< P >::isDirectHardProcessTauDecayProduct | ( | const P & | p | ) |
Definition at line 331 of file MCTruthHelper.h.
References symbols::dm, MCTruthHelper< P >::findDecayedMother(), MCTruthHelper< P >::fromHardProcess(), and metsig::tau.
Referenced by MCTruthHelper< P >::fillGenStatusFlags().
bool MCTruthHelper< P >::isDirectPromptTauDecayProduct | ( | const P & | p | ) |
Definition at line 240 of file MCTruthHelper.h.
References symbols::dm, MCTruthHelper< P >::findDecayedMother(), MCTruthHelper< P >::isPrompt(), and metsig::tau.
Referenced by MCTruthHelper< P >::fillGenStatusFlags().
bool MCTruthHelper< P >::isDirectTauDecayProduct | ( | const P & | p | ) |
Definition at line 232 of file MCTruthHelper.h.
References symbols::dm, MCTruthHelper< P >::findDecayedMother(), and metsig::tau.
Referenced by MCTruthHelper< P >::fillGenStatusFlags().
bool MCTruthHelper< P >::isFirstCopy | ( | const P & | p | ) |
Definition at line 366 of file MCTruthHelper.h.
References MCTruthHelper< P >::firstCopy().
Referenced by MCTruthHelper< P >::fillGenStatusFlags().
bool MCTruthHelper< P >::isHadron | ( | const P & | p | ) |
Definition at line 268 of file MCTruthHelper.h.
References source_particleGun_cfi::ParticleID, and MCTruthHelper< P >::pdgId().
Referenced by MCTruthHelper< P >::isDecayedLeptonHadron(), and MCTruthHelper< P >::isDirectHadronDecayProduct().
bool MCTruthHelper< P >::isHardProcess | ( | const P & | p | ) |
Definition at line 275 of file MCTruthHelper.h.
References MCTruthHelper< P >::firstCopy(), MCTruthHelper< P >::mother(), and MCTruthHelper< P >::nextCopy().
Referenced by MCTruthHelper< P >::fillGenStatusFlags(), and MCTruthHelper< P >::hardProcessMotherCopy().
bool MCTruthHelper< P >::isHardProcessTauDecayProduct | ( | const P & | p | ) |
Definition at line 324 of file MCTruthHelper.h.
References MCTruthHelper< P >::findDecayedMother(), MCTruthHelper< P >::fromHardProcessDecayed(), and metsig::tau.
Referenced by MCTruthHelper< P >::fillGenStatusFlags().
bool MCTruthHelper< P >::isLastCopy | ( | const P & | p | ) |
Definition at line 372 of file MCTruthHelper.h.
References MCTruthHelper< P >::lastCopy().
Referenced by MCTruthHelper< P >::fillGenStatusFlags(), MCTruthHelper< P >::fromHardProcessBeforeFSR(), and MCTruthHelper< P >::isDecayedLeptonHadron().
bool MCTruthHelper< P >::isLastCopyBeforeFSR | ( | const P & | p | ) |
Definition at line 378 of file MCTruthHelper.h.
References MCTruthHelper< P >::lastCopyBeforeFSR().
Referenced by MCTruthHelper< P >::fillGenStatusFlags().
bool MCTruthHelper< P >::isMuonDecayProduct | ( | const P & | p | ) |
Definition at line 248 of file MCTruthHelper.h.
References MCTruthHelper< P >::findDecayedMother().
bool MCTruthHelper< P >::isPrompt | ( | const P & | p | ) |
Definition at line 194 of file MCTruthHelper.h.
References MCTruthHelper< P >::findDecayedMother().
Referenced by MCTruthHelper< P >::fillGenStatusFlags(), MCTruthHelper< P >::isDirectPromptTauDecayProduct(), MCTruthHelper< P >::isPromptDecayed(), MCTruthHelper< P >::isPromptFinalState(), MCTruthHelper< P >::isPromptMuonDecayProduct(), and MCTruthHelper< P >::isPromptTauDecayProduct().
bool MCTruthHelper< P >::isPromptDecayed | ( | const P & | p | ) |
Definition at line 213 of file MCTruthHelper.h.
References MCTruthHelper< P >::isDecayedLeptonHadron(), and MCTruthHelper< P >::isPrompt().
bool MCTruthHelper< P >::isPromptFinalState | ( | const P & | p | ) |
bool MCTruthHelper< P >::isPromptMuonDecayProduct | ( | const P & | p | ) |
Definition at line 254 of file MCTruthHelper.h.
References MCTruthHelper< P >::findDecayedMother(), MCTruthHelper< P >::isPrompt(), and RPCpg::mu.
bool MCTruthHelper< P >::isPromptTauDecayProduct | ( | const P & | p | ) |
Definition at line 225 of file MCTruthHelper.h.
References MCTruthHelper< P >::findDecayedMother(), MCTruthHelper< P >::isPrompt(), and metsig::tau.
Referenced by MCTruthHelper< P >::fillGenStatusFlags().
bool MCTruthHelper< P >::isTauDecayProduct | ( | const P & | p | ) |
Definition at line 219 of file MCTruthHelper.h.
References MCTruthHelper< P >::findDecayedMother().
Referenced by MCTruthHelper< P >::fillGenStatusFlags().
const P * MCTruthHelper< P >::lastCopy | ( | const P & | p | ) |
Definition at line 410 of file MCTruthHelper.h.
References MCTruthHelper< P >::dupCheck_, MCTruthHelper< P >::nextCopy(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by MCTruthHelper< P >::isLastCopy().
const P * MCTruthHelper< P >::lastCopyBeforeFSR | ( | const P & | p | ) |
Definition at line 423 of file MCTruthHelper.h.
References MCTruthHelper< P >::daughter(), MCTruthHelper< P >::dupCheck_, MCTruthHelper< P >::firstCopy(), MCTruthHelper< P >::numberOfDaughters(), and MCTruthHelper< P >::pdgId().
Referenced by MCTruthHelper< P >::isLastCopyBeforeFSR().
const P * MCTruthHelper< P >::lastDaughterCopyBeforeFSR | ( | const P & | p | ) |
Definition at line 457 of file MCTruthHelper.h.
References MCTruthHelper< P >::daughter(), MCTruthHelper< P >::dupCheck_, MCTruthHelper< P >::numberOfDaughters(), AlCaHLTBitMon_ParallelJobs::p, and MCTruthHelper< P >::pdgId().
Referenced by MCTruthHelper< P >::fromHardProcessBeforeFSR().
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().
Referenced by MCTruthHelper< P >::findDecayedMother(), MCTruthHelper< P >::isHardProcess(), MCTruthHelper< P >::previousCopy(), and MCTruthHelper< P >::uniqueMother().
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 MCTruthHelper< P >::daughter(), MCTruthHelper< P >::numberOfDaughters(), and MCTruthHelper< P >::pdgId().
Referenced by MCTruthHelper< P >::isHardProcess(), and MCTruthHelper< P >::lastCopy().
unsigned int MCTruthHelper< P >::numberOfDaughters | ( | const reco::GenParticle & | p | ) |
Definition at line 612 of file MCTruthHelper.h.
References reco::CompositeRefCandidateT< D >::numberOfDaughters().
Referenced by MCTruthHelper< P >::lastCopyBeforeFSR(), MCTruthHelper< P >::lastDaughterCopyBeforeFSR(), and MCTruthHelper< P >::nextCopy().
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().
Referenced by MCTruthHelper< P >::previousCopy().
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__(), MCTruthHelper< P >::isHadron(), MCTruthHelper< P >::lastCopyBeforeFSR(), MCTruthHelper< P >::lastDaughterCopyBeforeFSR(), MCTruthHelper< P >::nextCopy(), MCTruthHelper< P >::previousCopy(), and MCTruthHelper< P >::uniqueMother().
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 MCTruthHelper< P >::mother(), MCTruthHelper< P >::numberOfMothers(), and MCTruthHelper< P >::pdgId().
Referenced by MCTruthHelper< P >::firstCopy(), and MCTruthHelper< P >::hardProcessMotherCopy().
const P * MCTruthHelper< P >::uniqueMother | ( | const P & | p | ) |
Definition at line 384 of file MCTruthHelper.h.
References MCTruthHelper< P >::dupCheck_, MCTruthHelper< P >::mother(), AlCaHLTBitMon_ParallelJobs::p, and MCTruthHelper< P >::pdgId().
Referenced by MCTruthHelper< P >::isDirectHadronDecayProduct().
|
protected |
Definition at line 183 of file MCTruthHelper.h.
Referenced by MCTruthHelper< P >::findDecayedMother(), MCTruthHelper< P >::firstCopy(), MCTruthHelper< P >::hardProcessMotherCopy(), MCTruthHelper< P >::lastCopy(), MCTruthHelper< P >::lastCopyBeforeFSR(), MCTruthHelper< P >::lastDaughterCopyBeforeFSR(), and MCTruthHelper< P >::uniqueMother().