AlgTool to count GlobalSim::IOBitwise::eEmTOB objects.
More...
#include <eEmMultAlgTool.h>
AlgTool to count GlobalSim::IOBitwise::eEmTOB objects.
Definition at line 25 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 |
◆ countPassingTOBs()
| StatusCode GlobalSim::eEmMultAlgTool::countPassingTOBs |
( |
const EventContext & | ctx, |
|
|
unsigned int & | N_pass_tobs ) const |
|
overridevirtual |
Definition at line 54 of file eEmMultAlgTool.cxx.
54 {
55
56 auto tobs =
58 ctx);
59
60 CHECK(tobs.isValid());
61
62
63
64 std::vector<bool> tob_pass(tobs->size(), false);
65 for (
uint tob_it = 0;
const GlobalSim::IOBitwise::eEmTOB*
t : *tobs){
67 tob_pass[tob_it] = true;
68 if (++N_pass_tobs == m_maxtob){
69 break;
70 }
71 }
72 tob_it++;
73 }
74
76
79 ss <<
"\nRun " << ctx <<
'\n';
81 for (const GlobalSim::IOBitwise::eEmTOB* tob : *tobs) {
82 ss << tob->to_string() <<
' ' << std::boolalpha <<
" pass " << tob_pass[
ind++] <<
'\n';
83 }
84 ss <<
"tob count " << N_pass_tobs <<
'\n';
85
86 std::ofstream
out(
name() +
".log", std::ios_base::app);
89 }
90
91 return StatusCode::SUCCESS;
92 }
#define CHECK(...)
Evaluate an expression and check for errors.
◆ initialize()
| StatusCode GlobalSim::eEmMultAlgTool::initialize |
( |
| ) |
|
|
overridevirtual |
Initialize function running before first event.
Definition at line 21 of file eEmMultAlgTool.cxx.
21 {
22
24
26
27
34 );
35
36 try {
43 );
44 } catch (const std::exception& e) {
45
47 return StatusCode::FAILURE;
48 }
49
50 return StatusCode::SUCCESS;
51 }
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ toString()
| std::string GlobalSim::eEmMultAlgTool::toString |
( |
| ) |
const |
|
overridevirtual |
Definition at line 94 of file eEmMultAlgTool.cxx.
94 {
97 << "eEmMultAlgTool read, select, count and report number of related eEmTOBS\n"
100 << m_TIP_position << ' ' << m_TIP_width;
101
103 }
◆ updateTIP()
Definition at line 34 of file TIPWriterAlgTool.cxx.
41 {
42
43 unsigned int N_pass_tobs{0};
46
47 auto count_bits = std::bitset<s_nbits_TIP>(N_pass_tobs);
48 word |= (count_bits << m_TIP_position);
49
51
52 return StatusCode::SUCCESS;
53 }
◆ 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 134 of file eEmMultAlgTool.h.
134 {
135 this,
136 "enable_dump",
137 false,
138 "flag to enable debug dumps"
139 };
◆ 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_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 127 of file eEmMultAlgTool.h.
127 {
128 this,
129 "menu_name",
130 "unknown",
131 "name from json menu file"
132 };
◆ 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_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: