ATLAS Offline Software
Loading...
Searching...
No Matches
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
11#include "../IO/ICommonTOB.h"
12
13#include "ICommonSelector.h"
14
15#include <string>
16
18 class ICommonTOB;
19}
20
21namespace GlobalSim {
22
27
28
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
virtual StatusCode initialize() override
Initialize function running before first event.
Gaudi::Property< std::string > m_phi_low_str
SG::ReadHandleKey< GlobalSim::IOBitwise::ICommonTOBContainer > m_inTOBContainerKey
virtual std::string toString() const override
virtual ~CommonSortSelectAlgTool() override=default
Gaudi::Property< std::string > m_menu_name
Gaudi::Property< std::string > m_eta_high_str
Gaudi::Property< std::string > m_eta_low_str
SG::WriteHandleKey< GlobalSim::IOBitwise::ICommonTOBContainer > m_outTOBContainerKey
Gaudi::Property< std::string > m_et_high_str
std::unique_ptr< ICommonSelector > m_c_selector
Gaudi::Property< std::string > m_et_low_str
Gaudi::Property< std::string > m_phi_high_str
Gaudi::Property< std::size_t > m_maxTOBs
CommonSortSelectAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Class to hold common (eta/eta/phi) TOB bits.
Definition ICommonTOB.h:27
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
Definition run.py:1