56 edm::LogInfo(
"SiPixelEDAClient") <<
" Creating SiPixelEDAClient " <<
"\n" ;
74 string localPath =
string(
"DQM/SiPixelMonitorClient/test/loader.html");
79 cerr <<
"Input File: loader.html"<<
" could not be opened!" << endl;
83 while (fin.getline(buf,
BUF_SIZE,
'\n')) {
97 inputSourceToken_ = consumes<FEDRawDataCollection>(ps.
getUntrackedParameter<
string>(
"inputSource",
"source"));
107 edm::LogInfo(
"SiPixelEDAClient") <<
" Deleting SiPixelEDAClient " <<
"\n" ;
109 if (sipixelInformationExtractor_) {
110 delete sipixelInformationExtractor_;
111 sipixelInformationExtractor_ =
nullptr;
113 if (sipixelActionExecutor_) {
114 delete sipixelActionExecutor_;
115 sipixelActionExecutor_ =
nullptr;
117 if (sipixelDataQuality_) {
118 delete sipixelDataQuality_;
119 sipixelDataQuality_ =
nullptr;
128 edm::LogInfo (
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: Begining of Run";
135 summaryFrequency_ = -1;
136 tkMapFrequency_ = -1;
137 actionOnRunEnd_ =
true;
138 evtOffsetForInit_ = -1;
142 if(Tier0Flag_) nFEDs_ = 40;
160 edm::LogInfo (
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: Begin of LS transition";
163 nEvents_lastLS_=0; nErrorsBarrel_lastLS_=0; nErrorsEndcap_lastLS_=0;
173 sipixelActionExecutor_->createSummary(iBooker,iGetter, isUpgrade_);
182 if(!Tier0Flag_) sipixelActionExecutor_->bookDeviations(iBooker, isUpgrade_);
184 if(doHitEfficiency_) sipixelActionExecutor_->bookEfficiency(iBooker, isUpgrade_);
186 sipixelActionExecutor_->bookOccupancyPlots(iBooker, iGetter, hiRes_);
188 if(noiseRate_>0.) sipixelInformationExtractor_->bookNoisyPixels(iBooker, noiseRate_, Tier0Flag_);
190 sipixelDataQuality_->bookGlobalQualityFlag(iBooker, Tier0Flag_, nFEDs_);
201 edm::LogInfo (
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: End of LS transition, performing the DQM client operation";
208 edm::LogInfo(
"SiPixelEDAClient") <<
"====================================================== " << endl <<
" ===> Iteration # " << nLumiSecs_ <<
" " << lumiSeg.
luminosityBlock() << endl <<
"====================================================== " << endl;
210 if(Tier0Flag_) sipixelActionExecutor_->normaliseAvDigiOccVsLumi(iBooker,iGetter,nLumiSecs_);
213 if(actionOnLumiSec_ && nLumiSecs_ % 1 == 0 ){
215 if(doHitEfficiency_) sipixelActionExecutor_->createEfficiency(iBooker, iGetter, isUpgrade_);
216 sipixelActionExecutor_->createOccupancy(iBooker,iGetter);
219 sipixelDataQuality_->computeGlobalQualityFlagByLumi(iGetter,init,nFEDs_,Tier0Flag_,nEvents_lastLS_,nErrorsBarrel_lastLS_,nErrorsEndcap_lastLS_);
223 sipixelDataQuality_->fillGlobalQualityPlot(iBooker,iGetter,init,theCablingMap,nFEDs_,Tier0Flag_,nLumiSecs_);
225 if(noiseRate_>=0.) sipixelInformationExtractor_->findNoisyPixels(iBooker, iGetter, init, noiseRate_, noiseRateDenominator_, theCablingMap);
237 edm::LogInfo(
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: endjob called!";
239 sipixelActionExecutor_->createSummary(iBooker, iGetter, isUpgrade_);
245 if(doHitEfficiency_) {
246 sipixelActionExecutor_->createEfficiency(iBooker,iGetter, isUpgrade_);
247 sipixelActionExecutor_->fillEfficiencySummary(iBooker, iGetter);
250 sipixelActionExecutor_->createOccupancy(iBooker,iGetter);
252 if(Tier0Flag_) sipixelActionExecutor_->normaliseAvDigiOcc(iBooker,iGetter);
257 sipixelDataQuality_->computeGlobalQualityFlag(iBooker,iGetter,init,nFEDs_,Tier0Flag_);
262 sipixelDataQuality_->fillGlobalQualityPlot(iBooker,iGetter,init,theCablingMap,nFEDs_,Tier0Flag_,nLumiSecs_);
264 if(noiseRate_>=0.) sipixelInformationExtractor_->findNoisyPixels(iBooker,iGetter, init, noiseRate_, noiseRateDenominator_, theCablingMap);
LuminosityBlockID id() const
T getUntrackedParameter(std::string const &, T const &) const
SiPixelEDAClient(const edm::ParameterSet &ps)
MonitorElement * get(const std::string &path)
void dqmEndJob(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter) override
LuminosityBlockNumber_t luminosityBlock() const
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
void setCurrentFolder(const std::string &fullpath)
LuminosityBlockNumber_t luminosityBlock() const
~SiPixelEDAClient() override
void setCurrentFolder(const std::string &fullpath)
double getBinContent(int binx) const
get content of bin (1-D)
int getNbinsX(void) const
get # of bins in X-axis
void Reset(void)
reset ME (ie. contents, errors, etc)
void dqmEndLuminosityBlock(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c) override