ATLAS Offline Software
Loading...
Searching...
No Matches
eEmMultAlgTool.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_EEMMULTALGTOOL_H
6#define GLOBALSIM_EEMMULTALGTOOL_H
7
9
12
13#include "ICommonSelector.h"
14#include "IeEmSelector.h"
15
16#include <string>
17
18namespace GlobalSim::IOBitwise {
19 class ICommonTOB;
20}
21
22namespace GlobalSim {
23
28
29
30 class eEmMultAlgTool: public extends<AthAlgTool, ITIPwriterAlgTool> {
31
32 public:
33 eEmMultAlgTool(const std::string& type,
34 const std::string& name,
35 const IInterface* parent);
36
37 virtual ~eEmMultAlgTool() override = default;
38
40 virtual StatusCode initialize() override;
41
42 virtual StatusCode updateTIP(std::bitset<s_nbits_TIP>&,
43 const EventContext&) const override;
44
45 virtual std::string toString() const override;
46
47 private:
48
49 std::unique_ptr<ICommonSelector> m_c_selector{nullptr};
50 std::unique_ptr<IeEmSelector> m_e_selector{nullptr};
51
54 this,
55 "eEmTOBs",
56 "eEmTOBs",
57 "Key for GlobalSim eEmTOB container"};
58
59 Gaudi::Property<std::string> m_et_low_str {
60 this,
61 "et_low",
62 "0",
63 "et low for window selector"};
64
65 Gaudi::Property<std::string> m_et_high_str {
66 this,
67 "et_high",
68 "inf",
69 "et high for window selector"};
70
71 Gaudi::Property<std::string> m_eta_low_str {
72 this,
73 "eta_low",
74 "0",
75 "eta low for window selector"};
76
77 Gaudi::Property<std::string> m_eta_high_str {
78 this,
79 "eta_high",
80 "inf",
81 "eta high for window selector"};
82
83 Gaudi::Property<std::string> m_phi_low_str {
84 this,
85 "phi_low",
86 "0",
87 "phi low for window selector"};
88
89 Gaudi::Property<std::string> m_phi_high_str {
90 this,
91 "phi_high",
92 "inf",
93 "phi high for window selector"};
94
95 Gaudi::Property<std::string> m_rhad_str {
96 this,
97 "rhad",
98 "0",
99 "rhad cut value"};
100
101 Gaudi::Property<std::string> m_rhad_op {
102 this,
103 "rhad_op",
104 "unknown",
105 "rhad cut operator"};
106
107 Gaudi::Property<std::string> m_reta_str {
108 this,
109 "reta",
110 "0",
111 "reta cut value"};
112
113 Gaudi::Property<std::string> m_reta_op {
114 this,
115 "reta_op",
116 "unknown",
117 "reta cut operator"};
118
119 Gaudi::Property<std::string> m_wstot_str {
120 this,
121 "wstot",
122 "0",
123 "wstot lcut_value"};
124
125 Gaudi::Property<std::string> m_wstot_op {
126 this,
127 "wstot_op",
128 "unknown",
129 "wstot cut_operator"};
130
131 Gaudi::Property<int> m_TIP_position {
132 this,
133 "TIPposition",
134 0,
135 "start position to write into the TIP"};
136
137
138 Gaudi::Property<int> m_n_multbits {
139 this,
140 "n_multbits",
141 3,
142 "number of bits to write into the TIP"};
143
144 Gaudi::Property<std::string> m_menu_name {
145 this,
146 "menu_name",
147 "unknown",
148 "name from json menu file"
149 };
150
151 Gaudi::Property<bool> m_enableDump {
152 this,
153 "enable_dump",
154 false,
155 "flag to enable debug dumps"
156 };
157
158
159 ulong m_maxtob{0};
160
161 void dump() const;
162
163 };
164}
165#endif
Class to hold common (eta/eta/phi) TOB bits.
Definition ICommonTOB.h:27
Gaudi::Property< std::string > m_reta_str
virtual StatusCode updateTIP(std::bitset< s_nbits_TIP > &, const EventContext &) const override
Gaudi::Property< std::string > m_rhad_op
Gaudi::Property< bool > m_enableDump
Gaudi::Property< std::string > m_et_high_str
Gaudi::Property< std::string > m_rhad_str
SG::ReadHandleKey< GlobalSim::IOBitwise::IeEmTOBContainer > m_eEmTOBContainerKey
std::unique_ptr< IeEmSelector > m_e_selector
Gaudi::Property< std::string > m_eta_high_str
Gaudi::Property< std::string > m_wstot_op
eEmMultAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< std::string > m_eta_low_str
Gaudi::Property< std::string > m_et_low_str
Gaudi::Property< std::string > m_phi_low_str
virtual std::string toString() const override
std::unique_ptr< ICommonSelector > m_c_selector
virtual ~eEmMultAlgTool() override=default
virtual StatusCode initialize() override
Initialize function running before first event.
Gaudi::Property< std::string > m_phi_high_str
Gaudi::Property< std::string > m_menu_name
Gaudi::Property< int > m_TIP_position
Gaudi::Property< std::string > m_reta_op
Gaudi::Property< std::string > m_wstot_str
Gaudi::Property< int > m_n_multbits
Property holding a SG store/key/clid from which a ReadHandle is made.
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...