ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
tauRecTools
Root
TauRecToolBase.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
tauRecTools/TauRecToolBase.h
"
6
#include "
PathResolver/PathResolver.h
"
7
8
// ROOT include(s)
9
#include "TEnv.h"
10
#include "THashList.h"
11
12
#include <sys/types.h>
13
#include <unistd.h>
14
#include <string>
15
#include <sstream>
16
#include <cstdlib>
17
18
19
std::string
TauRecToolBase::find_file
(
const
std::string& fname)
const
{
20
std::string full_path;
21
//offline calib files are in GroupData
22
//online calib files are in release
23
full_path =
PathResolverFindCalibFile
(
m_tauRecToolsTag
+
"/"
+fname);
24
if
(full_path.empty()) full_path =
PathResolverFindCalibFile
(fname);
25
return
full_path;
26
}
27
28
TauRecToolBase::TauRecToolBase
(
const
std::string& name) :
29
asg
::
AsgTool
(name) {
30
}
31
32
StatusCode
TauRecToolBase::initialize
(){
33
return
StatusCode::SUCCESS;
34
}
35
36
StatusCode
TauRecToolBase::eventInitialize
(){
37
return
StatusCode::SUCCESS;
38
}
39
40
//________________________________________
41
StatusCode
TauRecToolBase::executeTool
(
xAOD::TauJet
& ,
42
const
EventContext&)
const
{
43
ATH_MSG_ERROR
(
"function not implemented"
);
44
return
StatusCode::FAILURE;
45
}
46
47
#ifdef XAOD_ANALYSIS
48
StatusCode TauRecToolBase::executeDev(
xAOD::TauJet
&) {
49
ATH_MSG_ERROR
(
"function not implemented"
);
50
return
StatusCode::FAILURE;
51
}
52
#else
53
StatusCode
TauRecToolBase::executeTool
(
xAOD::TauJet
& ,
54
const
EventContext& ,
55
CaloConstCellContainer
& ,
56
boost::dynamic_bitset<>& )
const
{
57
ATH_MSG_ERROR
(
"function not implemented"
);
58
return
StatusCode::FAILURE;
59
}
60
#endif
61
62
StatusCode
TauRecToolBase::executeTool
(
xAOD::TauJet
& ,
63
const
EventContext& ,
64
const
xAOD::VertexContainer
*)
const
{
65
ATH_MSG_ERROR
(
"function not implemented"
);
66
return
StatusCode::FAILURE;
67
}
68
69
StatusCode
TauRecToolBase::executeTool
(
xAOD::TauJet
& ,
70
const
EventContext& ,
71
xAOD::VertexContainer
& )
const
{
72
ATH_MSG_ERROR
(
"function not implemented"
);
73
return
StatusCode::FAILURE;
74
}
75
76
StatusCode
TauRecToolBase::executeTool
(
xAOD::TauJet
& ,
77
const
EventContext& ,
78
xAOD::TauTrackContainer
&)
const
{
79
ATH_MSG_ERROR
(
"function not implemented"
);
80
return
StatusCode::FAILURE;
81
}
82
83
StatusCode
TauRecToolBase::executeTool
(
xAOD::TauJet
& ,
84
const
EventContext& ,
85
xAOD::CaloClusterContainer
& ,
86
xAOD::PFOContainer
& )
const
{
87
ATH_MSG_ERROR
(
"function not implemented"
);
88
return
StatusCode::FAILURE;
89
}
90
91
StatusCode
TauRecToolBase::executeTool
(
xAOD::TauJet
& ,
92
const
EventContext& ,
93
xAOD::PFOContainer
& ,
94
xAOD::PFOContainer
& ,
95
const
xAOD::CaloClusterContainer
& )
const
{
96
ATH_MSG_ERROR
(
"function not implemented"
);
97
return
StatusCode::FAILURE;
98
}
99
100
StatusCode
TauRecToolBase::executeTool
(
xAOD::TauJet
& ,
101
const
EventContext& ,
102
xAOD::PFOContainer
& ,
103
xAOD::PFOContainer
& )
const
{
104
ATH_MSG_ERROR
(
"function not implemented"
);
105
return
StatusCode::FAILURE;
106
}
107
108
StatusCode
TauRecToolBase::executeTool
(
xAOD::TauJet
& ,
109
const
EventContext& ,
110
xAOD::PFOContainer
& )
const
{
111
ATH_MSG_ERROR
(
"function not implemented"
);
112
return
StatusCode::FAILURE;
113
}
114
115
StatusCode
TauRecToolBase::executeTool
(
xAOD::TauJet
& ,
116
const
EventContext& ,
117
xAOD::ParticleContainer
& ,
118
xAOD::PFOContainer
& )
const
{
119
ATH_MSG_ERROR
(
"function not implemented"
);
120
return
StatusCode::FAILURE;
121
}
122
123
StatusCode
TauRecToolBase::eventFinalize
() {
124
return
StatusCode::SUCCESS;
125
}
126
127
StatusCode
TauRecToolBase::finalize
(){
128
return
StatusCode::SUCCESS;
129
}
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x,...)
Definition
AthMsgStreamMacros.h:47
PathResolver.h
PathResolverFindCalibFile
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Definition
PathResolver.cxx:325
TauRecToolBase.h
CaloConstCellContainer
CaloCellContainer that can accept const cell pointers.
Definition
CaloConstCellContainer.h:45
TauRecToolBase::m_tauRecToolsTag
Gaudi::Property< std::string > m_tauRecToolsTag
Definition
TauRecToolBase.h:107
TauRecToolBase::eventInitialize
virtual StatusCode eventInitialize() override
Event initializer - called at the beginning of each event.
Definition
TauRecToolBase.cxx:36
TauRecToolBase::TauRecToolBase
TauRecToolBase(const std::string &name)
Definition
TauRecToolBase.cxx:28
TauRecToolBase::executeTool
virtual StatusCode executeTool(xAOD::TauJet &, const EventContext &) const override
Execute - called for each tau candidate.
Definition
TauRecToolBase.cxx:41
TauRecToolBase::initialize
virtual StatusCode initialize() override
Tool initializer.
Definition
TauRecToolBase.cxx:32
TauRecToolBase::eventFinalize
virtual StatusCode eventFinalize() override
Event finalizer - called at the end of each event.
Definition
TauRecToolBase.cxx:123
TauRecToolBase::finalize
virtual StatusCode finalize() override
Finalizer.
Definition
TauRecToolBase.cxx:127
TauRecToolBase::find_file
std::string find_file(const std::string &fname) const
Definition
TauRecToolBase.cxx:19
asg::AsgTool::AsgTool
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition
AsgTool.cxx:58
asg
Definition
DataHandleTestTool.h:28
xAOD::PFOContainer
PFOContainer_v1 PFOContainer
Definition of the current "pfo container version".
Definition
PFOContainer.h:17
xAOD::ParticleContainer
ParticleContainer_v1 ParticleContainer
Define the latest version of the particle class.
Definition
ParticleContainer.h:17
xAOD::VertexContainer
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Definition
VertexContainer.h:14
xAOD::TauJet
TauJet_v3 TauJet
Definition of the current "tau version".
Definition
TauJet.h:17
xAOD::TauTrackContainer
TauTrackContainer_v1 TauTrackContainer
Definition of the current TauTrack container version.
Definition
TauTrackContainer.h:16
xAOD::CaloClusterContainer
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloClusterContainer.h:17
Generated on
for ATLAS Offline Software by
1.17.0