ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
tauRecTools
tauRecTools
Reconstruction/tauRecTools/tauRecTools/HelperFunctions.h
Go to the documentation of this file.
1
#
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TAURECTOOLS_HELPERFUNCTIONS_H
6
#define TAURECTOOLS_HELPERFUNCTIONS_H
7
8
#include "
xAODTracking/VertexContainer.h
"
9
#include "
xAODJet/Jet.h
"
10
#include "
xAODTau/TauJet.h
"
11
#include "
xAODCaloEvent/CaloCluster.h
"
12
#include "
xAODPFlow/PFO.h
"
13
#include "
xAODPFlow/FlowElement.h
"
14
#include "
AsgMessaging/MessageCheck.h
"
15
16
#include "
MVAUtils/BDT.h
"
17
#include "TLorentzVector.h"
18
#include "TString.h"
19
20
#include <vector>
21
#include <map>
22
23
24
namespace
tauRecTools
25
{
26
ANA_MSG_HEADER
(msgHelperFunction)
27
28
33
const
xAOD::Vertex
*
getJetVertex
(
const
xAOD::Jet
& jet);
34
41
TLorentzVector
getTauAxis
(
const
xAOD::TauJet
& tau,
bool
doVertexCorrection =
true
);
42
43
TLorentzVector
GetConstituentP4
(
const
xAOD::JetConstituent& constituent);
44
48
bool
doPi0andShots
(
const
xAOD::TauJet
& tau);
49
50
xAOD::TauTrack::TrackFlagType
isolateClassifiedBits
(
xAOD::TauTrack::TrackFlagType
flag);
51
bool
sortTracks
(
const
ElementLink<xAOD::TauTrackContainer>
&l1,
const
ElementLink<xAOD::TauTrackContainer>
&l2);
52
53
std::unique_ptr<MVAUtils::BDT>
configureMVABDT
( std::map<TString, float*> &availableVars,
const
TString& weightFile);
54
// initialise the BDT and return the list of input variable names
55
std::unique_ptr<MVAUtils::BDT>
configureMVABDT
(std::vector<TString>& variableNames,
const
TString& weightFile);
56
57
std::vector<TString>
parseString
(
const
TString&
str
,
const
TString& delim=
","
);
58
}
59
60
#endif
// TAURECTOOLS_HELPERFUNCTIONS_H
ElementLink
ElementLink()
Default constructor.
MessageCheck.h
macros for messaging and checking status codes
ANA_MSG_HEADER
#define ANA_MSG_HEADER(NAME)
for standalone code this creates a new message category
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:113
CaloCluster.h
Jet.h
FlowElement.h
PFO.h
BDT.h
TauJet.h
VertexContainer.h
xAOD::TauTrack_v1::TrackFlagType
uint16_t TrackFlagType
Definition
TauTrack_v1.h:61
str
Definition
BTagTrackIpAccessor.cxx:11
tauRecTools
Implementation of a TrackClassifier based on an RNN.
Definition
BDTHelper.cxx:12
tauRecTools::configureMVABDT
std::unique_ptr< MVAUtils::BDT > configureMVABDT(std::map< TString, float * > &availableVars, const TString &weightFile)
tauRecTools::doPi0andShots
bool doPi0andShots(const xAOD::TauJet &tau)
Determines whether pi0s and shots should be built for a tau candidate.
Definition
Reconstruction/tauRecTools/Root/HelperFunctions.cxx:87
tauRecTools::parseString
std::vector< TString > parseString(const TString &str, const TString &delim=",")
tauRecTools::sortTracks
bool sortTracks(const ElementLink< xAOD::TauTrackContainer > &l1, const ElementLink< xAOD::TauTrackContainer > &l2)
Definition
Reconstruction/tauRecTools/Root/HelperFunctions.cxx:48
tauRecTools::getJetVertex
const xAOD::Vertex * getJetVertex(const xAOD::Jet &jet)
Return the vertex of jet candidate.
Definition
Reconstruction/tauRecTools/Root/HelperFunctions.cxx:14
tauRecTools::isolateClassifiedBits
xAOD::TauTrack::TrackFlagType isolateClassifiedBits(xAOD::TauTrack::TrackFlagType flag)
Definition
Reconstruction/tauRecTools/Root/HelperFunctions.cxx:40
tauRecTools::getTauAxis
TLorentzVector getTauAxis(const xAOD::TauJet &tau, bool doVertexCorrection=true)
Return the four momentum of the tau axis The tau axis is widely used to select clusters and cells in ...
Definition
Reconstruction/tauRecTools/Root/HelperFunctions.cxx:27
tauRecTools::GetConstituentP4
TLorentzVector GetConstituentP4(const xAOD::JetConstituent &constituent)
Definition
Reconstruction/tauRecTools/Root/HelperFunctions.cxx:64
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition
Event/xAOD/xAODJet/xAODJet/Jet.h:17
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
xAOD::TauJet
TauJet_v3 TauJet
Definition of the current "tau version".
Definition
TauJet.h:17
Generated on
for ATLAS Offline Software by
1.17.0