#include <CMAcablingdata.h>
Definition at line 20 of file CMAcablingdata.h.
◆ ETAlist
◆ CMAcablingdata()
| CMAcablingdata::CMAcablingdata |
( |
DBline & | data, |
|
|
int | type ) |
Definition at line 11 of file CMAcablingdata.cxx.
13 do {
14 CMAparameters::parseParams
parser;
18 }
21}
char data[hepevt_bytes_allocation_ATLAS]
BaseObject(ObjectType, const std::string &)
bool get_data(DBline &, CMAparameters::parseParams ¶ms)
◆ ~CMAcablingdata()
| virtual RPC_CondCabling::CMAcablingdata::~CMAcablingdata |
( |
| ) |
|
|
virtualdefault |
◆ confirm_data()
Definition at line 25 of file CMAcablingdata.cxx.
25 {
26 unsigned int div = 247;
28
29 std::ostringstream disp;
30
31 bool have_low_Pt_input = (
parser.lowPtNumCo != -1);
32 bool have_high_Pt_input = (
parser.highPtNumCo != -1);
33
35 if (
parser.lowPtStartCo >=
parser.lowPtStopCo && have_low_Pt_input) {
37 <<
"CMA cabling error in CONF data for Sector Type " <<
parser.sectorType <<
", " <<
view
38 <<
" CMA at eta = " <<
parser.etaIndex <<
", phi = " <<
parser.phiIndex << std::endl
39 <<
" start position for low Pt cabling (" <<
parser.lowPtStartCo <<
") is greater than stop position ("
41 return false;
42 }
43 if (
parser.lowPtStopCo -
parser.lowPtStartCo + 1 !=
parser.lowPtNumCo && have_low_Pt_input) {
45 <<
"CMA cabling error in CONF data for Sector Type " <<
parser.sectorType <<
", " <<
view
46 <<
" CMA at eta = " <<
parser.etaIndex <<
", phi = " <<
parser.phiIndex << std::endl
47 <<
" cabling inconsistence for low Pt <" <<
parser.lowPtNumCo <<
", " <<
parser.lowPtStartCo <<
" " << (
char)div <<
" "
48 <<
parser.lowPtStopCo <<
">";
49 return false;
50 }
51
52 if (
parser.highPtStartCo >=
parser.highPtStopCo && have_high_Pt_input) {
54 <<
"CMA cabling error in CONF data for Sector Type " <<
parser.sectorType <<
", " <<
view
55 <<
" CMA at eta = " <<
parser.etaIndex <<
", phi = " <<
parser.phiIndex << std::endl
56 <<
" start position for high Pt cabling (" <<
parser.highPtStartCo <<
") is greater than stop position ("
58 return false;
59 }
60 if (
parser.highPtStopCo -
parser.highPtStartCo + 1 !=
parser.highPtNumCo && have_high_Pt_input) {
62 <<
"CMA cabling error in CONF data for Sector Type " <<
parser.sectorType <<
", " <<
view
63 <<
" CMA at eta = " <<
parser.etaIndex <<
", phi = " <<
parser.phiIndex << std::endl
64 <<
" cabling inconsistence for high Pt <" <<
parser.highPtNumCo <<
", " <<
parser.highPtStartCo <<
" " << (
char)div <<
" "
65 <<
parser.highPtStopCo <<
">";
66 return false;
67 }
68 }
69
70 return true;
71}
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
◆ get_data()
Definition at line 73 of file CMAcablingdata.cxx.
73 {
75
76 if (
data(
"eta matrix") >>
"eta" >>
parser.etaIndex >>
"phi" >>
parser.phiIndex >>
":" >>
"low Pt" >>
parser.lowPtNumCo >>
"," >>
77 parser.lowPtStartCo >>
"-" >>
parser.lowPtStopCo >>
"high Pt" >>
parser.highPtNumCo >>
"," >>
parser.highPtStartCo >>
"-" >>
79 if (
parser.lowPtNumCo == 0) {
83 }
84 if (
parser.highPtNumCo == 0) {
88 }
92 }
93
95}
bool confirm_data(ViewType, const CMAparameters::parseParams &parser)
◆ give_eta_cma()
| std::unique_ptr< EtaCMA > CMAcablingdata::give_eta_cma |
( |
| ) |
|
Definition at line 97 of file CMAcablingdata.cxx.
97 {
99 std::unique_ptr<EtaCMA> CMA = std::make_unique<EtaCMA>(
m_etaCMA.front());
101 return CMA;
102 }
103 return nullptr;
104}
◆ name()
| const std::string & BaseObject::name |
( |
| ) |
const |
|
inlineinherited |
◆ Print()
| void CMAcablingdata::Print |
( |
std::ostream & | stream, |
|
|
bool | detail ) const |
|
overridevirtual |
Reimplemented from BaseObject.
Definition at line 106 of file CMAcablingdata.cxx.
106 {
107 stream <<
"CMA cabling data ";
108
110 stream <<
" eta CMAs:" << std::endl;
111 ETAlist::const_iterator ei;
112 for (ei =
m_etaCMA.begin(); ei !=
m_etaCMA.end(); ++ei) stream << ShowRequest<EtaCMA>(*ei, detail);
113}
◆ reset_data()
| void CMAcablingdata::reset_data |
( |
void | | ) |
|
|
private |
◆ tag()
◆ m_covtag
| std::string RPC_CondCabling::CMAcablingdata::m_covtag {} |
|
private |
◆ m_etaCMA
| ETAlist RPC_CondCabling::CMAcablingdata::m_etaCMA |
|
private |
◆ m_fail
| bool RPC_CondCabling::CMAcablingdata::m_fail {true} |
|
private |
◆ m_name
| std::string BaseObject::m_name |
|
privateinherited |
◆ m_tag
◆ m_view
The documentation for this class was generated from the following files: