22 edm::LogInfo(
"TrackingActionExecutor") <<
" Creating TrackingActionExecutor " <<
"\n" ;
31 edm::LogInfo(
"TrackingActionExecutor") <<
" Deleting TrackingActionExecutor " <<
"\n" ;
76 std::ofstream report_file;
78 report_file <<
" Nothing to report!!" << std::endl;
93 std::map<std::string, std::vector<std::string> > layout_map;
97 std::ostringstream shift_summary;
104 shift_summary <<
" Report Summary Content :" << std::endl;
105 shift_summary <<
" =========================" << std::endl;
108 shift_summary << std::endl;
111 std::ofstream report_file;
112 report_file.open(
"tracking_shift_report.txt",
std::ios::out);
113 report_file << shift_summary.str() << std::endl;
126 str_val <<
" " << name <<
" : ";
130 float fvalue = atof(value.c_str());
131 if (fvalue == -1.0) str_val <<
" Dummy Value "<<std::endl;
132 else str_val << fvalue << std::endl;
140 str_val << std::endl;
141 for (
std::map<
std::string, std::vector< std::string > >::iterator it = layout_map.begin() ; it != layout_map.end(); it++) {
143 if (set_name.find(
"Summary") != std::string::npos)
continue;
146 str_val <<
" " << set_name <<
" : " << std::endl;
147 str_val <<
" ===================================="<< std::endl;
149 str_val << std::setprecision(2);
151 for (std::vector<std::string>::iterator im = it->second.begin();
152 im != it->second.end(); im++) {
154 if (path_name.size() == 0)
continue;
156 std::ostringstream entry_str, mean_str, rms_str;
157 entry_str << std::setprecision(2);
159 mean_str << std::setprecision(2);
161 rms_str << std::setprecision(2);
163 entry_str << std::setw(7) << me->
getEntries();
164 mean_str << std::setw(7) << me->
getMean();
165 rms_str << std::setw(7) << me->
getRMS();
167 "entries",entry_str.str(),
"mean",mean_str.str(),
"rms",rms_str.str());
169 if (me) str_val <<
" "<< me->
getName() <<
" : entries = "<< std::setw(7)
171 <<
" : rms = "<< me->
getRMS()<< std::endl;
173 str_val << std::endl;
const std::string & getName(void) const
get name of ME
void createChildElement(std::string tag, std::string name)
void fillDummyGlobalStatus()
void fillGlobalStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
static void getMEValue(MonitorElement *me, std::string &val)
void getDocument(std::string configFile, bool UseDB=false)
Methor that parses the xml file configFile.
void fillStatusAtLumi(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
MonitorElement * get(const std::string &path)
void createLSStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
double getEntries(void) const
get # of entries
double getMean(int axis=1) const
get mean value of histogram along x, y or z axis (axis=1, 2, 3 respectively)
TrackingQualityChecker * qualityChecker_
void createShiftReport(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
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()
void bookLSStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
void bookGlobalStatus(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
double getRMS(int axis=1) const
get RMS of histogram along x, y or z axis (axis=1, 2, 3 respectively)
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 fillDummyGlobalStatus()