ATLAS Offline Software
Loading...
Searching...
No Matches
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
9#include "xAODJet/Jet.h"
10#include "xAODTau/TauJet.h"
12#include "xAODPFlow/PFO.h"
15
16#include "TLorentzVector.h"
17#include "TString.h"
18
19#include <vector>
20#include <map>
21
22
23namespace tauRecTools
24{
25 ANA_MSG_HEADER(msgHelperFunction)
26
27
32 const xAOD::Vertex* getJetVertex(const xAOD::Jet& jet);
33
40 TLorentzVector getTauAxis(const xAOD::TauJet& tau, bool doVertexCorrection = true);
41
42 TLorentzVector GetConstituentP4(const xAOD::JetConstituent& constituent);
43
47 bool doPi0andShots(const xAOD::TauJet& tau);
48
51
52 }
53#endif // TAURECTOOLS_HELPERFUNCTIONS_H
macros for messaging and checking status codes
#define ANA_MSG_HEADER(NAME)
for standalone code this creates a new message category
uint16_t TrackFlagType
Definition TauTrack_v1.h:61
Implementation of a TrackClassifier based on an RNN.
Definition BDTHelper.cxx:12
bool doPi0andShots(const xAOD::TauJet &tau)
Determines whether pi0s and shots should be built for a tau candidate.
bool sortTracks(const ElementLink< xAOD::TauTrackContainer > &l1, const ElementLink< xAOD::TauTrackContainer > &l2)
const xAOD::Vertex * getJetVertex(const xAOD::Jet &jet)
Return the vertex of jet candidate.
xAOD::TauTrack::TrackFlagType isolateClassifiedBits(xAOD::TauTrack::TrackFlagType flag)
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 ...
TLorentzVector GetConstituentP4(const xAOD::JetConstituent &constituent)
Jet_v1 Jet
Definition of the current "jet version".
Vertex_v1 Vertex
Define the latest version of the vertex class.
TauJet_v3 TauJet
Definition of the current "tau version".
Definition TauJet.h:17