#include <RPCchamberdata.h>
Definition at line 18 of file RPCchamberdata.h.
◆ RPClist
◆ RPCchamberdata()
| RPCchamberdata::RPCchamberdata |
( |
DBline & | data, |
|
|
int | type ) |
Definition at line 13 of file RPCchamberdata.cxx.
14 int chams{0}, stripsInEtaCon{0}, stripsInPhiCon{0};
15
17
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);
25 do {
26 RPCchamber::chamberParameters
params{};
29 params.stripsInEtaCon = stripsInEtaCon;
30 params.stripsInPhiCon = stripsInPhiCon;
31
35}
char data[hepevt_bytes_allocation_ATLAS]
BaseObject(ObjectType, const std::string &)
bool get_data(DBline &, RPCchamber::chamberParameters ¶ms)
◆ ~RPCchamberdata()
| virtual RPC_CondCabling::RPCchamberdata::~RPCchamberdata |
( |
| ) |
|
|
virtualdefault |
◆ confirm_connectors()
Definition at line 39 of file RPCchamberdata.cxx.
39 {
41
43 if (
params.stripsInPhiCon == 0)
return false;
45 } else {
46 if (
params.stripsInEtaCon == 0)
return false;
48 }
49
52 float str = (
float)strips / (
float)connectors;
54
55 std::ostringstream disp;
56
57 if (str > strips_in_conn) {
59 <<
"RPCdata error in configuration for Sector Type " <<
params.sectorType <<
", station " <<
params.station <<
", RPC number "
60 <<
params.number << std::endl
61 <<
" " <<
view <<
" strips into connectors must be less than " << strips_in_conn <<
" (instead are " << std::setprecision(2)
63 return false;
64 }
67 <<
"RPCdata error in configuration for Sector Type " <<
params.sectorType <<
", station " <<
params.station <<
", RPC number "
68 <<
params.number << std::endl
69 <<
" " <<
view <<
" strips and/or connectors must be "
70 << "multiple of 2 "
71 <<
" (eta_strips " <<
params.etaStrips <<
", eta_conn " <<
params.etaConnectors <<
")";
72 return false;
73 }
74 if (strips_in_conn * connectors != strips) {
76 <<
"RPCdata error in configuration for Sector Type " <<
params.sectorType <<
", station " <<
params.station <<
", RPC number "
77 <<
params.number << std::endl
78 <<
" strips into " <<
view <<
" connectors are " << std::setprecision(2) <<
str <<
" instead of " << strips_in_conn;
79 return false;
80 }
81 return true;
82}
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
◆ confirm_ijk()
Definition at line 84 of file RPCchamberdata.cxx.
84 {
87
88 std::ostringstream disp;
89
90 if (ijk != 1 && ijk != 10) {
92 <<
"RPCdata error in configuration for Sector Type " <<
params.sectorType <<
", station " <<
params.station <<
", RPC number "
93 <<
params.number << std::endl
94 <<
" " <<
view <<
" ijk readout must be 01 or 10; "
95 << " on the contrary it is " << std::setw(2) << std::setfill('0') << ijk << std::setfill(' ');
96 return false;
97 }
98
99 return true;
100}
◆ get_data()
Definition at line 102 of file RPCchamberdata.cxx.
102 {
110 }
111
113}
bool confirm_connectors(ViewType, RPCchamber::chamberParameters ¶ms)
bool confirm_ijk(ViewType, RPCchamber::chamberParameters ¶ms)
◆ give_rpc()
| std::unique_ptr< RPCchamber > RPCchamberdata::give_rpc |
( |
| ) |
|
Definition at line 115 of file RPCchamberdata.cxx.
115 {
116 if (!
m_rpc.empty()) {
117 std::unique_ptr<RPCchamber> cham = std::make_unique<RPCchamber>(
m_rpc.front());
119 return cham;
120 }
121 return nullptr;
122}
◆ name()
| const std::string & BaseObject::name |
( |
| ) |
const |
|
inlineinherited |
◆ Print()
| void RPCchamberdata::Print |
( |
std::ostream & | stream, |
|
|
bool | detail ) const |
|
overridevirtual |
Reimplemented from BaseObject.
Definition at line 124 of file RPCchamberdata.cxx.
124 {
125
126
128 stream <<
" RPC chambers:" << std::endl;
129 std::list<RPCchamber>::const_iterator
it;
130 for (it =
m_rpc.begin(); it !=
m_rpc.end(); ++it) stream << ShowRequest<RPCchamber>(*it, detail);
131}
◆ reset_data()
| void RPCchamberdata::reset_data |
( |
| ) |
|
|
private |
◆ station()
| int RPC_CondCabling::RPCchamberdata::station |
( |
| ) |
const |
|
inline |
◆ tag()
◆ m_fail
| bool RPC_CondCabling::RPCchamberdata::m_fail {true} |
|
private |
◆ m_name
| std::string BaseObject::m_name |
|
privateinherited |
◆ m_rpc
| RPClist RPC_CondCabling::RPCchamberdata::m_rpc |
|
private |
◆ m_station
| int RPC_CondCabling::RPCchamberdata::m_station {0} |
|
private |
◆ m_tag
The documentation for this class was generated from the following files: