38 #include "xgi/Method.h"
39 #include "xgi/Utils.h"
41 #include "cgicc/Cgicc.h"
42 #include "cgicc/FormEntry.h"
43 #include "cgicc/HTMLClasses.h"
60 ModuleWeb(
"SiPixelEDAClient"){
63 edm::LogInfo(
"SiPixelEDAClient") <<
" Creating SiPixelEDAClient " <<
"\n" ;
82 string localPath = string(
"DQM/SiPixelMonitorClient/test/loader.html");
87 cerr <<
"Input File: loader.html"<<
" could not be opened!" << endl;
91 while (fin.getline(buf,
BUF_SIZE,
'\n')) {
113 edm::LogInfo(
"SiPixelEDAClient") <<
" Deleting SiPixelEDAClient " <<
"\n" ;
143 edm::LogInfo (
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: Begining of Run";
150 edm::LogInfo (
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: Error to read configuration file!! Summary will not be produced!!!";
196 edm::LogInfo (
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: Begin of LS transition";
227 for(
int i = 0;
i != 40;
i++){
244 edm::LogInfo (
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: End of LS transition, performing the DQM client operation";
249 edm::LogInfo(
"SiPixelEDAClient") <<
"====================================================== " << endl <<
" ===> Iteration # " <<
nLumiSecs_ <<
" " << lumiSeg.
luminosityBlock() << endl <<
"====================================================== " << endl;
335 edm::LogInfo(
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: endjob called!";
345 bool isRequest =
false;
346 cgicc::Cgicc cgi(in);
347 cgicc::CgiEnvironment cgie(in);
351 string q_string = cgie.getQueryString();
352 if (q_string.find(
"RequestID") != string::npos) isRequest =
true;
int nErrorsEndcap_lastLS_
T getUntrackedParameter(std::string const &, T const &) const
unsigned int staticUpdateFrequency_
int noiseRateDenominator_
SiPixelEDAClient(const edm::ParameterSet &ps)
void createEfficiency(DQMStore *bei)
bool readConfiguration(int &tkmap_freq, int &summary_freq)
void fillGlobalQualityPlot(DQMStore *bei, bool init, edm::EventSetup const &eSetup, int nFEDs, bool Tier0Flag, int lumisec)
void cd(void)
go to top directory (ie. root)
void computeGlobalQualityFlag(DQMStore *bei, bool init, int nFEDs, bool Tier0Flag)
SiPixelInformationExtractor * sipixelInformationExtractor_
void bookOccupancyPlots(DQMStore *bei, bool hiRes, bool isbarrel)
SiPixelActionExecutor * sipixelActionExecutor_
virtual ~SiPixelEDAClient()
void computeGlobalQualityFlagByLumi(DQMStore *bei, bool init, int nFEDs, bool Tier0Flag, int nEvents_lastLS_, int nErrorsBarrel_lastLS_, int nErrorsEndcap_lastLS_)
size_t size() const
Lenght of the data buffer in bytes.
LuminosityBlockNumber_t luminosityBlock() const
void defaultWebPage(xgi::Input *in, xgi::Output *out)
void bookDeviations(DQMStore *bei)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void createOccupancy(DQMStore *bei)
std::ostringstream html_out_
void endRun(edm::Run const &run, edm::EventSetup const &eSetup)
int nErrorsBarrel_lastLS_
void setActionFlag(SiPixelActionType flag)
void bookGlobalQualityFlag(DQMStore *bei, bool Tier0Flag, int nFEDs)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
void handleEDARequest(xgi::Input *in, xgi::Output *out, int niter)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
SiPixelWebInterface * sipixelWebInterface_
void bookEfficiency(DQMStore *bei)
SiPixelDataQuality * sipixelDataQuality_
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
void analyze(edm::Event const &e, edm::EventSetup const &eSetup)
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup)
double getBinContent(int binx) const
get content of bin (1-D)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
void Reset(void)
reset ME (ie. contents, errors, etc)
void setCurrentFolder(const std::string &fullpath)
void createSummary(DQMStore *bei)