49 #include "xgi/Method.h"
50 #include "xgi/Utils.h"
52 #include "cgicc/Cgicc.h"
53 #include "cgicc/FormEntry.h"
54 #include "cgicc/HTMLClasses.h"
69 ModuleWeb(
"SiStripAnalyser") {
74 std::string localPath = std::string(
"DQM/SiStripMonitorClient/test/loader.html");
79 std::cerr <<
"Input File: loader.html"<<
" could not be opened!" << std::endl;
83 while (fin.getline(buf,
BUF_SIZE,
'\n')) {
90 edm::LogInfo(
"SiStripAnalyser") <<
" SiStripAnalyser::Creating SiStripAnalyser ";
115 edm::LogInfo(
"SiStripAnalyser") <<
"SiStripAnalyser::Deleting SiStripAnalyser ";
133 edm::LogInfo (
"SiStripAnalyser") <<
"SiStripAnalyser:: Error to read configuration file!! Summary will not be produced!!!";
143 edm::LogInfo (
"SiStripAnalyser") <<
"SiStripAnalyser:: Begining of Run";
149 edm::LogInfo(
"SiStripAnalyser") <<
"SiStripAnalyser::beginRun: "
150 <<
" Change in Cabling, recrated TrackerMap";
152 edm::LogInfo (
"SiStripAnalyser") <<
"SiStripAnalyser:: Error to read configuration file!! TrackerMap will not be produced!!!";
166 edm::LogInfo(
"SiStripAnalyser") <<
"SiStripAnalyser:: Begin of LS transition";
186 for (
unsigned int ival = 0; ival < nval; ival++) {
188 std::string subdet_type;
189 uint32_t subdet_side;
190 uint32_t layer_number;
206 edm::LogInfo (
"SiStripAnalyser") <<
"SiStripAnalyser:: End of LS transition, performing the DQM client operation";
218 std::cout <<
"====================================================== " << std::endl;
221 std::cout <<
"====================================================== " << std::endl;
224 std::cout <<
" Creating predefined plots " << std::endl;
234 std::cout <<
" Creating Summary " << std::endl;
239 std::cout <<
" Creating Tracker Map " << std::endl;
254 edm::LogInfo (
"SiStripAnalyser") <<
"SiStripAnalyser:: End of Run";
260 edm::LogInfo(
"SiStripAnalyser") <<
"SiStripAnalyser:: endjob called!";
262 std::ostringstream str_val;
273 if ( !rawDataHandle.
isValid() )
return;
279 unsigned int nFed = 0;
280 for (
int i=siStripFedIdMin;
i <= siStripFedIdMax;
i++) {
292 bool isRequest =
false;
293 cgicc::Cgicc cgi(in);
294 cgicc::CgiEnvironment cgie(in);
298 std::string q_string = cgie.getQueryString();
299 if (q_string.find(
"RequestID") != std::string::npos) isRequest =
true;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag rawDataTag_
edm::ESHandle< SiStripFedCabling > fedCabling_
void getConDBPlotParameters(unsigned int ival, uint32_t &det_id, std::string &subdet_type, uint32_t &subdet_side, uint32_t &layer_number)
#define DEFINE_FWK_MODULE(type)
void createSummary(DQMStore *dqm_store)
std::ostringstream html_out_
void beginRun(edm::EventSetup const &eSetup)
bool readTkMapConfiguration(const edm::EventSetup &eSetup)
void createStatus(DQMStore *dqm_store)
edm::ESHandle< SiStripDetCabling > detCabling_
void createTkMap(const edm::ParameterSet &tkmapPset, DQMStore *dqm_store, std::string &map_type)
size_t size() const
Lenght of the data buffer in bytes.
void createDummyShiftReport()
LuminosityBlockNumber_t luminosityBlock() const
SiStripActionExecutor * actionExecutor_
void getLayerMEsOnDemand(edm::EventSetup const &eSetup, std::string requestedSubDetector, uint32_t requestedSide, uint32_t requestedLayer)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
bool printFaultyModuleList_
int staticUpdateFrequency_
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &eSetup)
Begin Luminosity Block.
edm::ParameterSet tkMapPSet_
void createShiftReport(DQMStore *dqm_store)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void getModMEsOnDemand(edm::EventSetup const &eSetup, uint32_t requestedDetId)
SiStripWebInterface * sistripWebInterface_
void fillStatus(DQMStore *dqm_store, const edm::ESHandle< SiStripDetCabling > &fedcabling)
void handleAnalyserRequest(xgi::Input *in, xgi::Output *out, const edm::ESHandle< SiStripDetCabling > &detcabling, int niter)
virtual ~SiStripAnalyser()
Destructor.
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &eSetup)
End Luminosity Block.
SiStripClassToMonitorCondData * condDataMon_
unsigned long long m_cacheID_
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
void endRun(edm::Run const &run, edm::EventSetup const &eSetup)
EndRun.
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup)
BeginRun.
std::string getTkMapType()
int shiftReportFrequency_
void clearConDBPlotRequests()
SiStripAnalyser(const edm::ParameterSet &ps)
Constructor.
void analyze(edm::Event const &e, edm::EventSetup const &eSetup)
Analyze.
unsigned int getNumberOfConDBPlotRequest()
void printFaultyModuleList(DQMStore *dqm_store, std::ostringstream &str_val)
void setActionFlag(SiStripActionType flag)
void checkTrackerFEDs(edm::Event const &e)
void defaultWebPage(xgi::Input *in, xgi::Output *out)