ATLAS Offline Software
Namespaces | Functions
PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/HelperFunctions.h File Reference
#include <vector>
#include <string>
#include <sstream>
#include "TEnv.h"
#include "xAODTau/TauJet.h"
#include "xAODTau/TauJetContainer.h"
#include "xAODTau/TauxAODHelpers.h"
#include "xAODTau/DiTauJet.h"
#include "xAODTruth/TruthParticle.h"
#include "xAODTruth/TruthVertex.h"
#include "TauAnalysisTools/Enums.h"

Go to the source code of this file.

Namespaces

 TauAnalysisTools
 

Functions

void TauAnalysisTools::split (const std::string &sInput, const char cDelim, std::vector< std::string > &vOut)
 
void TauAnalysisTools::split (TEnv &rEnv, const std::string &sIn, const char cDelim, std::vector< std::string > &vOut)
 
void TauAnalysisTools::split (TEnv &rEnv, const std::string &sIn, const char cDelim, std::vector< size_t > &vOut)
 
void TauAnalysisTools::split (TEnv &rEnv, const std::string &sIn, const char cDelim, std::vector< int > &vOut)
 
void TauAnalysisTools::split (TEnv &rEnv, const std::string &sIn, const char cDelim, std::vector< unsigned > &vOut)
 
void TauAnalysisTools::split (TEnv &rEnv, const std::string &sIn, const char cDelim, std::vector< float > &vOut)
 
void TauAnalysisTools::split (TEnv &rEnv, const std::string &sIn, const char cDelim, std::vector< double > &vOut)
 
double TauAnalysisTools::tauPt (const xAOD::TauJet &xTau)
 return tau pt in GeV More...
 
double TauAnalysisTools::tauP (const xAOD::TauJet &xTau)
 return tau P in GeV More...
 
double TauAnalysisTools::tauEta (const xAOD::TauJet &xTau)
 return tau eta More...
 
double TauAnalysisTools::tauAbsEta (const xAOD::TauJet &xTau)
 return absolute tau eta More...
 
double TauAnalysisTools::finalTauPt (const xAOD::TauJet &xTau)
 return MVA based tau pt in GeV More...
 
double TauAnalysisTools::finalTauEta (const xAOD::TauJet &xTau)
 return MVA based tau eta More...
 
double TauAnalysisTools::finalTauAbsEta (const xAOD::TauJet &xTau)
 return MVA based absolute tau eta More...
 
double TauAnalysisTools::finalTauP (const xAOD::TauJet &xTau)
 return MVA based tau P in GeV More...
 
double TauAnalysisTools::tauLeadTrackEta (const xAOD::TauJet &xTau)
 return leading charge tau track eta More...
 
double TauAnalysisTools::truthTauPt (const xAOD::TauJet &xTau)
 return truth match tau pt in GeV (if hadronic truth tau match) More...
 
double TauAnalysisTools::truthTauAbsEta (const xAOD::TauJet &xTau)
 return truth match tau eta (if hadronic truth tau match) More...
 
double TauAnalysisTools::truthDecayMode (const xAOD::TauJet &xTau)
 return truth decay mode (if hadronic truth tau match) More...
 
const xAOD::TruthParticleTauAnalysisTools::getTruth (const xAOD::TauJet &xTau)
 
xAOD::TauJetParameters::DecayMode TauAnalysisTools::getTruthDecayMode (const xAOD::TruthParticle &xTruthTau)
 Get the Truth Decay Mode from TruthTau particle. More...
 
xAOD::TauJetParameters::DecayMode TauAnalysisTools::getTruthDecayMode (const xAOD::TauJet &xTau)
 Get the Truth Decay Mode from TruthTau particle. More...
 
int TauAnalysisTools::getNTauDecayParticles (const xAOD::TruthParticle &xTruthTau, int iPdgId, bool bCompareAbsoluteValues)
 Count truth matched decay particles of a particular PDGID. More...
 
bool TauAnalysisTools::testFileForEOFContainsCharacters (const std::string &sFileName)
 returns true if last line in file is empty or the line starts with the number sign More...
 
void TauAnalysisTools::createPi0Vectors (const xAOD::TauJet *xTau, std::vector< TLorentzVector > &vPi0s)
 
void TauAnalysisTools::correctedPi0Vectors (const xAOD::TauJet *xTau, std::vector< TLorentzVector > &correctedPi0s, TLorentzVector &TauP4)
 
void TauAnalysisTools::truthHadrons (const xAOD::TruthParticle *xTruthTau, std::vector< const xAOD::TruthParticle * > &vChargedHadrons, std::vector< const xAOD::TruthParticle * > &vNeutralHadrons)
 return charged and neutral daughters of truth tau More...
 
void TauAnalysisTools::truthHadrons (const xAOD::TauJet *xTau, std::vector< const xAOD::TruthParticle * > &vChargedHadrons, std::vector< const xAOD::TruthParticle * > &vNeutralHadrons)
 return charged and neutral daughters of hadronic truth matched taujet More...
 
TruthMatchedParticleType TauAnalysisTools::getTruthParticleType (const xAOD::TauJet &xTau)
 return TauJet match type More...
 
TruthMatchedParticleType TauAnalysisTools::getTruthParticleType (const xAOD::DiTauJet &xDiTau)
 return DiTauJet match type More...
 
std::vector< const xAOD::TauJet * > TauAnalysisTools::combineTauJetsWithMuonRM (const xAOD::TauJetContainer *taus_std, const xAOD::TauJetContainer *taus_muonRM)
 combine the standard taujets container with the muon removal container More...
 

Detailed Description

Author
Guillermo Hamity (ghami.nosp@m.ty@c.nosp@m.ern.c.nosp@m.h)
: Dirk Duschinger
Date
2021-02-19

Definition in file PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/HelperFunctions.h.