ATLAS Offline Software
Functions
Common Namespace Reference

Functions

bool prompt (const xAOD::TruthParticle *part, ToolHandle< IMCTruthClassifier > &m_classif)
 
bool fromWZorTau (const HepMC::ConstGenParticlePtr &part)
 
void classify (ToolHandle< IMCTruthClassifier > &m_classif, const xAOD::TruthParticle *theParticle, unsigned int &particleOutCome, unsigned int &result, int &hadron_pdg, unsigned int &particleType, unsigned int &particleOrigin)
 

Function Documentation

◆ classify()

void Common::classify ( ToolHandle< IMCTruthClassifier > &  m_classif,
const xAOD::TruthParticle theParticle,
unsigned int &  particleOutCome,
unsigned int &  result,
int &  hadron_pdg,
unsigned int &  particleType,
unsigned int &  particleOrigin 
)

Definition at line 96 of file Common.cxx.

103  {
105  std::pair<MCTruthPartClassifier::ParticleType, MCTruthPartClassifier::ParticleOrigin> classification = classif->particleTruthClassifier(theParticle, &info);
106  particleOutCome = info.particleOutCome;
107  auto tpl = MCTruthPartClassifier::defOrigOfParticle(theParticle);
108  result = (unsigned int)std::get<0>(tpl);
109  hadron_pdg = std::get<1>(tpl)?std::get<1>(tpl)->pdg_id():0;
110  particleType = classification.first;
111  particleOrigin = classification.second;
112  }

◆ fromWZorTau()

bool Common::fromWZorTau ( const HepMC::ConstGenParticlePtr part)

Definition at line 93 of file Common.cxx.

93 { return fromWZ(part)||fromTau(part); }

◆ prompt()

bool Common::prompt ( const xAOD::TruthParticle part,
ToolHandle< IMCTruthClassifier > &  m_classif 
)
grepfile.info
info
Definition: grepfile.py:38
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
StrangeMeson
@ StrangeMeson
Definition: TruthClasses.h:80
get_generator_info.result
result
Definition: get_generator_info.py:21
Mu
@ Mu
Definition: TruthClasses.h:62
BBbarMeson
@ BBbarMeson
Definition: TruthClasses.h:85
BottomMeson
@ BottomMeson
Definition: TruthClasses.h:82
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
PionDecay
@ PionDecay
Definition: TruthClasses.h:90
ElMagProc
@ ElMagProc
Definition: TruthClasses.h:61
PhotonConv
@ PhotonConv
Definition: TruthClasses.h:59
MCTruthPartClassifier::defOrigOfParticle
std::tuple< unsigned int, T > defOrigOfParticle(T thePart)
Definition: TruthClassifiers.h:151
particleType
Definition: particleType.h:29
CCbarMeson
@ CCbarMeson
Definition: TruthClasses.h:83
NonDefined
@ NonDefined
Definition: TruthClasses.h:52
CharmedBaryon
@ CharmedBaryon
Definition: TruthClasses.h:88
ParticleOrigin
ParticleOrigin
Definition: TruthClasses.h:51
StrangeBaryon
@ StrangeBaryon
Definition: TruthClasses.h:87
LightMeson
@ LightMeson
Definition: TruthClasses.h:79
JPsi
@ JPsi
Definition: TruthClasses.h:84
CharmedMeson
@ CharmedMeson
Definition: TruthClasses.h:81
BottomBaryon
@ BottomBaryon
Definition: TruthClasses.h:89
LightBaryon
@ LightBaryon
Definition: TruthClasses.h:86
DalitzDec
@ DalitzDec
Definition: TruthClasses.h:60
KaonDecay
@ KaonDecay
Definition: TruthClasses.h:91
MCTruthPartClassifier::Info
Definition: IMCTruthClassifier.h:49