CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
MCTruthHelper< P > Class Template Reference

#include <MCTruthHelper.h>

Public Member Functions

int absPdgId (const reco::GenParticle &p)
 
int absPdgId (const HepMC::GenParticle &p)
 
const reco::GenParticledaughter (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 PfindDecayedMother (const P &p)
 
const PfindDecayedMother (const P &p, int abspdgid)
 
const PfirstCopy (const P &p)
 
bool fromHardProcess (const P &p)
 
bool fromHardProcessBeforeFSR (const P &p)
 
bool fromHardProcessDecayed (const P &p)
 
bool fromHardProcessFinalState (const P &p)
 
const PhardProcessMotherCopy (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 PlastCopy (const P &p)
 
const PlastCopyBeforeFSR (const P &p)
 
const PlastDaughterCopyBeforeFSR (const P &p)
 
const reco::GenParticlemother (const reco::GenParticle &p, unsigned int imoth=0)
 
const HepMC::GenParticle * mother (const HepMC::GenParticle &p, unsigned int imoth=0)
 
const PnextCopy (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 PpreviousCopy (const P &p)
 
const PuniqueMother (const P &p)
 

Protected Attributes

std::unordered_set< const P * > dupCheck_
 

Detailed Description

template<typename P>
class MCTruthHelper< P >

Definition at line 14 of file MCTruthHelper.h.

Member Function Documentation

template<typename P >
int MCTruthHelper< P >::absPdgId ( const reco::GenParticle p)

Definition at line 576 of file MCTruthHelper.h.

template<typename P >
int MCTruthHelper< P >::absPdgId ( const HepMC::GenParticle &  p)

Definition at line 582 of file MCTruthHelper.h.

template<typename P >
const reco::GenParticle * MCTruthHelper< P >::daughter ( const reco::GenParticle p,
unsigned int  idau 
)

Definition at line 624 of file MCTruthHelper.h.

template<typename P >
const HepMC::GenParticle * MCTruthHelper< P >::daughter ( const HepMC::GenParticle &  p,
unsigned int  idau 
)

Definition at line 630 of file MCTruthHelper.h.

template<typename P>
void MCTruthHelper< P >::fillGenStatusFlags ( const P p,
reco::GenStatusFlags statusFlags 
)

Definition at line 636 of file MCTruthHelper.h.

template<typename P>
const P * MCTruthHelper< P >::findDecayedMother ( const P p)

Definition at line 538 of file MCTruthHelper.h.

template<typename P>
const P * MCTruthHelper< P >::findDecayedMother ( const P p,
int  abspdgid 
)

Definition at line 551 of file MCTruthHelper.h.

template<typename P>
const P * MCTruthHelper< P >::firstCopy ( const P p)

Definition at line 397 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::fromHardProcess ( const P p)

Definition at line 306 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::fromHardProcessBeforeFSR ( const P p)

Definition at line 338 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::fromHardProcessDecayed ( const P p)

Definition at line 318 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::fromHardProcessFinalState ( const P p)

Definition at line 312 of file MCTruthHelper.h.

template<typename P>
const P * MCTruthHelper< P >::hardProcessMotherCopy ( const P p)

Definition at line 490 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isDecayedLeptonHadron ( const P p)

Definition at line 208 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isDirectHadronDecayProduct ( const P p)

Definition at line 261 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isDirectHardProcessTauDecayProduct ( const P p)

Definition at line 331 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isDirectPromptTauDecayProduct ( const P p)

Definition at line 240 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isDirectTauDecayProduct ( const P p)

Definition at line 232 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isFirstCopy ( const P p)

Definition at line 366 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isHadron ( const P p)

Definition at line 268 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isHardProcess ( const P p)

Definition at line 275 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isHardProcessTauDecayProduct ( const P p)

Definition at line 324 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isLastCopy ( const P p)

Definition at line 372 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isLastCopyBeforeFSR ( const P p)

Definition at line 378 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isMuonDecayProduct ( const P p)

Definition at line 248 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isPrompt ( const P p)

Definition at line 194 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isPromptDecayed ( const P p)

Definition at line 213 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isPromptFinalState ( const P p)

Definition at line 203 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isPromptMuonDecayProduct ( const P p)

Definition at line 254 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isPromptTauDecayProduct ( const P p)

Definition at line 225 of file MCTruthHelper.h.

template<typename P>
bool MCTruthHelper< P >::isTauDecayProduct ( const P p)

Definition at line 219 of file MCTruthHelper.h.

template<typename P>
const P * MCTruthHelper< P >::lastCopy ( const P p)

Definition at line 410 of file MCTruthHelper.h.

template<typename P>
const P * MCTruthHelper< P >::lastCopyBeforeFSR ( const P p)

Definition at line 423 of file MCTruthHelper.h.

template<typename P>
const P * MCTruthHelper< P >::lastDaughterCopyBeforeFSR ( const P p)

Definition at line 457 of file MCTruthHelper.h.

template<typename P >
const reco::GenParticle * MCTruthHelper< P >::mother ( const reco::GenParticle p,
unsigned int  imoth = 0 
)

Definition at line 600 of file MCTruthHelper.h.

template<typename P >
const HepMC::GenParticle * MCTruthHelper< P >::mother ( const HepMC::GenParticle &  p,
unsigned int  imoth = 0 
)

Definition at line 606 of file MCTruthHelper.h.

template<typename P>
const P * MCTruthHelper< P >::nextCopy ( const P p)

Definition at line 523 of file MCTruthHelper.h.

template<typename P >
unsigned int MCTruthHelper< P >::numberOfDaughters ( const reco::GenParticle p)

Definition at line 612 of file MCTruthHelper.h.

template<typename P >
unsigned int MCTruthHelper< P >::numberOfDaughters ( const HepMC::GenParticle &  p)

Definition at line 618 of file MCTruthHelper.h.

template<typename P >
unsigned int MCTruthHelper< P >::numberOfMothers ( const reco::GenParticle p)

Definition at line 588 of file MCTruthHelper.h.

template<typename P >
unsigned int MCTruthHelper< P >::numberOfMothers ( const HepMC::GenParticle &  p)

Definition at line 594 of file MCTruthHelper.h.

template<typename P >
int MCTruthHelper< P >::pdgId ( const reco::GenParticle p)

Definition at line 564 of file MCTruthHelper.h.

Referenced by Particle.Particle::__str__().

template<typename P >
int MCTruthHelper< P >::pdgId ( const HepMC::GenParticle &  p)

Definition at line 570 of file MCTruthHelper.h.

Referenced by Particle.Particle::__str__().

template<typename P>
const P * MCTruthHelper< P >::previousCopy ( const P p)

Definition at line 508 of file MCTruthHelper.h.

template<typename P>
const P * MCTruthHelper< P >::uniqueMother ( const P p)

Definition at line 384 of file MCTruthHelper.h.

Member Data Documentation

template<typename P>
std::unordered_set<const P*> MCTruthHelper< P >::dupCheck_
protected

Definition at line 183 of file MCTruthHelper.h.