ATLAS Offline Software
GlobalSimulationAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef GLOBALSIM_GLOBALSIMULATIONALG_H
6 #define GLOBALSIM_GLOBALSIMULATIONALG_H
7 
8 /*
9  * GlobalL1TopoSimulation runs L1Topo Algorithms.
10  * It is heavily influenced by the L1TopoSimmulation packages.
11  *
12  * This Athena Algorithm is configuired with an ordered Sequence of AlgTools.
13  * which represent the nodes of a call graph of GlobalSim Algorithms.
14  *
15  * It is the responsaility of the python configuration code to order the
16  * AlgTools such that the ToolArray can be traversed sequentially.
17  *
18  */
19 
21 
22 #include "IGlobalSimAlgTool.h"
23 #include "ITIPwriterAlgTool.h"
24 #include "../IO/TipWord_clid.h"
25 
26 namespace GlobalSim {
27 
29  public:
30 
31  GlobalSimulationAlg(const std::string& name, ISvcLocator *pSvcLocator);
32 
33  virtual StatusCode initialize () override;
34  virtual StatusCode execute (const EventContext& ctx) const override;
35 
36  private:
37 
39  this,
40  "tipWord",
41  "GlobalSimTIP",
42  "Key to ewrite out TIP bitset"};
43 
44 
45  Gaudi::Property<bool>
46  m_useTestInputEvent {this, "useTestInputEvent", {false},
47  "use a test input event"};
48 
49  ToolHandleArray<IGlobalSimAlgTool> m_algTools{
50  this,
51  "globalsim_algs",
52  {},
53  "ordered sequence of GlobalSim AlgTools"};
54 
55  ToolHandleArray<ITIPwriterAlgTool> m_TIPwriters{
56  this,
57  "TIPwriters",
58  {},
59  "sequence of TIP writer AlgTools"};
60 
61  Gaudi::Property<bool>
62  m_enableDumps {this, "enableDumps", {false},
63  "flag to control writing debug files"};
64 
65  };
66 
67 }
68 #endif
GlobalSim::GlobalSimulationAlg::m_useTestInputEvent
Gaudi::Property< bool > m_useTestInputEvent
Definition: GlobalSimulationAlg.h:46
GlobalSim::GlobalSimulationAlg::GlobalSimulationAlg
GlobalSimulationAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: GlobalSimulationAlg.cxx:12
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
GlobalSim::GlobalSimulationAlg::m_algTools
ToolHandleArray< IGlobalSimAlgTool > m_algTools
Definition: GlobalSimulationAlg.h:49
GlobalSim
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
Definition: CommonSelector.cxx:8
SG::WriteHandleKey< TIPword >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
GlobalSim::GlobalSimulationAlg::m_enableDumps
Gaudi::Property< bool > m_enableDumps
Definition: GlobalSimulationAlg.h:62
GlobalSim::GlobalSimulationAlg::m_tipWordKey
SG::WriteHandleKey< TIPword > m_tipWordKey
Definition: GlobalSimulationAlg.h:38
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
ITIPwriterAlgTool.h
GlobalSim::GlobalSimulationAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: GlobalSimulationAlg.cxx:47
GlobalSim::GlobalSimulationAlg::m_TIPwriters
ToolHandleArray< ITIPwriterAlgTool > m_TIPwriters
Definition: GlobalSimulationAlg.h:55
GlobalSim::GlobalSimulationAlg
Definition: GlobalSimulationAlg.h:28
IGlobalSimAlgTool.h
GlobalSim::GlobalSimulationAlg::initialize
virtual StatusCode initialize() override
Definition: GlobalSimulationAlg.cxx:17