24 offlineXMLfile_(offlineXMLfile),
25 Tier0Flag_(Tier0Flag) {
60 <<
"[SiPixelWebInterface::handleEDARequest]"
66 if (requestID ==
"IsReady") {
69 }
else if (requestID ==
"CheckQTResults") {
71 }
else if (requestID ==
"updateIMGCPlots") {
80 out->getHTTPResponseHeader().addHeader(
"Content-Type",
"text/html");
81 out->getHTTPResponseHeader().addHeader(
"Pragma",
"no-cache");
82 out->getHTTPResponseHeader().addHeader(
"Cache-Control",
"no-store, no-cache, must-revalidate,max-age=0");
83 out->getHTTPResponseHeader().addHeader(
"Expires",
"Mon, 26 Jul 1997 05:00:00 GMT");
89 *out << MEFolder <<
" " ;
91 for(vector<std::string>::iterator it=meList.begin(); it!=meList.end(); it++)
96 }
else if (requestID ==
"getIMGCPlot") {
99 }
else if (requestID ==
"SetupQTest") {
102 }
else if (requestID ==
"CreateSummary") {
105 }
else if (requestID ==
"CreateTkMap") {
106 std::string
name =
"TkMap";
109 else comment =
"Failed";
112 }
else if (requestID ==
"SingleModuleHistoList") {
115 }
else if (requestID ==
"ModuleHistoList") {
120 }
else if (requestID ==
"SummaryHistoList") {
124 }
else if (requestID ==
"AlarmList") {
128 }
else if (requestID ==
"ReadQTestStatus") {
133 }
else if (requestID ==
"PlotAsModule") {
137 }
else if (requestID ==
"PlotHistogramFromPath") {
144 }
else if (requestID ==
"PlotTkMapHistogram") {
172 }
else if (requestID ==
"GetMEList") {
176 }
else if (requestID ==
"GetTkMap") {
179 ifstream fin(
"dqmtmapviewer.xhtml");
181 std::ostringstream html_out;
183 std::cerr <<
"Input File: dqmtmapviewer.xhtml "<<
" could not be opened!" << std::endl;
186 while (fin.getline(buf,
BUF_SIZE,
'\n')) {
187 html_out << buf << std::endl;
191 out->getHTTPResponseHeader().addHeader(
"Content-type",
"application/xhtml+xml");
192 *out << html_out.str();
193 }
else if (requestID ==
"periodicTrackerMapUpdate") {
197 }
else if (requestID ==
"globalQFlag") {
201 }
else if (requestID ==
"dumpModIds") {
320 const std::string&
name,
322 out->getHTTPResponseHeader().addHeader(
"Content-Type",
"text/xml");
323 *out <<
"<?xml version=\"1.0\" ?>" << std::endl;
324 *out <<
"<TkMap>" << endl;
325 *out <<
" <Response>" << comment <<
"</Response>" << endl;
326 *out <<
"</TkMap>" << endl;
361 if(tkmap_freq!=-1 && summary_freq!=-1) success=
true;
371 std::multimap<std::string, std::string>::iterator it;
372 it = mymap.find(key);
373 if (it != mymap.end())
bool readConfiguration(int &tkmap_freq, int &summary_freq)
void cd(void)
go to top directory (ie. root)
void periodicTkMapUpdate(xgi::Output *out)
SiPixelActionExecutor * actionExecutor_
void createTkMap(DQMStore *bei, std::string mEName, std::string theTKType)
bool readConfiguration(int &tkmap_freq, int &sum_barrel_freq, int &sum_endcap_freq, int &sum_grandbarrel_freq, int &sum_grandendcap_freq, int &message_limit, int &source_type, int &calib_type)
SiPixelInformationExtractor * infoExtractor_
std::vector< std::string > tkMapOptions_
void setupQTests(DQMStore *bei)
std::multimap< std::string, std::string > requestMap_
void createOccupancy(DQMStore *bei)
void read_form(std::multimap< std::string, std::string > &form_info)
void setActionFlag(SiPixelActionType flag)
void handleEDARequest(xgi::Input *in, xgi::Output *out, int niter)
std::string get_from_multimap(std::multimap< std::string, std::string > &mymap, std::string key)
std::vector< std::string > getMEs(void) const
get list of (non-dir) MEs of current directory
void checkQTestResults(DQMStore *bei)
SiPixelActionType theActionFlag
void returnReplyXml(xgi::Output *out, const std::string &name, const std::string &comment)
void createSummary(DQMStore *bei)
SiPixelWebInterface(DQMStore *bei, bool offlineXMLfile, bool Tier0Flag)