20 edm::LogInfo(
"SiStripActionExecutor") <<
" Creating SiStripActionExecutor "
25 edm::LogInfo(
"SiStripActionExecutor") <<
" Deleting SiStripActionExecutor "
34 "SummaryConfigPath",
"DQM/SiStripMonitorClient/data/sistrip_monitorelement_config.xml");
42 tkMapCreator_ = std::make_unique<SiStripTrackerMapCreator>(eSetup);
81 tkMapCreator_->create(tkmapPset, dqm_store, map_type, eSetup);
91 tkMapCreator_->createForOffline(tkmapPset, dqm_store, map_type, eSetup);
102 tkMapCreator_->createInfoFile(map_names, tkinfo_tree, dqm_store);
127 report_file <<
" Nothing to report!!" << std::endl;
133 std::string const localPath{
"DQM/SiStripMonitorClient/data/sistrip_plot_layout.xml"};
137 std::map<std::string, std::vector<std::string>> layout_map;
141 std::ostringstream shift_summary;
146 shift_summary <<
" Report Summary Content :\n"
147 <<
" =========================" << std::endl;
152 report_path =
"SiStrip/EventInfo/reportSummaryContents/SiStrip_DetFraction_TECB";
153 me = dqm_store.
get(report_path);
156 report_path =
"SiStrip/EventInfo/reportSummaryContents/SiStrip_DetFraction_TECF";
157 me = dqm_store.
get(report_path);
160 report_path =
"SiStrip/EventInfo/reportSummaryContents/SiStrip_DetFraction_TIB";
161 me = dqm_store.
get(report_path);
164 report_path =
"SiStrip/EventInfo/reportSummaryContents/SiStrip_DetFraction_TIDB";
165 me = dqm_store.
get(report_path);
168 report_path =
"SiStrip/EventInfo/reportSummaryContents/SiStrip_DetFraction_TIDF";
169 me = dqm_store.
get(report_path);
172 report_path =
"SiStrip/EventInfo/reportSummaryContents/SiStrip_DetFraction_TOB";
173 me = dqm_store.
get(report_path);
176 shift_summary << std::endl;
188 str_val <<
" " <<
name <<
" : ";
192 float fvalue = atof(
value.c_str());
194 str_val <<
" Dummy Value " << std::endl;
196 str_val << fvalue << std::endl;
201 std::ostringstream& str_val) {
202 str_val << std::endl;
203 for (
auto const& [set_name, path_names] : layout_map) {
204 if (set_name.find(
"Summary") != std::string::npos)
208 str_val <<
" " << set_name <<
" : " << std::endl;
209 str_val <<
" ====================================" << std::endl;
211 str_val << std::setprecision(2);
213 for (
auto const& path_name : path_names) {
214 if (path_name.empty())
217 std::ostringstream entry_str, mean_str, rms_str;
218 entry_str << std::setprecision(2);
220 mean_str << std::setprecision(2);
222 rms_str << std::setprecision(2);
224 entry_str << std::setw(7) <<
me->getEntries();
225 mean_str << std::setw(7) <<
me->getMean();
226 rms_str << std::setw(7) <<
me->getRMS();
228 "MonitorElement",
me->getName(),
"entries", entry_str.str(),
"mean", mean_str.str(),
"rms", rms_str.str());
231 str_val <<
" " <<
me->getName() <<
" : entries = " << std::setw(7) <<
me->getEntries()
232 <<
" mean = " <<
me->getMean() <<
" : rms = " <<
me->getRMS() <<
'\n';
234 str_val << std::endl;
249 std::vector<std::string> subdet_folder;
250 subdet_folder.push_back(
"TIB");
251 subdet_folder.push_back(
"TOB");
252 subdet_folder.push_back(
"TEC/MINUS");
253 subdet_folder.push_back(
"TEC/PLUS");
254 subdet_folder.push_back(
"TID/MINUS");
255 subdet_folder.push_back(
"TID/PLUS");
258 int nDetsWithErrorTotal = 0;
259 for (
auto const&
sd : subdet_folder) {
263 str_val <<
"============\n" <<
sd <<
'\n' <<
"============\n" << std::endl;
266 std::vector<std::string> module_folders;
268 int nDets = module_folders.size();
271 int nDetsWithError = 0;
273 if (dqm_store.
dirExists(bad_module_folder)) {
274 auto const meVec = dqm_store.
getContents(bad_module_folder);
275 for (
auto me : meVec) {
277 uint16_t
flag =
me->getIntValue();
280 str_val <<
me->getName() <<
" flag : " <<
me->getIntValue() <<
" " << message << std::endl;
283 str_val <<
"---------------------------------------------------------------"
285 <<
" Detectors : Total " << nDets <<
" with Error " << nDetsWithError <<
'\n'
286 <<
"---------------------------------------------------------------"
289 nDetsWithErrorTotal += nDetsWithError;
292 str_val <<
"--------------------------------------------------------------------\n"
293 <<
" Total Number of Connected Detectors : " << nDetsTotal <<
'\n'
294 <<
" Total Number of Detectors with Error : " << nDetsWithErrorTotal <<
'\n'
295 <<
"--------------------------------------------------------------------" << std::endl;