AlgTool to count GlobalSim::IOBitwise::eEmTOB objects.
More...
#include <eEmMultAlgTool.h>
AlgTool to count GlobalSim::IOBitwise::eEmTOB objects.
Definition at line 26 of file eEmMultAlgTool.h.
◆ eEmMultAlgTool()
| GlobalSim::eEmMultAlgTool::eEmMultAlgTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~eEmMultAlgTool()
| virtual GlobalSim::eEmMultAlgTool::~eEmMultAlgTool |
( |
| ) |
|
|
overridevirtualdefault |
◆ initialize()
| StatusCode GlobalSim::eEmMultAlgTool::initialize |
( |
| ) |
|
|
overridevirtual |
Initialize function running before first event.
Definition at line 21 of file eEmMultAlgTool.cxx.
21 {
22
24
27 return StatusCode::FAILURE;
28 }
29
31
34 return StatusCode::FAILURE;
35 }
36
37
44 );
45
46 try {
53 );
54 } catch (const std::exception& e) {
55
57 return StatusCode::FAILURE;
58 }
59
60
61
64 } else {
65 ulong maxtob = 1;
68 }
69
70 return StatusCode::SUCCESS;
71 }
#define CHECK(...)
Evaluate an expression and check for errors.
◆ toString()
| std::string GlobalSim::eEmMultAlgTool::toString |
( |
| ) |
const |
|
overridevirtual |
Definition at line 132 of file eEmMultAlgTool.cxx.
132 {
133 std::stringstream
ss;
135 << "eEmMultAlgTool read, select, count and report number of related eEmTOBS\n"
139
141 }
◆ updateTIP()
| StatusCode GlobalSim::eEmMultAlgTool::updateTIP |
( |
std::bitset< s_nbits_TIP > & | word, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 74 of file eEmMultAlgTool.cxx.
75 {
76 auto tobs =
78 ctx);
79
80 CHECK(tobs.isValid());
81
82
83
84 ulong tob_count{0};
85 std::vector<bool> tob_pass(tobs->size(), false);
86 for (
uint tob_it = 0;
const GlobalSim::IOBitwise::eEmTOB*
t : *tobs){
88 tob_pass[tob_it] = true;
90 break;
91 }
92 }
93 tob_it++;
94 }
95
96
97
99
100 auto count_bits = std::bitset<s_nbits_TIP>(tob_count);
101
104
106
107 for (;
p0 != mxb; ++
p0, ++
p1) {
108 if (count_bits.test(p0)) {word.set(p1);}
109 }
110
112
113
115 std::stringstream
ss;
116 ss <<
"\nRun " << ctx <<
' ' <<
"TIP:\n" << word <<
'\n';
118 for (const GlobalSim::IOBitwise::eEmTOB* tob : *tobs) {
119 ss << tob->to_string() <<
' ' << std::boolalpha <<
" pass " << tob_pass[
ind++] <<
'\n';
120 }
121 ss <<
"tob count " << tob_count <<
'\n';
122
123 std::ofstream
out(
name() +
".log", std::ios_base::app);
126 }
127
128
129 return StatusCode::SUCCESS;
130 }
◆ m_c_selector
| std::unique_ptr<ICommonSelector> GlobalSim::eEmMultAlgTool::m_c_selector {nullptr} |
|
private |
◆ m_e_selector
| std::unique_ptr<IeEmSelector> GlobalSim::eEmMultAlgTool::m_e_selector {nullptr} |
|
private |
◆ m_eEmTOBContainerKey
Initial value:{
this,
"eEmTOBs",
"eEmTOBs",
"Key for GlobalSim eEmTOB container"}
Definition at line 49 of file eEmMultAlgTool.h.
49 {
50 this,
51 "eEmTOBs",
52 "eEmTOBs",
53 "Key for GlobalSim eEmTOB container"};
◆ m_enableDump
| Gaudi::Property<bool> GlobalSim::eEmMultAlgTool::m_enableDump |
|
private |
Initial value:{
this,
"enable_dump",
false,
"flag to enable debug dumps"
}
Definition at line 148 of file eEmMultAlgTool.h.
148 {
149 this,
150 "enable_dump",
151 false,
152 "flag to enable debug dumps"
153 };
◆ m_et_high_str
| Gaudi::Property<std::string> GlobalSim::eEmMultAlgTool::m_et_high_str |
|
private |
Initial value:{
this,
"et_high",
"inf",
"et high for window selector"}
Definition at line 61 of file eEmMultAlgTool.h.
61 {
62 this,
63 "et_high",
64 "inf",
65 "et high for window selector"};
◆ m_et_low_str
| Gaudi::Property<std::string> GlobalSim::eEmMultAlgTool::m_et_low_str |
|
private |
Initial value:{
this,
"et_low",
"0",
"et low for window selector"}
Definition at line 55 of file eEmMultAlgTool.h.
55 {
56 this,
57 "et_low",
58 "0",
59 "et low for window selector"};
◆ m_eta_high_str
| Gaudi::Property<std::string> GlobalSim::eEmMultAlgTool::m_eta_high_str |
|
private |
Initial value:{
this,
"eta_high",
"inf",
"eta high for window selector"}
Definition at line 73 of file eEmMultAlgTool.h.
73 {
74 this,
75 "eta_high",
76 "inf",
77 "eta high for window selector"};
◆ m_eta_low_str
| Gaudi::Property<std::string> GlobalSim::eEmMultAlgTool::m_eta_low_str |
|
private |
Initial value:{
this,
"eta_low",
"0",
"eta low for window selector"}
Definition at line 67 of file eEmMultAlgTool.h.
67 {
68 this,
69 "eta_low",
70 "0",
71 "eta low for window selector"};
◆ m_maxtob
| ulong GlobalSim::eEmMultAlgTool::m_maxtob {0} |
|
private |
◆ m_menu_name
| Gaudi::Property<std::string> GlobalSim::eEmMultAlgTool::m_menu_name |
|
private |
Initial value:{
this,
"menu_name",
"unknown",
"name from json menu file"
}
Definition at line 141 of file eEmMultAlgTool.h.
141 {
142 this,
143 "menu_name",
144 "unknown",
145 "name from json menu file"
146 };
◆ m_phi_high_str
| Gaudi::Property<std::string> GlobalSim::eEmMultAlgTool::m_phi_high_str |
|
private |
Initial value:{
this,
"phi_high",
"inf",
"phi high for window selector"}
Definition at line 85 of file eEmMultAlgTool.h.
85 {
86 this,
87 "phi_high",
88 "inf",
89 "phi high for window selector"};
◆ m_phi_low_str
| Gaudi::Property<std::string> GlobalSim::eEmMultAlgTool::m_phi_low_str |
|
private |
Initial value:{
this,
"phi_low",
"0",
"phi low for window selector"}
Definition at line 79 of file eEmMultAlgTool.h.
79 {
80 this,
81 "phi_low",
82 "0",
83 "phi low for window selector"};
◆ m_reta_op
| Gaudi::Property<std::string> GlobalSim::eEmMultAlgTool::m_reta_op |
|
private |
Initial value:{
this,
"reta_op",
"unknown",
"reta cut operator"}
Definition at line 109 of file eEmMultAlgTool.h.
109 {
110 this,
111 "reta_op",
112 "unknown",
113 "reta cut operator"};
◆ m_reta_str
| Gaudi::Property<std::string> GlobalSim::eEmMultAlgTool::m_reta_str |
|
private |
Initial value:{
this,
"reta",
"0",
"reta cut value"}
Definition at line 103 of file eEmMultAlgTool.h.
103 {
104 this,
105 "reta",
106 "0",
107 "reta cut value"};
◆ m_rhad_op
| Gaudi::Property<std::string> GlobalSim::eEmMultAlgTool::m_rhad_op |
|
private |
Initial value:{
this,
"rhad_op",
"unknown",
"rhad cut operator"}
Definition at line 97 of file eEmMultAlgTool.h.
97 {
98 this,
99 "rhad_op",
100 "unknown",
101 "rhad cut operator"};
◆ m_rhad_str
| Gaudi::Property<std::string> GlobalSim::eEmMultAlgTool::m_rhad_str |
|
private |
Initial value:{
this,
"rhad",
"0",
"rhad cut value"}
Definition at line 91 of file eEmMultAlgTool.h.
91 {
92 this,
93 "rhad",
94 "0",
95 "rhad cut value"};
◆ m_TIP_position
| Gaudi::Property<int> GlobalSim::eEmMultAlgTool::m_TIP_position |
|
private |
Initial value:{
this,
"TIPposition",
0,
"start position to write into the TIP"}
Definition at line 127 of file eEmMultAlgTool.h.
127 {
128 this,
129 "TIPposition",
130 0,
131 "start position to write into the TIP"};
◆ m_TIP_width
| Gaudi::Property<int> GlobalSim::eEmMultAlgTool::m_TIP_width |
|
private |
Initial value:{
this,
"TIPwidth",
3,
"number of bits to write into the TIP"}
Definition at line 134 of file eEmMultAlgTool.h.
134 {
135 this,
136 "TIPwidth",
137 3,
138 "number of bits to write into the TIP"};
◆ m_wstot_op
| Gaudi::Property<std::string> GlobalSim::eEmMultAlgTool::m_wstot_op |
|
private |
Initial value:{
this,
"wstot_op",
"unknown",
"wstot cut_operator"}
Definition at line 121 of file eEmMultAlgTool.h.
121 {
122 this,
123 "wstot_op",
124 "unknown",
125 "wstot cut_operator"};
◆ m_wstot_str
| Gaudi::Property<std::string> GlobalSim::eEmMultAlgTool::m_wstot_str |
|
private |
Initial value:{
this,
"wstot",
"0",
"wstot lcut_value"}
Definition at line 115 of file eEmMultAlgTool.h.
115 {
116 this,
117 "wstot",
118 "0",
119 "wstot lcut_value"};
The documentation for this class was generated from the following files: