21 edm::LogInfo(
"TrackingActionExecutor") <<
" Creating TrackingActionExecutor " 31 edm::LogInfo(
"TrackingActionExecutor") <<
" Deleting TrackingActionExecutor " 76 std::ofstream report_file;
78 report_file <<
" Nothing to report!!" << std::endl;
92 std::map<std::string, std::vector<std::string> > layout_map;
96 std::ostringstream shift_summary;
103 shift_summary <<
" Report Summary Content :" << std::endl;
104 shift_summary <<
" =========================" << std::endl;
107 shift_summary << std::endl;
110 std::ofstream report_file;
111 report_file.open(
"tracking_shift_report.txt",
std::ios::out);
112 report_file << shift_summary.str() << std::endl;
123 str_val <<
" " <<
name <<
" : ";
127 float fvalue = atof(
value.c_str());
129 str_val <<
" Dummy Value " << std::endl;
131 str_val << fvalue << std::endl;
139 std::ostringstream& str_val) {
141 str_val << std::endl;
142 for (
std::map<
std::string, std::vector<std::string> >::iterator
it = layout_map.begin();
it != layout_map.end();
145 if (set_name.find(
"Summary") != std::string::npos)
149 str_val <<
" " << set_name <<
" : " << std::endl;
150 str_val <<
" ====================================" << std::endl;
152 str_val << std::setprecision(2);
154 for (std::vector<std::string>::iterator im =
it->second.begin(); im !=
it->second.end(); im++) {
156 if (path_name.empty())
159 std::ostringstream entry_str, mean_str, rms_str;
160 entry_str << std::setprecision(2);
162 mean_str << std::setprecision(2);
164 rms_str << std::setprecision(2);
166 entry_str << std::setw(7) <<
me->getEntries();
167 mean_str << std::setw(7) <<
me->getMean();
168 rms_str << std::setw(7) <<
me->getRMS();
170 "MonitorElement",
me->getName(),
"entries", entry_str.str(),
"mean", mean_str.str(),
"rms", rms_str.str());
173 str_val <<
" " <<
me->getName() <<
" : entries = " << std::setw(7) <<
me->getEntries()
174 <<
" mean = " <<
me->getMean() <<
" : rms = " <<
me->getRMS() << std::endl;
176 str_val << std::endl;
void createChildElement(std::string tag, std::string name)
void fillDummyGlobalStatus()
void fillGlobalStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
void fillStatusAtLumi(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
void createLSStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
TrackingQualityChecker * qualityChecker_
void createShiftReport(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
static void getMEValue(MonitorElement const *me, std::string &val)
void createElement(std::string tag)
TrackingActionExecutor(edm::ParameterSet const &ps)
bool init(std::string main)
Write XML file.
void fillGlobalStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
void createDummyShiftReport()
void printShiftHistoParameters(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, std::map< std::string, std::vector< std::string > > &layout_map, std::ostringstream &str_val)
void fillLSStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
virtual ~TrackingActionExecutor()
Log< level::Info, false > LogInfo
void bookLSStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
virtual MonitorElement * get(std::string const &fullpath) const
void bookGlobalStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
SiStripConfigWriter * configWriter_
void write(std::string fname)
void createGlobalStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
void printReportSummary(MonitorElement *me, std::ostringstream &str_val, std::string name)
bool getAllLayouts(std::map< std::string, std::vector< std::string > > &me_names)
void getDocument(std::string filepath)
void fillDummyGlobalStatus()