ATLAS Offline Software
JetToolRunner.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 // JetToolRunner.h
6 
7 #ifndef JetToolRunner_H
8 #define JetToolRunner_H
9 
10 // David Adams.
11 // January 2014
12 //
13 // This is the top-level tool for jet reconstruction.
14 // It calls a series of tools with interface IJetExecute.
15 
17 #include "AsgTools/AsgTool.h"
20 
24 
26 : public asg::AsgTool,
27  virtual public IJetExecuteTool {
29 
30 public:
31 
32  JetToolRunner(const std::string& myname);
33 
34  // Initialization. Check all tools here.
36 
37  // Finalization. Write summary report.
39 
40  // Loop over tools.
41  int execute() const;
42 
43  // Display the configuration.
44  void print() const;
45 
46 private:
47 
48  // Properties.
49  ToolHandleArray<IEventShapeTool> m_evstools {this, "EventShapeTools", {}};
50  ToolHandleArray<IJetExecuteTool> m_exetools {this, "Tools", {}};
51 };
52 
53 #endif
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
JetToolRunner::finalize
StatusCode finalize()
Definition: JetToolRunner.cxx:54
IJetExecuteTool
IJetExecuteTool is a dual-use tool interface for generic tools, i.e. those that behave like algorithm...
Definition: IJetExecuteTool.h:19
JetToolRunner
Top-level tool for jet reconstruction.
Definition: JetToolRunner.h:27
JetToolRunner::JetToolRunner
JetToolRunner(const std::string &myname)
Definition: JetToolRunner.cxx:18
JetToolRunner::initialize
StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: JetToolRunner.cxx:24
ToolHandleArray.h
IJetExecuteTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JetToolRunner::m_evstools
ToolHandleArray< IEventShapeTool > m_evstools
Definition: JetToolRunner.h:49
IEventShapeTool.h
JetToolRunner::print
void print() const
Print the state of the tool.
Definition: JetToolRunner.cxx:96
JetToolRunner::m_exetools
ToolHandleArray< IJetExecuteTool > m_exetools
Definition: JetToolRunner.h:50
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
AsgTool.h
JetToolRunner::execute
int execute() const
Method to be called for each event.
Definition: JetToolRunner.cxx:61