ATLAS Offline Software
Namespaces | Functions
TruthTools.cxx File Reference
#include "TopParticleLevel/TruthTools.h"
#include "TopEvent/EventTools.h"
#include "xAODTruth/TruthVertex.h"
#include "AthContainers/AuxElement.h"
#include "xAODTruth/xAODTruthHelpers.h"
#include "xAODTruth/TruthParticleContainer.h"
#include "TruthUtils/HepMCHelpers.h"
#include <list>
#include <string>
#include <sstream>
#include <functional>
#include <iostream>
#include <stdexcept>
#include "TopParticleLevel/MsgCategory.h"

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::initCommonMuonHistoryInfo (const xAOD::IParticle *muon, bool doPartonHistory)
 
void top::truth::initRecoMuonHistoryInfo (const xAOD::Muon *muon, bool doPartonHistory)
 
void top::truth::initTruthMuonHistoryInfo (const xAOD::TruthParticle *truthmu, bool doPartonHistory)
 
void top::truth::copyRecoMuonHistoryInfo (const xAOD::Muon *m_origin, const xAOD::Muon *m_target)
 
void top::truth::copyTruthMuonHistoryInfo (const xAOD::TruthParticle *tm_origin, const xAOD::TruthParticle *tm_target)
 
void top::truth::copyCommonMuonHistoryInfo (const xAOD::IParticle *m_origin, const xAOD::IParticle *m_target)
 
const xAOD::TruthParticletop::truth::getTruthMuonAssociatedToRecoMuon (const xAOD::Muon *muon)
 
void top::truth::getRecoMuonHistory (const xAOD::Muon *muon, bool doPartonHistory, SampleXsection::showering shAlgo, bool verbose)
 
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::getTruthMuonFromCharmHistory (const xAOD::TruthParticle *&truthmu_Bmother, const xAOD::TruthParticle *truthmu_Cmother, 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)
 
const xAOD::TruthParticletop::truth::getFirstHFHadronOfSameFlavour (const xAOD::TruthParticle *truthParticle, bool verbose)
 
const xAOD::TruthParticletop::truth::getInitialStateParticle (const xAOD::TruthParticle *truthParticle, bool verbose)
 
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::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::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...