ATLAS Offline Software
GlobalL1TopoSimulation.cxx
Go to the documentation of this file.
1 // Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
4 #include "TrigConfData/L1Menu.h"
5 
7 
8 #include <fstream>
9 
10 namespace GlobalSim {
11 
13  ISvcLocator *pSvcLocator):
14  AthReentrantAlgorithm(name, pSvcLocator) {
15  }
16 
18 
19  ATH_MSG_INFO("number of L1TopoAlgTools " << m_topoAlgs.size());
20 
21  if (m_enableDumps) {
22  std::stringstream ss;
23  for (const auto& tool : m_topoAlgs) {
24  ss << tool->toString() << '\n';
25  ss << "=========\n";
26  }
27  std::ofstream out(name() + "_init.log");
28  out << ss.str();
29  out.close();
30  }
31 
32  return StatusCode::SUCCESS;
33  }
34 
35 
36 
37  StatusCode GlobalL1TopoSimulation::execute(const EventContext& ctx) const {
38  ATH_MSG_DEBUG("Executing ...");
39 
40 
41  for (const auto& tool : m_topoAlgs) {
42  CHECK(tool -> run(ctx));
43  }
44 
45  return StatusCode::SUCCESS;
46  }
47 }
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
GlobalSim::GlobalL1TopoSimulation::m_enableDumps
Gaudi::Property< bool > m_enableDumps
Definition: GlobalL1TopoSimulation.h:47
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
GlobalSim::GlobalL1TopoSimulation::initialize
virtual StatusCode initialize() override
Definition: GlobalL1TopoSimulation.cxx:17
GlobalSim
AlgTool to obtain a GlobalSim::cTAUTOBArray This class uses ReadHandls to jFex and eFex Tau Rois If t...
Definition: dump.h:8
GlobalSim::GlobalL1TopoSimulation::GlobalL1TopoSimulation
GlobalL1TopoSimulation(const std::string &name, ISvcLocator *pSvcLocator)
Definition: GlobalL1TopoSimulation.cxx:12
GlobalSim::GlobalL1TopoSimulation::m_topoAlgs
ToolHandleArray< IL1TopoAlgTool > m_topoAlgs
Definition: GlobalL1TopoSimulation.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
GlobalL1TopoSimulation.h
GlobalSim::GlobalL1TopoSimulation::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: GlobalL1TopoSimulation.cxx:37
L1Menu.h
checker_macros.h
Define macros for attributes used to control the static checker.