#include <SiPixelWebInterface.h>
Public Types | |
enum | SiPixelActionType { NoAction = 0, Summary = 1, setupQTest = 2, QTestResult = 3, CreateTkMap = 4, PlotSingleModuleHistos = 5, PlotSingleHistogram = 6, PlotTkMapHistogram = 7, periodicTrackerMapUpdate = 8, PlotHistogramFromPath = 9, CreatePlots = 10, ComputeGlobalQualityFlag = 11, dumpModIds = 12, Occupancy = 13 } |
Public Member Functions | |
bool | createTkMap () |
SiPixelActionType | getActionFlag () |
void | handleEDARequest (xgi::Input *in, xgi::Output *out, int niter) |
void | performAction () |
void | periodicTkMapUpdate (xgi::Output *out) |
bool | readConfiguration (int &tkmap_freq, int &summary_freq) |
void | setActionFlag (SiPixelActionType flag) |
SiPixelWebInterface (DQMStore *bei, bool offlineXMLfile, bool Tier0Flag) | |
~SiPixelWebInterface () | |
Private Member Functions | |
std::string | get_from_multimap (std::multimap< std::string, std::string > &mymap, std::string key) |
void | returnReplyXml (xgi::Output *out, const std::string &name, const std::string &comment) |
Private Attributes | |
SiPixelActionExecutor * | actionExecutor_ |
DQMStore * | bei_ |
SiPixelInformationExtractor * | infoExtractor_ |
bool | offlineXMLfile_ |
std::multimap< std::string, std::string > | requestMap_ |
SiPixelActionType | theActionFlag |
bool | Tier0Flag_ |
bool | tkMapCreated |
std::vector< std::string > | tkMapOptions_ |
Definition at line 13 of file SiPixelWebInterface.h.
Definition at line 18 of file SiPixelWebInterface.h.
SiPixelWebInterface::SiPixelWebInterface | ( | DQMStore * | bei, |
bool | offlineXMLfile, | ||
bool | Tier0Flag | ||
) |
Definition at line 20 of file SiPixelWebInterface.cc.
References actionExecutor_, infoExtractor_, NoAction, offlineXMLfile_, theActionFlag, Tier0Flag_, tkMapCreated, and tkMapOptions_.
SiPixelWebInterface::~SiPixelWebInterface | ( | ) |
Definition at line 41 of file SiPixelWebInterface.cc.
References actionExecutor_, and infoExtractor_.
bool SiPixelWebInterface::createTkMap | ( | ) |
Definition at line 332 of file SiPixelWebInterface.cc.
References actionExecutor_, bei_, CreateTkMap, SiPixelActionExecutor::createTkMap(), get_from_multimap(), requestMap_, lumiContext::sname, and theActionFlag.
Referenced by performAction().
|
private |
Definition at line 369 of file SiPixelWebInterface.cc.
Referenced by createTkMap(), handleEDARequest(), and periodicTkMapUpdate().
|
inline |
Definition at line 42 of file SiPixelWebInterface.h.
References theActionFlag.
void SiPixelWebInterface::handleEDARequest | ( | xgi::Input * | in, |
xgi::Output * | out, | ||
int | niter | ||
) |
Definition at line 52 of file SiPixelWebInterface.cc.
References ACBold, ACCyan, ACGreen, ACPlain, ACReverse, bei_, BUF_SIZE, DQMStore::cd(), dtNoiseDBValidation_cfg::cerr, comment, ComputeGlobalQualityFlag, gather_cfg::cout, CreateTkMap, dumpModIds, groupFilesInBlocks::fin, get_from_multimap(), SiPixelInformationExtractor::getHistosFromPath(), SiPixelInformationExtractor::getIMGCImage(), DQMStore::getMEs(), SiPixelInformationExtractor::getSingleModuleHistos(), SiPixelInformationExtractor::getTrackerMapHistos(), infoExtractor_, mergeVDriftHistosByStation::name, NoAction, performAction(), periodicTkMapUpdate(), QTestResult, CgiReader::read_form(), SiPixelInformationExtractor::readAlarmTree(), matplotRender::reader, SiPixelInformationExtractor::readModuleAndHistoList(), SiPixelInformationExtractor::readModuleHistoTree(), SiPixelInformationExtractor::readStatusMessage(), SiPixelInformationExtractor::readSummaryHistoTree(), requestMap_, returnReplyXml(), setupQTest, lumiContext::sname, Summary, theActionFlag, and tkMapCreated.
Referenced by SiPixelEDAClient::defaultWebPage().
void SiPixelWebInterface::performAction | ( | ) |
theOut->getHTTPResponseHeader().addHeader("Content-Type", "image/png"); theOut->getHTTPResponseHeader().addHeader("Pragma", "no-cache"); theOut->getHTTPResponseHeader().addHeader("Cache-Control", "no-store, no-cache, must-revalidate,max-age=0"); theOut->getHTTPResponseHeader().addHeader("Expires","Mon, 26 Jul 1997 05:00:00 GMT"); cout << ACYellow << ACBold << "[SiPixelWebInterface::PlotTkMapHistogram()]" << ACPlain << " Buffer for " << theMEName << " stored away: shipping back data (" << theOut << ")" << endl ; *theOut << infoExtractor_->getNamedImage(theMEName).str();
Definition at line 211 of file SiPixelWebInterface.cc.
References actionExecutor_, bei_, SiPixelActionExecutor::checkQTestResults(), ComputeGlobalQualityFlag, SiPixelInformationExtractor::createImages(), SiPixelActionExecutor::createOccupancy(), CreatePlots, SiPixelActionExecutor::createSummary(), CreateTkMap, createTkMap(), dumpModIds, infoExtractor_, NoAction, Occupancy, periodicTrackerMapUpdate, PlotHistogramFromPath, PlotSingleHistogram, PlotSingleModuleHistos, PlotTkMapHistogram, QTestResult, setActionFlag(), setupQTest, SiPixelActionExecutor::setupQTests(), Summary, theActionFlag, and tkMapCreated.
Referenced by SiPixelEDAClient::analyze(), SiPixelEDAClient::endLuminosityBlock(), SiPixelEDAClient::endRun(), and handleEDARequest().
void SiPixelWebInterface::periodicTkMapUpdate | ( | xgi::Output * | out | ) |
Definition at line 346 of file SiPixelWebInterface.cc.
References bei_, get_from_multimap(), infoExtractor_, requestMap_, SiPixelInformationExtractor::sendTkUpdatedStatus(), and lumiContext::sname.
Referenced by handleEDARequest().
bool SiPixelWebInterface::readConfiguration | ( | int & | tkmap_freq, |
int & | summary_freq | ||
) |
Definition at line 355 of file SiPixelWebInterface.cc.
References actionExecutor_, SiPixelActionExecutor::readConfiguration(), and summarizeEdmComparisonLogfiles::success.
Referenced by SiPixelEDAClient::beginRun().
|
private |
|
inline |
Definition at line 43 of file SiPixelWebInterface.h.
References theActionFlag.
Referenced by SiPixelEDAClient::analyze(), SiPixelEDAClient::endLuminosityBlock(), SiPixelEDAClient::endRun(), and performAction().
|
private |
Definition at line 57 of file SiPixelWebInterface.h.
Referenced by createTkMap(), performAction(), readConfiguration(), SiPixelWebInterface(), and ~SiPixelWebInterface().
|
private |
Definition at line 67 of file SiPixelWebInterface.h.
Referenced by createTkMap(), handleEDARequest(), performAction(), and periodicTkMapUpdate().
|
private |
Definition at line 58 of file SiPixelWebInterface.h.
Referenced by handleEDARequest(), performAction(), periodicTkMapUpdate(), SiPixelWebInterface(), and ~SiPixelWebInterface().
|
private |
Definition at line 68 of file SiPixelWebInterface.h.
Referenced by SiPixelWebInterface().
|
private |
Definition at line 66 of file SiPixelWebInterface.h.
Referenced by createTkMap(), handleEDARequest(), and periodicTkMapUpdate().
|
private |
Definition at line 56 of file SiPixelWebInterface.h.
Referenced by createTkMap(), getActionFlag(), handleEDARequest(), performAction(), setActionFlag(), and SiPixelWebInterface().
|
private |
Definition at line 69 of file SiPixelWebInterface.h.
Referenced by SiPixelWebInterface().
|
private |
Definition at line 65 of file SiPixelWebInterface.h.
Referenced by handleEDARequest(), performAction(), and SiPixelWebInterface().
|
private |
Definition at line 64 of file SiPixelWebInterface.h.
Referenced by SiPixelWebInterface().