56 edm::LogInfo(
"SiPixelEDAClient") <<
" Creating SiPixelEDAClient " 76 string localPath =
string(
"DQM/SiPixelMonitorClient/test/loader.html");
81 cerr <<
"Input File: loader.html" 82 <<
" could not be opened!" << endl;
86 while (fin.getline(buf,
BUF_SIZE,
'\n')) {
99 inputSourceToken_ = consumes<FEDRawDataCollection>(ps.
getUntrackedParameter<
string>(
"inputSource",
"source"));
109 edm::LogInfo(
"SiPixelEDAClient") <<
" Deleting SiPixelEDAClient " 112 if (sipixelInformationExtractor_) {
113 delete sipixelInformationExtractor_;
114 sipixelInformationExtractor_ =
nullptr;
116 if (sipixelActionExecutor_) {
117 delete sipixelActionExecutor_;
118 sipixelActionExecutor_ =
nullptr;
120 if (sipixelDataQuality_) {
121 delete sipixelDataQuality_;
122 sipixelDataQuality_ =
nullptr;
131 edm::LogInfo(
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: Begining of Run";
137 summaryFrequency_ = -1;
138 tkMapFrequency_ = -1;
139 actionOnRunEnd_ =
true;
140 evtOffsetForInit_ = -1;
162 edm::LogInfo(
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: Begin of LS transition";
166 nErrorsBarrel_lastLS_ = 0;
167 nErrorsEndcap_lastLS_ = 0;
177 sipixelActionExecutor_->createSummary(iBooker, iGetter, isUpgrade_);
187 sipixelActionExecutor_->bookDeviations(iBooker, isUpgrade_);
189 if (doHitEfficiency_)
190 sipixelActionExecutor_->bookEfficiency(iBooker, isUpgrade_);
192 sipixelActionExecutor_->bookOccupancyPlots(iBooker, iGetter, hiRes_);
195 sipixelInformationExtractor_->bookNoisyPixels(iBooker, noiseRate_, Tier0Flag_);
197 sipixelDataQuality_->bookGlobalQualityFlag(iBooker, Tier0Flag_, nFEDs_);
211 edm::LogInfo(
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: End of LS transition, performing the DQM client " 219 edm::LogInfo(
"SiPixelEDAClient") <<
"====================================================== " << endl
220 <<
" ===> Iteration # " << nLumiSecs_ <<
" " << lumiSeg.
luminosityBlock() << endl
221 <<
"====================================================== " << endl;
224 sipixelActionExecutor_->normaliseAvDigiOccVsLumi(iBooker, iGetter, nLumiSecs_);
227 if (actionOnLumiSec_ && nLumiSecs_ % 1 == 0) {
228 if (doHitEfficiency_)
229 sipixelActionExecutor_->createEfficiency(iBooker, iGetter, isUpgrade_);
230 sipixelActionExecutor_->createOccupancy(iBooker, iGetter);
233 sipixelDataQuality_->computeGlobalQualityFlagByLumi(
234 iGetter, init, nFEDs_, Tier0Flag_, nEvents_lastLS_, nErrorsBarrel_lastLS_, nErrorsEndcap_lastLS_);
238 sipixelDataQuality_->fillGlobalQualityPlot(iBooker, iGetter, init, theCablingMap, nFEDs_, Tier0Flag_, nLumiSecs_);
240 if (noiseRate_ >= 0.)
241 sipixelInformationExtractor_->findNoisyPixels(
242 iBooker, iGetter, init, noiseRate_, noiseRateDenominator_, theCablingMap);
252 edm::LogInfo(
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: endjob called!";
254 sipixelActionExecutor_->createSummary(iBooker, iGetter, isUpgrade_);
256 if (actionOnRunEnd_) {
259 if (doHitEfficiency_) {
260 sipixelActionExecutor_->createEfficiency(iBooker, iGetter, isUpgrade_);
261 sipixelActionExecutor_->fillEfficiencySummary(iBooker, iGetter);
264 sipixelActionExecutor_->createOccupancy(iBooker, iGetter);
267 sipixelActionExecutor_->normaliseAvDigiOcc(iBooker, iGetter);
272 sipixelDataQuality_->computeGlobalQualityFlag(iBooker, iGetter, init, nFEDs_, Tier0Flag_);
277 sipixelDataQuality_->fillGlobalQualityPlot(iBooker, iGetter, init, theCablingMap, nFEDs_, Tier0Flag_, nLumiSecs_);
279 if (noiseRate_ >= 0.)
280 sipixelInformationExtractor_->findNoisyPixels(
281 iBooker, iGetter, init, noiseRate_, noiseRateDenominator_, theCablingMap);
LuminosityBlockID id() const
T getUntrackedParameter(std::string const &, T const &) const
SiPixelEDAClient(const edm::ParameterSet &ps)
void setCurrentFolder(std::string const &fullpath)
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(std::string const &fullpath)
void Reset()
reset ME (ie. contents, errors, etc)
MonitorElement * get(std::string const &path)
LuminosityBlockNumber_t luminosityBlock() const
~SiPixelEDAClient() override
double getBinContent(int binx) const
get content of bin (1-D)
int getNbinsX() const
get # of bins in X-axis
void dqmEndLuminosityBlock(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c) override