#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
44 else
46
49 float str = (
float)strips / (
float)connectors;
51
52 std::ostringstream disp;
53
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)
60 return false;
61 }
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 "
67 << "multiple of 2 "
68 <<
" (eta_strips " <<
params.etaStrips <<
", eta_conn " <<
params.etaConnectors <<
")";
69 return false;
70 }
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;
76 return false;
77 }
78 return true;
79}
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
◆ confirm_ijk()
Definition at line 81 of file RPCchamberdata.cxx.
81 {
84
85 std::ostringstream disp;
86
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(' ');
93 return false;
94 }
95
96 return true;
97}
◆ get_data()
Definition at line 99 of file RPCchamberdata.cxx.
99 {
107 }
108
110}
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 112 of file RPCchamberdata.cxx.
112 {
113 if (!
m_rpc.empty()) {
114 std::unique_ptr<RPCchamber> cham = std::make_unique<RPCchamber>(
m_rpc.front());
116 return cham;
117 }
118 return nullptr;
119}
◆ 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 121 of file RPCchamberdata.cxx.
121 {
122
123
125 stream <<
" RPC chambers:" << std::endl;
126 std::list<RPCchamber>::const_iterator
it;
127 for (it =
m_rpc.begin(); it !=
m_rpc.end(); ++it) stream << ShowRequest<RPCchamber>(*it, detail);
128}
◆ 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: