25 edm::LogInfo(
"TrackingActionExecutor") <<
" Creating TrackingActionExecutor " <<
"\n" ;
34 edm::LogInfo(
"TrackingActionExecutor") <<
" Deleting TrackingActionExecutor " <<
"\n" ;
79 std::ofstream report_file;
81 report_file <<
" Nothing to report!!" << std::endl;
96 std::map<std::string, std::vector<std::string> > layout_map;
100 std::ostringstream shift_summary;
107 shift_summary <<
" Report Summary Content :" << std::endl;
108 shift_summary <<
" =========================" << std::endl;
111 shift_summary << std::endl;
114 std::ofstream report_file;
115 report_file.open(
"tracking_shift_report.txt",
std::ios::out);
116 report_file << shift_summary.str() << std::endl;
129 str_val <<
" " << name <<
" : ";
133 float fvalue = atof(value.c_str());
134 if (fvalue == -1.0) str_val <<
" Dummy Value "<<std::endl;
135 else str_val << fvalue << std::endl;
143 str_val << std::endl;
144 for (
std::map<
std::string, std::vector< std::string > >::iterator it = layout_map.begin() ; it != layout_map.end(); it++) {
146 if (set_name.find(
"Summary") != std::string::npos)
continue;
149 str_val <<
" " << set_name <<
" : " << std::endl;
150 str_val <<
" ===================================="<< std::endl;
152 str_val << std::setprecision(2);
153 str_val << setiosflags(std::ios::fixed);
154 for (std::vector<std::string>::iterator im = it->second.begin();
155 im != it->second.end(); im++) {
157 if (path_name.size() == 0)
continue;
159 std::ostringstream entry_str, mean_str, rms_str;
160 entry_str << std::setprecision(2);
161 entry_str << setiosflags(std::ios::fixed);
162 mean_str << std::setprecision(2);
163 mean_str << setiosflags(std::ios::fixed);
164 rms_str << std::setprecision(2);
165 rms_str << setiosflags(std::ios::fixed);
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 "entries",entry_str.str(),
"mean",mean_str.str(),
"rms",rms_str.str());
172 if (me) str_val <<
" "<< me->
getName() <<
" : entries = "<< std::setw(7)
174 <<
" : rms = "<< me->
getRMS()<< std::endl;
176 str_val << std::endl;
const std::string & getName(void) const
get name of ME
void createChildElement(std::string tag, std::string name)
void fillDummyGlobalStatus()
static void getMEValue(MonitorElement *me, std::string &val)
void fillGlobalStatus(DQMStore *dqm_store)
void getDocument(std::string configFile, bool UseDB=false)
Methor that parses the xml file configFile.
void createLSStatus(DQMStore *dqm_store)
void bookLSStatus(DQMStore *dqm_store)
void createShiftReport(DQMStore *dqm_store)
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 createElement(std::string tag)
TrackingActionExecutor(edm::ParameterSet const &ps)
bool init(std::string main)
Write XML file.
void createDummyShiftReport()
void printShiftHistoParameters(DQMStore *dqm_store, std::map< std::string, std::vector< std::string > > &layout_map, std::ostringstream &str_val)
virtual ~TrackingActionExecutor()
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
void bookGlobalStatus(DQMStore *dqm_store)
void fillStatusAtLumi(DQMStore *dqm_store)
void createGlobalStatus(DQMStore *dqm_store)
void fillGlobalStatus(DQMStore *dqm_store)
void fillLSStatus(DQMStore *dqm_store)
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 printReportSummary(MonitorElement *me, std::ostringstream &str_val, std::string name)
bool getAllLayouts(std::map< std::string, std::vector< std::string > > &me_names)
void fillDummyGlobalStatus()