#include <WiredOR.h>
Definition at line 26 of file WiredOR.h.
◆ CMAlist
◆ ReadoutCh
◆ RPClink
◆ WiredOR() [1/2]
Definition at line 14 of file WiredOR.cxx.
CablingObject(const cablingParameters &, const std::string &)
◆ WiredOR() [2/2]
| RPC_CondCabling::WiredOR::WiredOR |
( |
const WiredOR & | | ) |
|
|
default |
◆ ~WiredOR()
◆ add_cma()
◆ add_even_read_mul()
| void WiredOR::add_even_read_mul |
( |
ReadoutCh & | mul | ) |
|
Definition at line 60 of file WiredOR.cxx.
60 {
62}
ReadoutCh m_even_read_mul
int give_max_phi_strips() const
◆ add_odd_read_mul()
| void WiredOR::add_odd_read_mul |
( |
ReadoutCh & | mul | ) |
|
◆ check()
Definition at line 83 of file WiredOR.cxx.
83 {
86
88 for (
int i = 0;
i <
ch; ++
i) {
91 <<
error(
"==> No readout coverage for the full set of even PHI strip!");
92 return false;
93 }
96 <<
error(
"==> No readout coverage for the full set of odd PHI strip!");
97 return false;
98 }
101 <<
error(
"==> Pivot plane even PHI strips must be read only once!");
102 return false;
103 }
106 <<
error(
"==> Pivot plane odd PHI strips must be read only once!");
107 return false;
108 }
111 error(
"==> Confirm plane even PHI strips can be read only 3 times!");
112 return false;
113 }
116 error(
"==> Confirm plane odd PHI strips can be read only 3 times");
117 return false;
118 }
119 }
120
121 return true;
122}
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
std::string error(const std::string &)
int give_max_eta_strips() const
◆ connect()
Definition at line 18 of file WiredOR.cxx.
18 {
19
22
23 if (rpc) {
25 m_RPCread.insert(RPClink::value_type(i, rpc));
26 } else {
28 return false;
29 }
30 }
31 return true;
32}
std::string no_connection_error(const std::string &, int) const
void add_wor(const WiredOR *)
bool setup(SectorLogicSetup &)
◆ connected_rpc()
| const RPCchamber * WiredOR::connected_rpc |
( |
int | ord | ) |
const |
Definition at line 48 of file WiredOR.cxx.
48 {
49 RPClink::const_iterator rpcs =
m_RPCread.begin();
51 if (!ord) return (*rpcs).second;
52 --ord;
53 ++rpcs;
54 }
55 return nullptr;
56}
◆ error()
| std::string WiredOR::error |
( |
const std::string & | msg | ) |
|
|
nodiscard |
Definition at line 172 of file WiredOR.cxx.
172 {
173 std::ostringstream disp;
175 return disp.str();
176}
std::string error_header() const
◆ error_header()
| std::string CablingObject::error_header |
( |
| ) |
const |
|
nodiscardinherited |
Definition at line 22 of file CablingObject.cxx.
22 {
23 std::ostringstream disp;
26 disp << ":" << std::endl;
27 return disp.str();
28}
◆ even_read_mul()
◆ give_max_eta_strips()
| int WiredOR::give_max_eta_strips |
( |
| ) |
const |
◆ give_max_phi_strips()
| int WiredOR::give_max_phi_strips |
( |
| ) |
const |
◆ name()
| const std::string & BaseObject::name |
( |
| ) |
const |
|
inlineinherited |
◆ no_connection_error()
| std::string CablingObject::no_connection_error |
( |
const std::string & | conn_name, |
|
|
int | num ) const |
|
nodiscardinherited |
Definition at line 30 of file CablingObject.cxx.
30 {
31 std::ostringstream disp;
32 disp <<
error_header() <<
name() <<
" n. " <<
number() <<
" is supposed to receive input from " << conn_name <<
" n. " <<
num <<
" which doesn't exist!";
33 return disp.str();
34}
const std::string & name() const
◆ number()
| int CablingObject::number |
( |
| ) |
const |
|
inherited |
◆ odd_read_mul()
◆ operator=()
◆ Print()
| void WiredOR::Print |
( |
std::ostream & | stream, |
|
|
bool | detail ) const |
|
virtual |
Reimplemented from BaseObject.
Definition at line 124 of file WiredOR.cxx.
124 {
127 stream <<
" connects RPC chamber n. " << std::setw(2) <<
start();
128 stream <<
" to RPC chamber n. " << std::setw(2) <<
stop() << std::endl;
129
130 if (detail) {
132 RPClink::const_iterator rpc =
m_RPCread.begin();
135 ++rpc;
136 }
137
142 ++cma;
143 }
145 stream <<
" Phi even sector readout multiplicity:" << std::endl;
146 stream <<
"1 5 10 15 20 25 30 35 40 "
147 << "45 50 55 60 65 70 75" << std::endl;
148 stream <<
"| | | | | | | | | "
149 << "| | | | | | |" << std::endl;
152 stream <<
" Phi odd sector readout multiplicity:" << std::endl;
153 stream <<
"1 5 10 15 20 25 30 35 40 "
154 << "45 50 55 60 65 70 75" << std::endl;
155 stream <<
"| | | | | | | | | "
156 << "| | | | | | |" << std::endl;
159 stream <<
"========================================"
160 << "=======================================" << std::endl;
161 }
162}
◆ readoutCMAs()
◆ RPCacquired()
| int RPC_CondCabling::WiredOR::RPCacquired |
( |
| ) |
const |
|
inline |
◆ RPCread()
◆ sector_type()
| int CablingObject::sector_type |
( |
| ) |
const |
|
inherited |
◆ setup()
Definition at line 68 of file WiredOR.cxx.
68 {
70 if (prev && !(
start() == prev->
stop() + 1)) {
72 return false;
73 }
74
76
80 return true;
81}
WiredOR(const parseParams &)
std::string two_obj_error_message(const std::string &, WiredOR *)
bool connect(SectorLogicSetup &)
◆ side()
◆ start()
| int WiredOR::start |
( |
| ) |
const |
◆ station()
| int CablingObject::station |
( |
| ) |
const |
|
inherited |
◆ stop()
| int WiredOR::stop |
( |
| ) |
const |
◆ tag()
◆ two_obj_error_message()
| std::string WiredOR::two_obj_error_message |
( |
const std::string & | msg, |
|
|
WiredOR * | wor ) |
|
nodiscard |
Definition at line 164 of file WiredOR.cxx.
164 {
165 std::ostringstream disp;
167 <<
" " <<
msg <<
" between " <<
name() <<
" n. " <<
number() <<
" and " << wor->
name() <<
" n. " << wor->
number() << std::endl
168 << *this << *wor;
169 return disp.str();
170}
◆ m_even_read_mul
| ReadoutCh RPC_CondCabling::WiredOR::m_even_read_mul |
|
private |
◆ m_name
| std::string BaseObject::m_name |
|
privateinherited |
◆ m_number
| int CablingObject::m_number {0} |
|
privateinherited |
◆ m_odd_read_mul
| ReadoutCh RPC_CondCabling::WiredOR::m_odd_read_mul |
|
private |
◆ m_params
◆ m_readoutCMAs
| CMAlist RPC_CondCabling::WiredOR::m_readoutCMAs |
|
private |
◆ m_RPCread
| RPClink RPC_CondCabling::WiredOR::m_RPCread |
|
private |
◆ m_sector_type
| int CablingObject::m_sector_type {0} |
|
privateinherited |
◆ m_station
| int CablingObject::m_station {0} |
|
privateinherited |
◆ m_tag
The documentation for this class was generated from the following files: