12 edm::LogInfo(
"SiPixelConfigParser") <<
" Creating SiPixelConfigParser " 17 boost::property_tree::ptree xml;
18 boost::property_tree::read_xml(
filename, xml);
20 auto it = xml.find(
"MonElementConfiguration");
21 if (it == xml.not_found()) {
23 <<
"SiPixelConfigParser XML needs to have a MonElementConfiguration node.";
25 this->config_ = it->second;
31 for (
auto &mekv : kv.second) {
32 if (mekv.first ==
"MonElement") {
33 me_names.push_back(mekv.second.get<
std::string>(
"<xmlattr>.name"));
46 tkmap_name = config_.get<
std::string>(
"TkMap.<xmlattr>.name",
"");
53 u_freq = config_.get<
int>(
"TkMap.<xmlattr>.update_frequency", -1);
62 structure_name = config_.get<
std::string>(
"SummaryPlot.SubStructureLevel.<xmlattr>.name",
"");
63 auto it = config_.find(
"SummaryPlot");
64 if (it == config_.not_found())
72 structure_name = config_.get<
std::string>(
"SummaryPlot.SubStructureBarrelLevel.<xmlattr>.name",
"");
73 auto it = config_.find(
"SummaryPlot");
74 if (it == config_.not_found())
79 structure_name = config_.get<
std::string>(
"SummaryPlot.SubStructureEndcapLevel.<xmlattr>.name",
"");
80 auto it = config_.find(
"SummaryPlot");
81 if (it == config_.not_found())
87 structure_name = config_.get<
std::string>(
"SummaryPlot.SubStructureNonDetId.<xmlattr>.name",
"");
88 auto it = config_.find(
"SummaryPlot");
89 if (it == config_.not_found())
97 u_freq = config_.get<
int>(
"SummaryPlot.SubStructureBarrelLevel.<xmlattr>.update_frequency", -1);
104 u_freq = config_.get<
int>(
"SummaryPlot.SubStructureEndcapLevel.<xmlattr>.update_frequency", -1);
111 structure_name = config_.get<
std::string>(
"SummaryPlot.SubStructureGrandBarrelLevel.<xmlattr>.name",
"");
112 auto it = config_.find(
"SummaryPlot");
113 if (it == config_.not_found())
115 return readMEListHelper(it->second,
"SubStructureGrandBarrelLevel", me_names);
119 structure_name = config_.get<
std::string>(
"SummaryPlot.SubStructureGrandEndcapLevel.<xmlattr>.name",
"");
120 auto it = config_.find(
"SummaryPlot");
121 if (it == config_.not_found())
123 return readMEListHelper(it->second,
"SubStructureGrandEndcapLevel", me_names);
127 u_freq = config_.get<
int>(
"SummaryPlot.SubStructureGrandBarrelLevel.<xmlattr>.update_frequency", -1);
134 u_freq = config_.get<
int>(
"SummaryPlot.SubStructureGrandEndcapLevel.<xmlattr>.update_frequency", -1);
141 u_freq = config_.get<
int>(
"QTests.QTestMessageLimit.<xmlattr>.value", -1);
148 u_freq = config_.get<
int>(
"Source.SourceType.<xmlattr>.code", -1);
155 u_freq = config_.get<
int>(
"Calib.CalibType.<xmlattr>.value", -1);
static bool readMEListHelper(boost::property_tree::ptree &config, string const &tagname, vector< string > &me_names)
bool getMENamesForTree(std::string &structure_name, std::vector< std::string > &me_names)
bool getMENamesForEndcapSummary(std::string &structure_name, std::vector< std::string > &me_names)
bool getCalibType(int &u_freq)
bool getMENamesForGrandEndcapSummary(std::string &structure_name, std::vector< std::string > &me_names)
bool getFrequencyForGrandBarrelSummary(int &u_freq)
bool getFrequencyForEndcapSummary(int &u_freq)
bool getMENamesForFEDErrorSummary(std::string &structure_name, std::vector< std::string > &me_names)
bool getMENamesForGrandBarrelSummary(std::string &structure_name, std::vector< std::string > &me_names)
bool getFrequencyForBarrelSummary(int &u_freq)
bool getFrequencyForGrandEndcapSummary(int &u_freq)
bool getMENamesForTrackerMap(std::string &tkmap_name, std::vector< std::string > &me_names)
bool getMENamesForBarrelSummary(std::string &structure_name, std::vector< std::string > &me_names)
Log< level::Info, false > LogInfo
bool getMessageLimitForQTests(int &u_freq)
bool getSourceType(int &u_freq)
void getDocument(std::string filename)
bool getFrequencyForTrackerMap(int &u_freq)