#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 13 of file MCTruthHelper.h.
int MCTruthHelper< P >::absPdgId | ( | const reco::GenParticle & | p | ) |
Definition at line 575 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 623 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 629 of file MCTruthHelper.h.
void MCTruthHelper< P >::fillGenStatusFlags | ( | const P & | p, |
reco::GenStatusFlags & | statusFlags | ||
) |
Definition at line 635 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 537 of file MCTruthHelper.h.
References P.
const P * MCTruthHelper< P >::findDecayedMother | ( | const P & | p, |
int | abspdgid | ||
) |
Definition at line 550 of file MCTruthHelper.h.
References P.
const P * MCTruthHelper< P >::firstCopy | ( | const P & | p | ) |
bool MCTruthHelper< P >::fromHardProcess | ( | const P & | p | ) |
Definition at line 305 of file MCTruthHelper.h.
bool MCTruthHelper< P >::fromHardProcessBeforeFSR | ( | const P & | p | ) |
Definition at line 337 of file MCTruthHelper.h.
References P, and AlCaHLTBitMon_ParallelJobs::p.
bool MCTruthHelper< P >::fromHardProcessDecayed | ( | const P & | p | ) |
Definition at line 317 of file MCTruthHelper.h.
bool MCTruthHelper< P >::fromHardProcessFinalState | ( | const P & | p | ) |
Definition at line 311 of file MCTruthHelper.h.
const P * MCTruthHelper< P >::hardProcessMotherCopy | ( | const P & | p | ) |
bool MCTruthHelper< P >::isDecayedLeptonHadron | ( | const P & | p | ) |
Definition at line 207 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isDirectHadronDecayProduct | ( | const P & | p | ) |
Definition at line 260 of file MCTruthHelper.h.
References P.
bool MCTruthHelper< P >::isDirectHardProcessTauDecayProduct | ( | const P & | p | ) |
Definition at line 330 of file MCTruthHelper.h.
References P, and metsig::tau.
bool MCTruthHelper< P >::isDirectPromptTauDecayProduct | ( | const P & | p | ) |
Definition at line 239 of file MCTruthHelper.h.
References P, and metsig::tau.
bool MCTruthHelper< P >::isDirectTauDecayProduct | ( | const P & | p | ) |
Definition at line 231 of file MCTruthHelper.h.
References P, and metsig::tau.
bool MCTruthHelper< P >::isFirstCopy | ( | const P & | p | ) |
Definition at line 365 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isHadron | ( | const P & | p | ) |
Definition at line 267 of file MCTruthHelper.h.
References RecoTau_DiTaus_pt_20-420_cfg::ParticleID, and benchmark_cfg::pdgId.
bool MCTruthHelper< P >::isHardProcess | ( | const P & | p | ) |
Definition at line 274 of file MCTruthHelper.h.
References P.
bool MCTruthHelper< P >::isHardProcessTauDecayProduct | ( | const P & | p | ) |
Definition at line 323 of file MCTruthHelper.h.
References P, and metsig::tau.
bool MCTruthHelper< P >::isLastCopy | ( | const P & | p | ) |
Definition at line 371 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isLastCopyBeforeFSR | ( | const P & | p | ) |
Definition at line 377 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isMuonDecayProduct | ( | const P & | p | ) |
Definition at line 247 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isPrompt | ( | const P & | p | ) |
Definition at line 193 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isPromptDecayed | ( | const P & | p | ) |
Definition at line 212 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isPromptFinalState | ( | const P & | p | ) |
Definition at line 202 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isPromptMuonDecayProduct | ( | const P & | p | ) |
Definition at line 253 of file MCTruthHelper.h.
bool MCTruthHelper< P >::isPromptTauDecayProduct | ( | const P & | p | ) |
Definition at line 224 of file MCTruthHelper.h.
References P, and metsig::tau.
bool MCTruthHelper< P >::isTauDecayProduct | ( | const P & | p | ) |
Definition at line 218 of file MCTruthHelper.h.
const P * MCTruthHelper< P >::lastCopy | ( | const P & | p | ) |
const P * MCTruthHelper< P >::lastCopyBeforeFSR | ( | const P & | p | ) |
Definition at line 422 of file MCTruthHelper.h.
References P, and benchmark_cfg::pdgId.
const P * MCTruthHelper< P >::lastDaughterCopyBeforeFSR | ( | const P & | p | ) |
Definition at line 456 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 599 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 605 of file MCTruthHelper.h.
const P * MCTruthHelper< P >::nextCopy | ( | const P & | p | ) |
Definition at line 522 of file MCTruthHelper.h.
References P, and benchmark_cfg::pdgId.
unsigned int MCTruthHelper< P >::numberOfDaughters | ( | const reco::GenParticle & | p | ) |
Definition at line 611 of file MCTruthHelper.h.
References reco::CompositeRefCandidateT< D >::numberOfDaughters().
unsigned int MCTruthHelper< P >::numberOfDaughters | ( | const HepMC::GenParticle & | p | ) |
Definition at line 617 of file MCTruthHelper.h.
unsigned int MCTruthHelper< P >::numberOfMothers | ( | const reco::GenParticle & | p | ) |
Definition at line 587 of file MCTruthHelper.h.
References reco::CompositeRefCandidateT< D >::numberOfMothers().
unsigned int MCTruthHelper< P >::numberOfMothers | ( | const HepMC::GenParticle & | p | ) |
Definition at line 593 of file MCTruthHelper.h.
int MCTruthHelper< P >::pdgId | ( | const reco::GenParticle & | p | ) |
Definition at line 563 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 507 of file MCTruthHelper.h.
References P, and benchmark_cfg::pdgId.
const P * MCTruthHelper< P >::uniqueMother | ( | const P & | p | ) |
Definition at line 383 of file MCTruthHelper.h.
References P, AlCaHLTBitMon_ParallelJobs::p, and benchmark_cfg::pdgId.
|
protected |
Definition at line 182 of file MCTruthHelper.h.