#include <MuctpiXMLParser.h>
Definition at line 33 of file MuctpiXMLParser.h.
◆ MuctpiXMLParser()
| MuctpiXMLParser::MuctpiXMLParser |
( |
| ) |
|
Definition at line 29 of file MuctpiXMLParser.cxx.
29 :
30 TrigConf::TrigConfMessaging("MuctpiXMLParser")
31{}
◆ ~MuctpiXMLParser()
| virtual MuctpiXMLParser::~MuctpiXMLParser |
( |
| ) |
|
|
overridevirtualdefault |
◆ getMuCTPiGeometry()
◆ getName()
| const std::string & TrigConf::TrigConfMessaging::getName |
( |
| ) |
const |
|
inlineinherited |
◆ msg() [1/2]
| MsgStreamTC & TrigConf::TrigConfMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 86 of file TrigConfMessaging.h.
87 {
89 if (!ms) {
92 }
94 }
boost::thread_specific_ptr< MsgStreamTC > m_msg_tls
MsgStreamTC instance (a std::cout like with print-out levels)
◆ msg() [2/2]
| MsgStreamTC & TrigConf::TrigConfMessaging::msg |
( |
const MSGTC::Level | lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 96 of file TrigConfMessaging.h.
97 {
99 }
MsgStreamTC & msg() const
The standard message stream.
◆ msgLvl()
| bool TrigConf::TrigConfMessaging::msgLvl |
( |
const MSGTC::Level | lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
| lvl | The message level to test against |
- Returns
- boolean Indicting if messages at given level will be printed
- Return values
-
| true | Messages at level "lvl" will be printed |
Definition at line 75 of file TrigConfMessaging.h.
76 {
79 return true;
80 }
81 else {
82 return false;
83 }
84 }
◆ parseConfiguration()
| void MuctpiXMLParser::parseConfiguration |
( |
| ) |
|
Definition at line 55 of file MuctpiXMLParser.cxx.
56{
57
58
59 for(
const boost::property_tree::ptree::value_type &
x:
m_muctpiPT) {
60
61 string menuElementName =
x.first;
62 if (menuElementName=="<xmlattr>" || menuElementName=="<xmlcomment>") continue;
63 ptree menuElement =
x.second;
64
65
66 if( menuElementName=="MIOCT" ) {
67
68 MioctGeometry octant;
71
72 } else if( menuElementName=="PtEncoding" ) {
73
74 L1MuonPtEncoding ptEncoding;
77
78 } else {
79
80 }
81 }
82
83
85
86
87
88}
boost::property_tree::ptree ptree
boost::property_tree::ptree m_muctpiPT
void setOctant(boost::property_tree::ptree menuElement, MioctGeometry &octant)
void setPtEncoding(boost::property_tree::ptree menuElement, L1MuonPtEncoding &ptEncoding)
◆ printConfiguration()
| void MuctpiXMLParser::printConfiguration |
( |
| ) |
const |
Definition at line 35 of file MuctpiXMLParser.cxx.
35 {
36 cout << "************************** MuctpiXMLParser **********************" << endl;
38 cout << "*****************************************************************" << endl;
39}
◆ readConfiguration()
| void MuctpiXMLParser::readConfiguration |
( |
const std::string & | inputfile | ) |
|
◆ setConfiguration()
| void MuctpiXMLParser::setConfiguration |
( |
boost::property_tree::ptree | ptree | ) |
|
|
inline |
◆ setOctant()
| void MuctpiXMLParser::setOctant |
( |
boost::property_tree::ptree | menuElement, |
|
|
MioctGeometry & | octant ) |
|
private |
Definition at line 111 of file MuctpiXMLParser.cxx.
112{
115
116
117
118 for(
const boost::property_tree::ptree::value_type &
x:menuElement ) {
119
120 string menuElementNameO =
x.first;
121 if (menuElementNameO=="<xmlattr>" || menuElementNameO=="<xmlcomment>") continue;
122 ptree menuElementO =
x.second;
123
124
125 if( menuElementNameO== "Sector" ){
126 MioctSectorGeometry sector;
129 }
130
131 else if( menuElementNameO == "Decode" ){
132 for(
const boost::property_tree::ptree::value_type &
y: menuElementO) {
133 string menuElementName1 =
y.first;
134 if (menuElementName1=="<xmlattr>" || menuElementName1=="<xmlcomment>") continue;
135 ptree menuElement1 =
y.second;
136 MioctTopoCellGeometry tcell;
139 }
140 }
141 }
142}
void addSector(const MioctSectorGeometry §or)
void addTopoCell(const MioctTopoCellGeometry &topocell)
void setMioctId(unsigned int id)
void setSector(boost::property_tree::ptree menuElement, MioctSectorGeometry §or)
void setTopoCell(boost::property_tree::ptree menuElement, MioctTopoCellGeometry &topocell)
MuctpiXMLHelper m_xmlHelper
◆ setPtEncoding()
| void MuctpiXMLParser::setPtEncoding |
( |
boost::property_tree::ptree | menuElement, |
|
|
L1MuonPtEncoding & | ptEncoding ) |
|
private |
Definition at line 91 of file MuctpiXMLParser.cxx.
92{
93 for(
const auto &
x : menuElement ) {
94 if(
x.first ==
"PtCodeElement" ) {
95 unsigned int idxP1 =
m_xmlHelper.getUIntAttribute(
x.second,
"pt");
96 if (idxP1 == 0 ){
98 continue;
99 }
100 unsigned int idx = idxP1 - 1;
101 unsigned int ptCode =
m_xmlHelper.getUIntAttribute(
x.second,
"code");
102 unsigned int thresholdValue =
m_xmlHelper.getUIntAttribute(
x.second,
"value");
103
104
106 }
107 }
108}
#define TRG_MSG_WARNING(x)
void setCodingInfo(unsigned int idx, unsigned int ptCode, unsigned int thresholdValue)
◆ setROI()
| void MuctpiXMLParser::setROI |
( |
boost::property_tree::ptree | menuElement, |
|
|
MioctROIGeometry & | roi ) |
|
private |
Definition at line 167 of file MuctpiXMLParser.cxx.
168{
170 std::stringstream
ss;
ss << std::hex ;
171
179
182 data.setEtacode(
x );
186 data.setPhicode(
x );
187
188}
char data[hepevt_bytes_allocation_ATLAS]
◆ setSector()
| void MuctpiXMLParser::setSector |
( |
boost::property_tree::ptree | menuElement, |
|
|
MioctSectorGeometry & | sector ) |
|
private |
Definition at line 145 of file MuctpiXMLParser.cxx.
146{
149
150
151 for(
const boost::property_tree::ptree::value_type &
x:menuElement ) {
152
153 string menuElementNameO =
x.first;
154 if (menuElementNameO=="<xmlattr>" || menuElementNameO=="<xmlcomment>") continue;
155 ptree menuElementO =
x.second;
156
157
158 if( menuElementNameO== "ROI" ){
159
160 MioctROIGeometry roi;
161 setROI(menuElementO, roi);
163 }
164 }
165}
void setConnector(unsigned int id)
void setName(const std::string &name)
void addROI(const MioctROIGeometry &roi)
void setROI(boost::property_tree::ptree menuElement, MioctROIGeometry &roi)
◆ setTopoCell()
| void MuctpiXMLParser::setTopoCell |
( |
boost::property_tree::ptree | menuElement, |
|
|
MioctTopoCellGeometry & | topocell ) |
|
private |
◆ setVerbosity()
| void MuctpiXMLParser::setVerbosity |
( |
int | v | ) |
|
|
inline |
◆ m_msg_tls
| boost::thread_specific_ptr<MsgStreamTC> TrigConf::TrigConfMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStreamTC instance (a std::cout like with print-out levels)
Definition at line 71 of file TrigConfMessaging.h.
◆ m_muctpi
◆ m_muctpiPT
| boost::property_tree::ptree MuctpiXMLParser::m_muctpiPT |
|
private |
◆ m_name
| std::string TrigConf::TrigConfMessaging::m_name |
|
privateinherited |
◆ m_verbosity
| int MuctpiXMLParser::m_verbosity {0} |
|
private |
◆ m_xmlHelper
The documentation for this class was generated from the following files: