25 m_RPCread.insert(RPClink::value_type(i, rpc));
37 for (
const auto& it :
m_RPCread) {
max = std::max(it.second->phi_strips(),
max); }
44 for (
const auto& it :
m_RPCread) {
max = std::max(
max, it.second->eta_strips()); }
49 RPClink::const_iterator rpcs =
m_RPCread.begin();
51 if (!ord)
return (*rpcs).second;
70 if (prev && !(
start() == prev->
stop() + 1)) {
88 for (
int i = 0; i < ch; ++i) {
91 <<
error(
"==> No readout coverage for the full set of even PHI strip!");
96 <<
error(
"==> No readout coverage for the full set of odd PHI strip!");
101 <<
error(
"==> Pivot plane even PHI strips must be read only once!");
106 <<
error(
"==> Pivot plane odd PHI strips must be read only once!");
111 error(
"==> Confirm plane even PHI strips can be read only 3 times!");
116 error(
"==> Confirm plane odd PHI strips can be read only 3 times");
125 stream <<
" wired OR n. " << std::setw(2) <<
number();
126 stream <<
" (stat " <<
station() <<
")";
127 stream <<
" connects RPC chamber n. " << std::setw(2) <<
start();
128 stream <<
" to RPC chamber n. " << std::setw(2) <<
stop() << std::endl;
131 stream <<
" It reads " <<
RPCacquired() <<
" RPC phi pannel:" << std::endl;
132 RPClink::const_iterator rpc =
m_RPCread.begin();
134 stream << *(*rpc).second;
138 stream <<
" It gives input to " <<
m_readoutCMAs.size() <<
" Phi CMA:" << std::endl;
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;
165 std::ostringstream disp;
167 <<
" " <<
msg <<
" between " <<
name() <<
" n. " <<
number() <<
" and " << wor->
name() <<
" n. " << wor->
number() << std::endl
173 std::ostringstream disp;
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
const std::string & name() const
std::string no_connection_error(const std::string &, int) const
std::string error_header() const
CablingObject(const cablingParameters &, const std::string &)
void add_wor(const WiredOR *)
std::vector< int > ReadoutCh
void add_even_read_mul(ReadoutCh &)
const ReadoutCh & even_read_mul() const
std::string error(const std::string &)
const ReadoutCh & odd_read_mul() const
WiredOR(const parseParams &)
const RPClink & RPCread() const
ReadoutCh m_even_read_mul
std::string two_obj_error_message(const std::string &, WiredOR *)
std::map< int, const RPCchamber *, std::less< int > > RPClink
const CMAlist & readoutCMAs() const
const RPCchamber * connected_rpc(int) const
bool setup(SectorLogicSetup &)
std::list< const CMAparameters * > CMAlist
int give_max_eta_strips() const
bool connect(SectorLogicSetup &)
void Print(std::ostream &, bool) const
void add_cma(const CMAparameters *)
int give_max_phi_strips() const
void add_odd_read_mul(ReadoutCh &)