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_ = 0;
113 if (sipixelActionExecutor_) {
114 delete sipixelActionExecutor_;
115 sipixelActionExecutor_ = 0;
117 if (sipixelDataQuality_) {
118 delete sipixelDataQuality_;
119 sipixelDataQuality_ = 0;
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;
211 if(actionOnLumiSec_ && nLumiSecs_ % 1 == 0 ){
213 if(doHitEfficiency_) sipixelActionExecutor_->createEfficiency(iBooker, iGetter, isUpgrade_);
214 sipixelActionExecutor_->createOccupancy(iBooker,iGetter);
217 sipixelDataQuality_->computeGlobalQualityFlagByLumi(iGetter,init,nFEDs_,Tier0Flag_,nEvents_lastLS_,nErrorsBarrel_lastLS_,nErrorsEndcap_lastLS_);
221 sipixelDataQuality_->fillGlobalQualityPlot(iBooker,iGetter,init,theCablingMap,nFEDs_,Tier0Flag_,nLumiSecs_);
223 if(noiseRate_>=0.) sipixelInformationExtractor_->findNoisyPixels(iBooker, iGetter, init, noiseRate_, noiseRateDenominator_, theCablingMap);
235 edm::LogInfo(
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: endjob called!";
237 sipixelActionExecutor_->createSummary(iBooker, iGetter, isUpgrade_);
243 if(doHitEfficiency_) sipixelActionExecutor_->createEfficiency(iBooker,iGetter, isUpgrade_);
245 sipixelActionExecutor_->createOccupancy(iBooker,iGetter);
250 sipixelDataQuality_->computeGlobalQualityFlag(iBooker,iGetter,init,nFEDs_,Tier0Flag_);
255 sipixelDataQuality_->fillGlobalQualityPlot(iBooker,iGetter,init,theCablingMap,nFEDs_,Tier0Flag_,nLumiSecs_);
257 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)
virtual ~SiPixelEDAClient()
void dqmEndJob(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter) override
LuminosityBlockNumber_t luminosityBlock() const
void setCurrentFolder(const std::string &fullpath)
LuminosityBlockNumber_t luminosityBlock() const
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup)
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