|
ATLAS Offline Software
|
Go to the documentation of this file.
19 #include <boost/lexical_cast.hpp>
24 namespace pt = boost::property_tree;
28 TrigConf::TrigConfMessaging(
"MuctpiXMLParser")
34 cout <<
"************************** MuctpiXMLParser **********************" << endl;
36 cout <<
"*****************************************************************" << endl;
57 for(
const boost::property_tree::ptree::value_type &
x:
m_muctpiPT) {
59 string menuElementName =
x.first;
60 if (menuElementName==
"<xmlattr>" || menuElementName==
"<xmlcomment>")
continue;
61 ptree menuElement =
x.second;
64 if( menuElementName==
"MIOCT" ) {
70 }
else if( menuElementName==
"PtEncoding" ) {
92 for(
const auto &
x : menuElement ) {
94 if(
x.first ==
"PtCodeElement" ) {
114 for(
const boost::property_tree::ptree::value_type &
x:menuElement ) {
116 string menuElementNameO =
x.first;
117 if (menuElementNameO==
"<xmlattr>" || menuElementNameO==
"<xmlcomment>")
continue;
118 ptree menuElementO =
x.second;
121 if( menuElementNameO==
"Sector" ){
127 else if( menuElementNameO ==
"Decode" ){
128 for(
const boost::property_tree::ptree::value_type &
y: menuElementO) {
129 string menuElementName1 =
y.first;
130 if (menuElementName1==
"<xmlattr>" || menuElementName1==
"<xmlcomment>")
continue;
131 ptree menuElement1 =
y.second;
147 for(
const boost::property_tree::ptree::value_type &
x:menuElement ) {
149 string menuElementNameO =
x.first;
150 if (menuElementNameO==
"<xmlattr>" || menuElementNameO==
"<xmlcomment>")
continue;
151 ptree menuElementO =
x.second;
154 if( menuElementNameO==
"ROI" ){
157 setROI(menuElementO, roi);
166 std::stringstream
ss;
ss << std::hex ;
178 data.setEtacode(
x );
182 data.setPhicode(
x );
189 std::stringstream
ss;
ss << std::hex ;
202 data.setEtacode(
x );
205 data.setPhicode(
x );
void addOctant(const MioctGeometry &octant)
char data[hepevt_bytes_allocation_ATLAS]
std::string getAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
void setCodingInfo(unsigned int idx, unsigned int ptCode, unsigned int thresholdValue)
void setName(const std::string &name)
unsigned int getUIntAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
void readConfiguration(const std::string &inputfile)
void setPtEncoding(boost::property_tree::ptree menuElement, L1MuonPtEncoding &ptEncoding)
void addTopoCell(const MioctTopoCellGeometry &topocell)
void setOctant(boost::property_tree::ptree menuElement, MioctGeometry &octant)
Forward iterator to traverse the main components of the trigger configuration.
void addROI(MioctROIGeometry roi)
void setROI(boost::property_tree::ptree menuElement, MioctROIGeometry &roi)
void addSector(const MioctSectorGeometry §or)
void parseConfiguration()
virtual void print(const std::string &indent="", unsigned int detail=1) const
void setMioctId(unsigned int id)
void setTopoCell(boost::property_tree::ptree menuElement, MioctTopoCellGeometry &topocell)
boost::property_tree::ptree ptree
boost::property_tree::ptree m_muctpiPT
int getIntAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
MuctpiXMLHelper m_xmlHelper
void setSector(boost::property_tree::ptree menuElement, MioctSectorGeometry §or)
void setConnector(unsigned int id)
float getFloatAttribute(const boost::property_tree::ptree &tree, const std::string &attr)
void printConfiguration() const
void setPtEncoding(const L1MuonPtEncoding &ptEncoding)