24 edm::LogInfo(
"TrackingActionExecutor") <<
" Creating TrackingActionExecutor " <<
"\n" ;
33 edm::LogInfo(
"TrackingActionExecutor") <<
" Deleting TrackingActionExecutor " <<
"\n" ;
78 std::ofstream report_file;
80 report_file <<
" Nothing to report!!" << std::endl;
95 std::map<std::string, std::vector<std::string> > layout_map;
99 std::ostringstream shift_summary;
106 shift_summary <<
" Report Summary Content :" << std::endl;
107 shift_summary <<
" =========================" << std::endl;
110 shift_summary << std::endl;
113 std::ofstream report_file;
114 report_file.open(
"tracking_shift_report.txt",
std::ios::out);
115 report_file << shift_summary.str() << std::endl;
128 str_val <<
" " << name <<
" : ";
132 float fvalue = atof(value.c_str());
133 if (fvalue == -1.0) str_val <<
" Dummy Value "<<std::endl;
134 else str_val << fvalue << std::endl;
142 str_val << std::endl;
143 for (
std::map<
std::string, std::vector< std::string > >::iterator it = layout_map.begin() ; it != layout_map.end(); it++) {
145 if (set_name.find(
"Summary") != std::string::npos)
continue;
148 str_val <<
" " << set_name <<
" : " << std::endl;
149 str_val <<
" ===================================="<< std::endl;
151 str_val << std::setprecision(2);
152 str_val << setiosflags(std::ios::fixed);
153 for (std::vector<std::string>::iterator im = it->second.begin();
154 im != it->second.end(); im++) {
156 if (path_name.size() == 0)
continue;
158 std::ostringstream entry_str, mean_str, rms_str;
159 entry_str << std::setprecision(2);
160 entry_str << setiosflags(std::ios::fixed);
161 mean_str << std::setprecision(2);
162 mean_str << setiosflags(std::ios::fixed);
163 rms_str << std::setprecision(2);
164 rms_str << setiosflags(std::ios::fixed);
165 entry_str << std::setw(7) << me->
getEntries();
166 mean_str << std::setw(7) << me->
getMean();
167 rms_str << std::setw(7) << me->
getRMS();
169 "entries",entry_str.str(),
"mean",mean_str.str(),
"rms",rms_str.str());
171 if (me) str_val <<
" "<< me->
getName() <<
" : entries = "<< std::setw(7)
173 <<
" : rms = "<< me->
getRMS()<< std::endl;
175 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()