ATLAS Offline Software
CommonSortSelectAlgTool.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_COMMONSORTSELECTALGTOOL_H
6 #define GLOBALSIM_COMMONSORTSELECTALGTOOL_H
7 
9 
10 #include "../GlobalSimComponents/IGlobalSimAlgTool.h"
11 #include "../IO/ICommonTOB.h"
12 
13 #include "ICommonSelector.h"
14 
15 #include <string>
16 
18  class ICommonTOB;
19 }
20 
21 namespace GlobalSim {
22 
29  class CommonSortSelectAlgTool: public extends<AthAlgTool, IGlobalSimAlgTool> {
30 
31  public:
32  CommonSortSelectAlgTool(const std::string& type,
33  const std::string& name,
34  const IInterface* parent);
35 
36  virtual ~CommonSortSelectAlgTool() override = default;
37 
39  virtual StatusCode initialize() override;
40  virtual StatusCode run(const EventContext&) const override;
41  virtual std::string toString() const override;
42 
43  private:
44 
45  std::unique_ptr<ICommonSelector> m_c_selector{nullptr};
46 
49  this,
50  "inTOBs",
51  "inTOBs",
52  "Key for GlobalSim CommonTOB container"};
53 
54 
57  this,
58  "outTOBs",
59  "outTOBs",
60  "Key for GlobalSim CommonTOB container"};
61 
62 
63  Gaudi::Property<std::string> m_et_low_str {
64  this,
65  "et_low",
66  "0",
67  "et low for window selector"};
68 
69  Gaudi::Property<std::string> m_et_high_str {
70  this,
71  "et_high",
72  "inf",
73  "et high for window selector"};
74 
75  Gaudi::Property<std::string> m_eta_low_str {
76  this,
77  "eta_low",
78  "0",
79  "eta low for window selector"};
80 
81  Gaudi::Property<std::string> m_eta_high_str {
82  this,
83  "eta_high",
84  "inf",
85  "eta high for window selector"};
86 
87  Gaudi::Property<std::string> m_phi_low_str {
88  this,
89  "phi_low",
90  "0",
91  "phi low for window selector"};
92 
93  Gaudi::Property<std::string> m_phi_high_str {
94  this,
95  "phi_high",
96  "inf",
97  "phi high for window selector"};
98 
99 
100  Gaudi::Property<std::size_t> m_maxTOBs {
101  this,
102  "maxTOBs",
103  10,
104  "max number of TOBs in to be passed to client"};
105 
106  Gaudi::Property<std::string> m_menu_name {
107  this,
108  "menu_name",
109  "unknown",
110  "name from json menu file"
111  };
112 
113  Gaudi::Property<bool> m_enableDump {
114  this,
115  "enable_dump",
116  "False",
117  "floag to eanble debug dumps"
118  };
119 
120 
121  void dump() const;
122 
123  };
124 }
125 #endif
GlobalSim::CommonSortSelectAlgTool::m_et_high_str
Gaudi::Property< std::string > m_et_high_str
Definition: CommonSortSelectAlgTool.h:69
GlobalSim::CommonSortSelectAlgTool::m_phi_high_str
Gaudi::Property< std::string > m_phi_high_str
Definition: CommonSortSelectAlgTool.h:93
GlobalSim::CommonSortSelectAlgTool::m_eta_low_str
Gaudi::Property< std::string > m_eta_low_str
Definition: CommonSortSelectAlgTool.h:75
GlobalSim::CommonSortSelectAlgTool::m_enableDump
Gaudi::Property< bool > m_enableDump
Definition: CommonSortSelectAlgTool.h:113
GlobalSim::CommonSortSelectAlgTool::m_phi_low_str
Gaudi::Property< std::string > m_phi_low_str
Definition: CommonSortSelectAlgTool.h:87
GlobalSim::CommonSortSelectAlgTool::dump
void dump() const
GlobalSim::IOBitwise::ICommonTOB
Class to hold common (eta/eta/phi) TOB bits.
Definition: ICommonTOB.h:27
ICommonSelector.h
SG::ReadHandleKey< GlobalSim::IOBitwise::ICommonTOBContainer >
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
GlobalSim::CommonSortSelectAlgTool::run
virtual StatusCode run(const EventContext &) const override
Definition: CommonSortSelectAlgTool.cxx:39
GlobalSim
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
Definition: CommonSelector.cxx:8
SG::WriteHandleKey< GlobalSim::IOBitwise::ICommonTOBContainer >
GlobalSim::CommonSortSelectAlgTool::m_maxTOBs
Gaudi::Property< std::size_t > m_maxTOBs
Definition: CommonSortSelectAlgTool.h:100
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
GlobalSim::CommonSortSelectAlgTool::~CommonSortSelectAlgTool
virtual ~CommonSortSelectAlgTool() override=default
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
GlobalSim::CommonSortSelectAlgTool::toString
virtual std::string toString() const override
Definition: CommonSortSelectAlgTool.cxx:77
GlobalSim::CommonSortSelectAlgTool::m_menu_name
Gaudi::Property< std::string > m_menu_name
Definition: CommonSortSelectAlgTool.h:106
GlobalSim::IOBitwise
Definition: CommonSortSelectAlgTool.h:17
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
GlobalSim::CommonSortSelectAlgTool::m_et_low_str
Gaudi::Property< std::string > m_et_low_str
Definition: CommonSortSelectAlgTool.h:63
GlobalSim::CommonSortSelectAlgTool::m_outTOBContainerKey
SG::WriteHandleKey< GlobalSim::IOBitwise::ICommonTOBContainer > m_outTOBContainerKey
Definition: CommonSortSelectAlgTool.h:56
GlobalSim::CommonSortSelectAlgTool::m_inTOBContainerKey
SG::ReadHandleKey< GlobalSim::IOBitwise::ICommonTOBContainer > m_inTOBContainerKey
Definition: CommonSortSelectAlgTool.h:48
GlobalSim::CommonSortSelectAlgTool::initialize
virtual StatusCode initialize() override
Initialize function running before first event.
Definition: CommonSortSelectAlgTool.cxx:21
GlobalSim::CommonSortSelectAlgTool::m_c_selector
std::unique_ptr< ICommonSelector > m_c_selector
Definition: CommonSortSelectAlgTool.h:45
GlobalSim::CommonSortSelectAlgTool::m_eta_high_str
Gaudi::Property< std::string > m_eta_high_str
Definition: CommonSortSelectAlgTool.h:81
GlobalSim::CommonSortSelectAlgTool::CommonSortSelectAlgTool
CommonSortSelectAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: CommonSortSelectAlgTool.cxx:13
GlobalSim::CommonSortSelectAlgTool
AlgTool to count GlobalSim::IOBitwise::eEmTOB objects.
Definition: CommonSortSelectAlgTool.h:29