47 #include "xgi/Method.h"
48 #include "xgi/Utils.h"
50 #include "cgicc/Cgicc.h"
51 #include "cgicc/FormEntry.h"
52 #include "cgicc/HTMLClasses.h"
67 ModuleWeb(
"SiStripAnalyser") {
77 std::cerr <<
"Input File: loader.html"<<
" could not be opened!" << std::endl;
81 while (fin.getline(buf,
BUF_SIZE,
'\n')) {
88 edm::LogInfo(
"SiStripAnalyser") <<
" SiStripAnalyser::Creating SiStripAnalyser ";
113 edm::LogInfo(
"SiStripAnalyser") <<
"SiStripAnalyser::Deleting SiStripAnalyser ";
131 edm::LogInfo (
"SiStripAnalyser") <<
"SiStripAnalyser:: Error to read configuration file!! Summary will not be produced!!!";
141 edm::LogInfo (
"SiStripAnalyser") <<
"SiStripAnalyser:: Begining of Run";
147 edm::LogInfo(
"SiStripAnalyser") <<
"SiStripAnalyser::beginRun: "
148 <<
" Change in Cabling, recrated TrackerMap";
150 edm::LogInfo (
"SiStripAnalyser") <<
"SiStripAnalyser:: Error to read configuration file!! TrackerMap will not be produced!!!";
164 edm::LogInfo(
"SiStripAnalyser") <<
"SiStripAnalyser:: Begin of LS transition";
184 for (
unsigned int ival = 0; ival < nval; ival++) {
187 uint32_t subdet_side;
188 uint32_t layer_number;
204 edm::LogInfo (
"SiStripAnalyser") <<
"SiStripAnalyser:: End of LS transition, performing the DQM client operation";
216 std::cout <<
"====================================================== " << std::endl;
219 std::cout <<
"====================================================== " << std::endl;
222 std::cout <<
" Creating predefined plots " << std::endl;
232 std::cout <<
" Creating Summary " << std::endl;
237 std::cout <<
" Creating Tracker Map " << std::endl;
252 edm::LogInfo (
"SiStripAnalyser") <<
"SiStripAnalyser:: End of Run";
258 edm::LogInfo(
"SiStripAnalyser") <<
"SiStripAnalyser:: endjob called!";
260 std::ostringstream str_val;
271 if ( !rawDataHandle.
isValid() )
return;
277 unsigned int nFed = 0;
278 for (
int i=siStripFedIdMin;
i <= siStripFedIdMax;
i++) {
290 bool isRequest =
false;
291 cgicc::Cgicc cgi(in);
292 cgicc::CgiEnvironment cgie(in);
297 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)
void createTkMap(const edm::ParameterSet &tkmapPset, DQMStore *dqm_store, std::string &map_type, const edm::EventSetup &eSetup)
#define DEFINE_FWK_MODULE(type)
void createSummary(DQMStore *dqm_store)
void fillStatus(DQMStore *dqm_store, const edm::ESHandle< SiStripDetCabling > &fedcabling, const edm::EventSetup &eSetup)
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_
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 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)