ATLAS Offline Software
GlobalCellTowerAlgTool.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_GLOBALCELLTOWERALGTOOL_H
6 #define GLOBALSIM_GLOBALCELLTOWERALGTOOL_H
7 
8 /*
9  This algorithm simulates the cell towers for the Global Trigger. Input is taken only from LAr cells contained in the
10  GlobalLArCellContainer. Tile cells are not included for now. Cells are placed in towers based on their eta and phi
11  positions and written out as a GenericTOB.
12 */
13 
15 #include "GaudiKernel/ToolHandle.h"
16 
17 #include "../IGlobalSimAlgTool.h"
18 #include "../IO/CommonTOB.h"
19 #include "../IO/ICommonTOB.h"
20 #include "GlobalLArCellContainer.h"
21 #include <bitset>
22 #include <string>
23 #include <cassert>
24 
25 namespace GlobalSim {
26 
27  class GlobalLArCell;
28 
29 
30  class GlobalCellTowerAlgTool: public extends<AthAlgTool, IGlobalSimAlgTool> {
31 
32  public:
33 
35  GlobalCellTowerAlgTool(const std::string& type, const std::string& name, const IInterface* parent);
36 
38  ~GlobalCellTowerAlgTool() override = default;
39 
41  virtual StatusCode initialize() override;
42 
44  virtual StatusCode run(const EventContext& ctx) const override;
45 
47  virtual std::string toString() const override;
48 
49  private:
50 
52  SG::ReadHandleKey<GlobalSim::GlobalLArCellContainer> m_gblLArCellContainerKey {this, "GlobalLArCellsKey", "GlobalLArCells", "Key for the output container of the LAr cells sent to Global"};
53 
55  SG::WriteHandleKey<IOBitwise::ICommonTOBContainer> m_gblCellTowers {this, "GlobalCellTowersKey", "GlobalCellTowers", "Key to the container of generic TOBS containing the cell towers"};
56 
57  };
58 
59 } // namespace GlobalSim
60 
61 #endif
GlobalSim::GlobalCellTowerAlgTool::m_gblLArCellContainerKey
SG::ReadHandleKey< GlobalSim::GlobalLArCellContainer > m_gblLArCellContainerKey
Key to the GlobalLArCellContainer.
Definition: GlobalCellTowerAlgTool.h:52
GlobalLArCellContainer.h
SG::ReadHandleKey< GlobalSim::GlobalLArCellContainer >
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
GlobalSim
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
Definition: dump.h:8
SG::WriteHandleKey< IOBitwise::ICommonTOBContainer >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
GlobalSim::GlobalCellTowerAlgTool::m_gblCellTowers
SG::WriteHandleKey< IOBitwise::ICommonTOBContainer > m_gblCellTowers
Write key for the output cell towers as a GenericTobContainer.
Definition: GlobalCellTowerAlgTool.h:55
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
GlobalSim::GlobalCellTowerAlgTool::~GlobalCellTowerAlgTool
~GlobalCellTowerAlgTool() override=default
Main destructor (explicitly defaulted)
GlobalSim::GlobalCellTowerAlgTool::run
virtual StatusCode run(const EventContext &ctx) const override
Main functional block running for each event.
Definition: GlobalCellTowerAlgTool.cxx:28
GlobalSim::GlobalCellTowerAlgTool::initialize
virtual StatusCode initialize() override
Initialize function running before first event.
Definition: GlobalCellTowerAlgTool.cxx:18
GlobalSim::GlobalCellTowerAlgTool
Definition: GlobalCellTowerAlgTool.h:30
GlobalSim::GlobalCellTowerAlgTool::toString
virtual std::string toString() const override
Overriding toString function from base class.
Definition: GlobalCellTowerAlgTool.cxx:80
GlobalSim::GlobalCellTowerAlgTool::GlobalCellTowerAlgTool
GlobalCellTowerAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Main constructor.
Definition: GlobalCellTowerAlgTool.cxx:12