56 edm::LogInfo(
"SiPixelEDAClient") <<
" Creating SiPixelEDAClient " <<
"\n" ;
76 string localPath =
string(
"DQM/SiPixelMonitorClient/test/loader.html");
81 cerr <<
"Input File: loader.html"<<
" could not be opened!" << endl;
85 while (fin.getline(buf,
BUF_SIZE,
'\n')) {
100 inputSourceToken_ = consumes<FEDRawDataCollection>(ps.
getUntrackedParameter<
string>(
"inputSource",
"source"));
109 edm::LogInfo(
"SiPixelEDAClient") <<
" Deleting SiPixelEDAClient " <<
"\n" ;
116 if (sipixelInformationExtractor_) {
117 delete sipixelInformationExtractor_;
118 sipixelInformationExtractor_ = 0;
120 if (sipixelActionExecutor_) {
121 delete sipixelActionExecutor_;
122 sipixelActionExecutor_ = 0;
124 if (sipixelDataQuality_) {
125 delete sipixelDataQuality_;
126 sipixelDataQuality_ = 0;
141 edm::LogInfo (
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: Begining of Run";
150 summaryFrequency_ = -1;
151 tkMapFrequency_ = -1;
152 actionOnLumiSec_ =
false;
153 actionOnRunEnd_ =
true;
154 evtOffsetForInit_ = -1;
158 if(Tier0Flag_) nFEDs_ = 40;
161 bei_->setCurrentFolder(
"Pixel/");
165 sipixelActionExecutor_->createSummary(bei_, isUpgrade_);
167 if(!Tier0Flag_) sipixelActionExecutor_->bookDeviations(bei_, isUpgrade_);
169 if(doHitEfficiency_) sipixelActionExecutor_->bookEfficiency(bei_, isUpgrade_);
171 sipixelActionExecutor_->bookOccupancyPlots(bei_, hiRes_);
173 if(noiseRate_>0.) sipixelInformationExtractor_->bookNoisyPixels(bei_, noiseRate_, Tier0Flag_);
175 sipixelDataQuality_->bookGlobalQualityFlag(bei_, Tier0Flag_, nFEDs_);
195 edm::LogInfo (
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: Begin of LS transition";
197 nEvents_lastLS_=0; nErrorsBarrel_lastLS_=0; nErrorsEndcap_lastLS_=0;
198 MonitorElement * me = bei_->get(
"Pixel/AdditionalPixelErrors/byLumiErrors");
219 e.
getByToken(inputSourceToken_, rawDataHandle);
221 edm::LogInfo(
"SiPixelEDAClient") << inputSource_ <<
" is empty";
226 for(
int i = 0;
i != 40;
i++){
243 edm::LogInfo (
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: End of LS transition, performing the DQM client operation";
248 edm::LogInfo(
"SiPixelEDAClient") <<
"====================================================== " << endl <<
" ===> Iteration # " << nLumiSecs_ <<
" " << lumiSeg.
luminosityBlock() << endl <<
"====================================================== " << endl;
251 if(actionOnLumiSec_ && nLumiSecs_ % 1 == 0 ){
255 if(doHitEfficiency_) sipixelActionExecutor_->createEfficiency(bei_, isUpgrade_);
260 sipixelActionExecutor_->createOccupancy(bei_);
265 sipixelDataQuality_->computeGlobalQualityFlagByLumi(bei_,init,nFEDs_,Tier0Flag_,nEvents_lastLS_,nErrorsBarrel_lastLS_,nErrorsEndcap_lastLS_);
268 sipixelDataQuality_->fillGlobalQualityPlot(bei_,init,eSetup,nFEDs_,Tier0Flag_,nLumiSecs_);
271 if(noiseRate_>=0.) sipixelInformationExtractor_->findNoisyPixels(bei_, init, noiseRate_, noiseRateDenominator_, eSetup);
295 sipixelActionExecutor_->createSummary(bei_, isUpgrade_);
297 if(doHitEfficiency_) sipixelActionExecutor_->createEfficiency(bei_, isUpgrade_);
302 sipixelActionExecutor_->createOccupancy(bei_);
306 sipixelDataQuality_->computeGlobalQualityFlag(bei_,init,nFEDs_,Tier0Flag_);
310 sipixelDataQuality_->fillGlobalQualityPlot(bei_,init,eSetup,nFEDs_,Tier0Flag_,nLumiSecs_);
313 if(noiseRate_>=0.) sipixelInformationExtractor_->findNoisyPixels(bei_, init, noiseRate_, noiseRateDenominator_, eSetup);
335 edm::LogInfo(
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: endjob called!";
T getUntrackedParameter(std::string const &, T const &) const
SiPixelEDAClient(const edm::ParameterSet &ps)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual ~SiPixelEDAClient()
size_t size() const
Lenght of the data buffer in bytes.
LuminosityBlockNumber_t luminosityBlock() const
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void endRun(edm::Run const &run, edm::EventSetup const &eSetup)
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
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)