ATLAS Offline Software
Namespaces | Functions
TruthTools.h File Reference
#include <ostream>
#include <iostream>
#include <string>
#include "xAODTruth/TruthParticleContainer.h"
#include "xAODMuon/MuonContainer.h"
#include "TopEvent/EventTools.h"
#include "TopDataPreparation/SampleXsection.h"
#include "xAODBase/IParticle.h"
Include dependency graph for TruthTools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 top
 TopConfig A simple configuration that is NOT a singleton.
 
 top::truth
 

Functions

void top::truth::getTruthMuonHistory (const xAOD::TruthParticle *truthmu, bool doPartonHistory, SampleXsection::showering shAlgo, bool verbose)
 
void top::truth::getTruthMuonPartonHistory (const xAOD::TruthParticle *truthmu, top::LepParticleOriginFlag lepParticleOriginFlag, const xAOD::TruthParticle *truthmu_Bmother, const xAOD::TruthParticle *truthmu_Cmother, const xAOD::TruthParticle *truthmu_firstNonLeptonMother, SampleXsection::showering shAlgo, bool verbose)
 
top::LepParticleOriginFlag top::truth::getTruthMuonFromTauHistory (const xAOD::TruthParticle *tau, const xAOD::TruthParticle *&truthmu_Bmother, const xAOD::TruthParticle *&truthmu_Cmother, const xAOD::TruthParticle *&truthmu_firstNonLeptonMother, bool verbose)
 
top::LepParticleOriginFlag top::truth::getTruthMuonFromCharmHistory (const xAOD::TruthParticle *&truthmu_Bmother, const xAOD::TruthParticle *truthmu_Cmother, bool verbose)
 
void top::truth::getRecoMuonHistory (const xAOD::Muon *muon, bool doPartonHistory, SampleXsection::showering shAlgo, bool verbose)
 
const xAOD::TruthParticletop::truth::getInitialStateParticle (const xAOD::TruthParticle *truthParticle, bool verbose)
 
const xAOD::TruthParticletop::truth::getFirstHFHadronOfSameFlavour (const xAOD::TruthParticle *truthParticle, bool verbose)
 
const xAOD::TruthParticletop::truth::getTruthMuonAssociatedToRecoMuon (const xAOD::Muon *muon)
 
void top::truth::initTruthMuonHistoryInfo (const xAOD::TruthParticle *truthmu, bool doPartonHistory)
 
void top::truth::initRecoMuonHistoryInfo (const xAOD::Muon *muon, bool doPartonHistory)
 
void top::truth::initCommonMuonHistoryInfo (const xAOD::IParticle *muon, bool doPartonHistory)
 
void top::truth::copyTruthMuonHistoryInfo (const xAOD::TruthParticle *tm_origin, const xAOD::TruthParticle *tm_target)
 
void top::truth::copyRecoMuonHistoryInfo (const xAOD::Muon *m_origin, const xAOD::Muon *m_target)
 
void top::truth::copyCommonMuonHistoryInfo (const xAOD::IParticle *m_origin, const xAOD::IParticle *m_target)
 
void top::truth::printDecayChain (const xAOD::TruthParticle *part, std::ostream &os=std::cout, const std::string &prefix="")
 Prints the decay chain leading up to a certain particle to a std::ostream. More...
 
bool top::truth::isBHadron (int pdgId)
 Check if a certain pdg ID corresponds to a B hadron. More...
 
bool top::truth::isFrom (const xAOD::TruthParticle *truthParticle, const std::vector< int > &parentPDGIds, bool bOnlyDirect=false)
 Function to determine whether the input particle was produced in the physical decay of a particle of given PDG ID. More...
 
bool top::truth::isFromWZDecay (const xAOD::TruthParticle *truthParticle, bool bOnlyDirect=false)
 Function to determine whether a given truth particle is a result of a decay chain that started in the decay of a W or Z boson. More...
 
bool top::truth::isLeptonFromTau (const xAOD::TruthParticle *truthParticle)
 Function the check if a particle is a lepton which was produced in the decay of a tau lepton. More...
 
bool top::truth::isLepton (const xAOD::TruthParticle *truthParticle)
 Check whether a given truth particle is a lepton. More...
 
bool top::truth::isNotFromHadron (const xAOD::TruthParticle *truthParticle, bool bOnlyDirect=false, bool bTauIsHadron=false)
 Check whether a given truth particle is not produced in the decay of physical hadrons or their descendents. More...