42 if (niter < 0)
return;
45 edm::LogInfo (
"SiStripWebInterface") <<
"SiStripWebInterface::handleAnalyserRequest RequestID = " << requestID ;
46 if (requestID ==
"IsReady") {
54 else if (requestID ==
"CheckQTResults") {
59 else if (requestID ==
"SingleModuleHistoList") {
64 else if (requestID ==
"GlobalHistoList") {
69 else if (requestID ==
"SummaryHistoList") {
74 else if (requestID ==
"AlarmList") {
79 else if (requestID ==
"ReadQTestStatus") {
83 else if (requestID ==
"PlotAsModule") {
87 else if (requestID ==
"PlotGlobalHisto") {
91 else if (requestID ==
"PlotHistogramFromPath") {
95 else if (requestID ==
"PlotTkMapHistogram") {
100 else if (requestID ==
"PlotHistogramFromLayout") {
103 else if (requestID ==
"GetImage") {
106 else if (requestID ==
"GetTkMap") {
109 ifstream fin(
"dqmtmapviewer.xhtml");
111 std::ostringstream html_out;
113 std::cerr <<
"Input File: dqmtmapviewer.xhtml "<<
" could not be opened!" << std::endl;
116 while (fin.getline(buf,
BUF_SIZE,
'\n')) {
117 html_out << buf << std::endl;
121 out->getHTTPResponseHeader().addHeader(
"Content-type",
"application/xhtml+xml");
122 *out << html_out.str();
124 else if (requestID ==
"NonGeomHistoList") {
129 else if (requestID ==
"PlotModuleCondDBHistos") {
133 local_par.
detId = detId;
135 local_par.
side = 999;
136 local_par.
layer = 999;
141 else if (requestID ==
"PlotLayerCondDBHistos") {
146 local_par.
detId = 999;
147 local_par.
type = sname.substr(sname.find_first_of(
"/")+1,3);
148 if (sname.find(
"side_")!=std::string::npos)
149 local_par.
side = atoi((sname.substr(sname.find(
"side_")+5,1)).c_str());
150 else local_par.
side = 999;
151 local_par.
layer = atoi((sname.substr(sname.find_last_of(
"_")+1)).c_str());
156 }
else if (requestID ==
"UpdateTrackerMapOption") {
213 out->getHTTPResponseHeader().addHeader(
"Content-Type",
"text/xml");
214 *out <<
"<?xml version=\"1.0\" ?>" << std::endl;
215 *out <<
"<"<<name<<
">" << std::endl;
216 *out <<
" <Response>" << comment <<
"</Response>" << std::endl;
217 *out <<
"</"<<name<<
">" << std::endl;
224 std::multimap<std::string, std::string>::iterator it;
225 it = mymap.find(key);
226 if (it != mymap.end())
236 std::string& subdet_type, uint32_t& subdet_side, uint32_t& layer_number) {
void getConDBPlotParameters(unsigned int ival, uint32_t &det_id, std::string &subdet_type, uint32_t &subdet_side, uint32_t &layer_number)
void returnReplyXml(xgi::Output *out, const std::string &name, const std::string &comment)
std::vector< CondDBPlotParameter > condDBRequestList_
SiStripInformationExtractor * infoExtractor_
SiStripActionType theActionFlag
void read_form(std::multimap< std::string, std::string > &form_info)
void handleAnalyserRequest(xgi::Input *in, xgi::Output *out, const edm::ESHandle< SiStripDetCabling > &detcabling, int niter)
std::string get_from_multimap(std::multimap< std::string, std::string > &mymap, std::string key)
SiStripWebInterface(DQMStore *dqm_store)
std::multimap< std::string, std::string > requestMap_
void setActionFlag(SiStripActionType flag)