#include <MCTruthHelper.h>
Public Member Functions | |
int | absPdgId (const reco::GenParticle &p) const |
int | absPdgId (const HepMC::GenParticle &p) const |
const reco::GenParticle * | daughter (const reco::GenParticle &p, unsigned int idau) const |
const HepMC::GenParticle * | daughter (const HepMC::GenParticle &p, unsigned int idau) const |
void | fillGenStatusFlags (const P &p, reco::GenStatusFlags &statusFlags) const |
const P * | findDecayedMother (const P &p) const |
const P * | findDecayedMother (const P &p, int abspdgid) const |
const P * | firstCopy (const P &p) const |
bool | fromHardProcess (const P &p) const |
bool | fromHardProcessBeforeFSR (const P &p) const |
bool | fromHardProcessDecayed (const P &p) const |
bool | fromHardProcessFinalState (const P &p) const |
const P * | hardProcessMotherCopy (const P &p) const |
bool | isDecayedLeptonHadron (const P &p) const |
bool | isDirectHadronDecayProduct (const P &p) const |
bool | isDirectHardProcessTauDecayProduct (const P &p) const |
bool | isDirectPromptTauDecayProduct (const P &p) const |
bool | isDirectTauDecayProduct (const P &p) const |
bool | isFirstCopy (const P &p) const |
bool | isHadron (const P &p) const |
bool | isHardProcess (const P &p) const |
bool | isHardProcessTauDecayProduct (const P &p) const |
bool | isLastCopy (const P &p) const |
bool | isLastCopyBeforeFSR (const P &p) const |
bool | isMuonDecayProduct (const P &p) const |
bool | isPrompt (const P &p) const |
bool | isPromptDecayed (const P &p) const |
bool | isPromptFinalState (const P &p) const |
bool | isPromptMuonDecayProduct (const P &p) const |
bool | isPromptTauDecayProduct (const P &p) const |
bool | isTauDecayProduct (const P &p) const |
const P * | lastCopy (const P &p) const |
const P * | lastCopyBeforeFSR (const P &p) const |
const P * | lastDaughterCopyBeforeFSR (const P &p) const |
const reco::GenParticle * | mother (const reco::GenParticle &p, unsigned int imoth=0) const |
const HepMC::GenParticle * | mother (const HepMC::GenParticle &p, unsigned int imoth=0) const |
const P * | nextCopy (const P &p) const |
unsigned int | numberOfDaughters (const reco::GenParticle &p) const |
unsigned int | numberOfDaughters (const HepMC::GenParticle &p) const |
unsigned int | numberOfMothers (const reco::GenParticle &p) const |
unsigned int | numberOfMothers (const HepMC::GenParticle &p) const |
int | pdgId (const reco::GenParticle &p) const |
int | pdgId (const HepMC::GenParticle &p) const |
const P * | previousCopy (const P &p) const |
const P * | uniqueMother (const P &p) const |
Definition at line 14 of file MCTruthHelper.h.
int MCTruthHelper< P >::absPdgId | ( | const reco::GenParticle & | p | ) | const |
Definition at line 573 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 |
const reco::GenParticle * MCTruthHelper< P >::daughter | ( | const reco::GenParticle & | p, |
unsigned int | idau | ||
) | const |
Definition at line 621 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 | ||
) | const |
Definition at line 627 of file MCTruthHelper.h.
void MCTruthHelper< P >::fillGenStatusFlags | ( | const P & | p, |
reco::GenStatusFlags & | statusFlags | ||
) | const |
Definition at line 633 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 | ) | const |
Definition at line 535 of file MCTruthHelper.h.
References 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 | ||
) | const |
Definition at line 548 of file MCTruthHelper.h.
References MCTruthHelper< P >::absPdgId(), MCTruthHelper< P >::isDecayedLeptonHadron(), and MCTruthHelper< P >::mother().
const P * MCTruthHelper< P >::firstCopy | ( | const P & | p | ) | const |
Definition at line 394 of file MCTruthHelper.h.
References 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 | ) | const |
Definition at line 303 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 | ) | const |
Definition at line 335 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 | ) | const |
Definition at line 315 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 |
Definition at line 309 of file MCTruthHelper.h.
References MCTruthHelper< P >::fromHardProcess().
const P * MCTruthHelper< P >::hardProcessMotherCopy | ( | const P & | p | ) | const |
Definition at line 487 of file MCTruthHelper.h.
References 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 | ) | const |
Definition at line 205 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 | ) | const |
Definition at line 258 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 | ) | const |
Definition at line 328 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 | ) | const |
Definition at line 237 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 | ) | const |
Definition at line 229 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 | ) | const |
Definition at line 363 of file MCTruthHelper.h.
References MCTruthHelper< P >::firstCopy().
Referenced by MCTruthHelper< P >::fillGenStatusFlags().
bool MCTruthHelper< P >::isHadron | ( | const P & | p | ) | const |
Definition at line 265 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 | ) | const |
Definition at line 272 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 | ) | const |
Definition at line 321 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 | ) | const |
Definition at line 369 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 | ) | const |
Definition at line 375 of file MCTruthHelper.h.
References MCTruthHelper< P >::lastCopyBeforeFSR().
Referenced by MCTruthHelper< P >::fillGenStatusFlags().
bool MCTruthHelper< P >::isMuonDecayProduct | ( | const P & | p | ) | const |
Definition at line 245 of file MCTruthHelper.h.
References MCTruthHelper< P >::findDecayedMother().
bool MCTruthHelper< P >::isPrompt | ( | const P & | p | ) | const |
Definition at line 191 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 | ) | const |
Definition at line 210 of file MCTruthHelper.h.
References MCTruthHelper< P >::isDecayedLeptonHadron(), and MCTruthHelper< P >::isPrompt().
bool MCTruthHelper< P >::isPromptFinalState | ( | const P & | p | ) | const |
bool MCTruthHelper< P >::isPromptMuonDecayProduct | ( | const P & | p | ) | const |
Definition at line 251 of file MCTruthHelper.h.
References MCTruthHelper< P >::findDecayedMother(), MCTruthHelper< P >::isPrompt(), and RPCpg::mu.
bool MCTruthHelper< P >::isPromptTauDecayProduct | ( | const P & | p | ) | const |
Definition at line 222 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 | ) | const |
Definition at line 216 of file MCTruthHelper.h.
References MCTruthHelper< P >::findDecayedMother().
Referenced by MCTruthHelper< P >::fillGenStatusFlags().
const P * MCTruthHelper< P >::lastCopy | ( | const P & | p | ) | const |
Definition at line 407 of file MCTruthHelper.h.
References MCTruthHelper< P >::nextCopy(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by MCTruthHelper< P >::isLastCopy().
const P * MCTruthHelper< P >::lastCopyBeforeFSR | ( | const P & | p | ) | const |
Definition at line 420 of file MCTruthHelper.h.
References MCTruthHelper< P >::daughter(), MCTruthHelper< P >::firstCopy(), MCTruthHelper< P >::numberOfDaughters(), and MCTruthHelper< P >::pdgId().
Referenced by MCTruthHelper< P >::isLastCopyBeforeFSR().
const P * MCTruthHelper< P >::lastDaughterCopyBeforeFSR | ( | const P & | p | ) | const |
Definition at line 454 of file MCTruthHelper.h.
References MCTruthHelper< P >::daughter(), 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 |
||
) | const |
Definition at line 597 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 |
||
) | const |
Definition at line 603 of file MCTruthHelper.h.
const P * MCTruthHelper< P >::nextCopy | ( | const P & | p | ) | const |
Definition at line 520 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 | ) | const |
Definition at line 609 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 | ) | const |
Definition at line 615 of file MCTruthHelper.h.
unsigned int MCTruthHelper< P >::numberOfMothers | ( | const reco::GenParticle & | p | ) | const |
Definition at line 585 of file MCTruthHelper.h.
References reco::CompositeRefCandidateT< D >::numberOfMothers().
Referenced by MCTruthHelper< P >::previousCopy().
unsigned int MCTruthHelper< P >::numberOfMothers | ( | const HepMC::GenParticle & | p | ) | const |
Definition at line 591 of file MCTruthHelper.h.
int MCTruthHelper< P >::pdgId | ( | const reco::GenParticle & | p | ) | const |
Definition at line 561 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 |
const P * MCTruthHelper< P >::previousCopy | ( | const P & | p | ) | const |
Definition at line 505 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 | ) | const |
Definition at line 381 of file MCTruthHelper.h.
References MCTruthHelper< P >::mother(), AlCaHLTBitMon_ParallelJobs::p, and MCTruthHelper< P >::pdgId().
Referenced by MCTruthHelper< P >::isDirectHadronDecayProduct().