  | 
  
    ATLAS Offline Software
    
   | 
 
 
 
 
Go to the documentation of this file.
   16 #include <boost/property_tree/xml_parser.hpp> 
   26 namespace pt = boost::property_tree;
 
   30   TrigConf::TrigConfMessaging(
"MuctpiXMLParser")
 
   36   cout << 
"************************** MuctpiXMLParser **********************" << endl;
 
   38   cout << 
"*****************************************************************" << endl;
 
   59    for(
const boost::property_tree::ptree::value_type &
x: 
m_muctpiPT) {
 
   61       string menuElementName = 
x.first;
 
   62       if (menuElementName==
"<xmlattr>" || menuElementName==
"<xmlcomment>") 
continue;
 
   63       ptree menuElement = 
x.second;
 
   66       if( menuElementName==
"MIOCT" ) {
 
   72       } 
else if( menuElementName==
"PtEncoding" ) {
 
   93    for(
const auto & 
x : menuElement ) {
 
   94       if( 
x.first == 
"PtCodeElement" ) {
 
  100          unsigned int idx = idxP1 - 1;
 
  118    for(
const boost::property_tree::ptree::value_type &
x:menuElement ) {
 
  120       string menuElementNameO = 
x.first;
 
  121       if (menuElementNameO==
"<xmlattr>" || menuElementNameO==
"<xmlcomment>") 
continue;
 
  122       ptree menuElementO = 
x.second;
 
  125       if( menuElementNameO== 
"Sector" ){
 
  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;
 
  151    for(
const boost::property_tree::ptree::value_type &
x:menuElement ) {
 
  153       string menuElementNameO = 
x.first;
 
  154       if (menuElementNameO==
"<xmlattr>" || menuElementNameO==
"<xmlcomment>") 
continue;
 
  155       ptree menuElementO = 
x.second;
 
  158       if( menuElementNameO== 
"ROI" ){
 
  161          setROI(menuElementO, roi);
 
  170     std::stringstream 
ss; 
ss  << std::hex ;
 
  182     data.setEtacode( 
x );
 
  186     data.setPhicode( 
x );
 
  193    std::stringstream 
ss; 
ss  << std::hex ;
 
  206    data.setEtacode( 
x );
 
  209    data.setPhicode( 
x );
 
  
void addOctant(const MioctGeometry &octant)
 
void addROI(const MioctROIGeometry &roi)
 
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 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)
 
#define TRG_MSG_WARNING(x)
 
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)