14 int chams{0}, stripsInEtaCon{0}, stripsInPhiCon{0};
20 if (!(
data(
"made of") >> chams >>
"chamber. Strips in connectors:"))
return;
21 if (!(
data(
"eta") >> stripsInEtaCon))
return;
22 if (!(
data(
"phi") >> stripsInPhiCon))
return;
23 assert(stripsInEtaCon !=0);
29 params.stripsInEtaCon = stripsInEtaCon;
30 params.stripsInPhiCon = stripsInPhiCon;
49 float str = (
float)strips / (
float)connectors;
52 std::ostringstream disp;
54 if (
str > strips_in_conn) {
56 <<
"RPCdata error in configuration for Sector Type " <<
params.sectorType <<
", station " <<
params.station <<
", RPC number "
57 <<
params.number << std::endl
58 <<
" " <<
view <<
" strips into connectors must be less than " << strips_in_conn <<
" (instead are " << std::setprecision(2)
64 <<
"RPCdata error in configuration for Sector Type " <<
params.sectorType <<
", station " <<
params.station <<
", RPC number "
65 <<
params.number << std::endl
66 <<
" " <<
view <<
" strips and/or connectors must be "
68 <<
" (eta_strips " <<
params.etaStrips <<
", eta_conn " <<
params.etaConnectors <<
")";
71 if (strips_in_conn * connectors != strips) {
73 <<
"RPCdata error in configuration for Sector Type " <<
params.sectorType <<
", station " <<
params.station <<
", RPC number "
74 <<
params.number << std::endl
75 <<
" strips into " <<
view <<
" connectors are " << std::setprecision(2) <<
str <<
" instead of " << strips_in_conn;
85 std::ostringstream disp;
87 if (ijk != 1 && ijk != 10) {
89 <<
"RPCdata error in configuration for Sector Type " <<
params.sectorType <<
", station " <<
params.station <<
", RPC number "
90 <<
params.number << std::endl
91 <<
" " <<
view <<
" ijk readout must be 01 or 10; "
92 <<
" on the contrary it is " << std::setw(2) << std::setfill(
'0') << ijk << std::setfill(
' ');
113 if (!
m_rpc.empty()) {
114 std::unique_ptr<RPCchamber> cham = std::make_unique<RPCchamber>(
m_rpc.front());
125 stream <<
" RPC chambers:" << std::endl;
126 std::list<RPCchamber>::const_iterator
it;