CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
SiPixelConfigParser.cc File Reference
#include "DQM/SiPixelMonitorClient/interface/ANSIColors.h"
#include "DQM/SiPixelMonitorClient/interface/SiPixelConfigParser.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iostream>

Go to the source code of this file.

Functions

static bool readMEListHelper (boost::property_tree::ptree &config, string const &tagname, vector< string > &me_names)
 

Function Documentation

static bool readMEListHelper ( boost::property_tree::ptree &  config,
string const &  tagname,
vector< string > &  me_names 
)
static

Definition at line 28 of file SiPixelConfigParser.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by SiPixelConfigParser::getMENamesForBarrelSummary(), SiPixelConfigParser::getMENamesForEndcapSummary(), SiPixelConfigParser::getMENamesForFEDErrorSummary(), SiPixelConfigParser::getMENamesForGrandBarrelSummary(), SiPixelConfigParser::getMENamesForGrandEndcapSummary(), SiPixelConfigParser::getMENamesForTrackerMap(), and SiPixelConfigParser::getMENamesForTree().

28  {
29  for (auto &kv : config) {
30  if (kv.first == tagname) {
31  for (auto &mekv : kv.second) {
32  if (mekv.first == "MonElement") {
33  me_names.push_back(mekv.second.get<std::string>("<xmlattr>.name"));
34  }
35  }
36  return true;
37  }
38  }
39  return false;
40 }
tuple config
parse the configuration file