55 edm::LogInfo(
"SiPixelEDAClient") <<
" Creating SiPixelEDAClient " 75 string localPath =
string(
"DQM/SiPixelMonitorClient/test/loader.html");
80 cerr <<
"Input File: loader.html" 81 <<
" could not be opened!" << endl;
85 while (fin.getline(buf,
BUF_SIZE,
'\n')) {
98 inputSourceToken_ = consumes<FEDRawDataCollection>(ps.
getUntrackedParameter<
string>(
"inputSource",
"source"));
108 edm::LogInfo(
"SiPixelEDAClient") <<
" Deleting SiPixelEDAClient " 111 if (sipixelInformationExtractor_) {
112 delete sipixelInformationExtractor_;
113 sipixelInformationExtractor_ =
nullptr;
115 if (sipixelActionExecutor_) {
116 delete sipixelActionExecutor_;
117 sipixelActionExecutor_ =
nullptr;
119 if (sipixelDataQuality_) {
120 delete sipixelDataQuality_;
121 sipixelDataQuality_ =
nullptr;
130 edm::LogInfo(
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: Begining of Run";
136 summaryFrequency_ = -1;
137 tkMapFrequency_ = -1;
138 actionOnRunEnd_ =
true;
139 evtOffsetForInit_ = -1;
161 edm::LogInfo(
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: Begin of LS transition";
165 nErrorsBarrel_lastLS_ = 0;
166 nErrorsEndcap_lastLS_ = 0;
176 sipixelActionExecutor_->createSummary(iBooker, iGetter, isUpgrade_);
186 sipixelActionExecutor_->bookDeviations(iBooker, isUpgrade_);
188 if (doHitEfficiency_)
189 sipixelActionExecutor_->bookEfficiency(iBooker, isUpgrade_);
191 sipixelActionExecutor_->bookOccupancyPlots(iBooker, iGetter, hiRes_);
194 sipixelInformationExtractor_->bookNoisyPixels(iBooker, noiseRate_, Tier0Flag_);
196 sipixelDataQuality_->bookGlobalQualityFlag(iBooker, Tier0Flag_, nFEDs_);
210 edm::LogInfo(
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: End of LS transition, performing the DQM client " 218 edm::LogInfo(
"SiPixelEDAClient") <<
"====================================================== " << endl
219 <<
" ===> Iteration # " << nLumiSecs_ <<
" " << lumiSeg.
luminosityBlock() << endl
220 <<
"====================================================== " << endl;
223 sipixelActionExecutor_->normaliseAvDigiOccVsLumi(iBooker, iGetter, nLumiSecs_);
226 if (actionOnLumiSec_ && nLumiSecs_ % 1 == 0) {
227 if (doHitEfficiency_)
228 sipixelActionExecutor_->createEfficiency(iBooker, iGetter, isUpgrade_);
229 sipixelActionExecutor_->createOccupancy(iBooker, iGetter);
232 sipixelDataQuality_->computeGlobalQualityFlagByLumi(
233 iGetter, init, nFEDs_, Tier0Flag_, nEvents_lastLS_, nErrorsBarrel_lastLS_, nErrorsEndcap_lastLS_);
237 sipixelDataQuality_->fillGlobalQualityPlot(iBooker, iGetter, init, theCablingMap, nFEDs_, Tier0Flag_, nLumiSecs_);
239 if (noiseRate_ >= 0.)
240 sipixelInformationExtractor_->findNoisyPixels(
241 iBooker, iGetter, init, noiseRate_, noiseRateDenominator_, theCablingMap);
251 edm::LogInfo(
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: endjob called!";
253 sipixelActionExecutor_->createSummary(iBooker, iGetter, isUpgrade_);
255 if (actionOnRunEnd_) {
258 if (doHitEfficiency_) {
259 sipixelActionExecutor_->createEfficiency(iBooker, iGetter, isUpgrade_);
260 sipixelActionExecutor_->fillEfficiencySummary(iBooker, iGetter);
263 sipixelActionExecutor_->createOccupancy(iBooker, iGetter);
266 sipixelActionExecutor_->normaliseAvDigiOcc(iBooker, iGetter);
271 sipixelDataQuality_->computeGlobalQualityFlag(iBooker, iGetter, init, nFEDs_, Tier0Flag_);
276 sipixelDataQuality_->fillGlobalQualityPlot(iBooker, iGetter, init, theCablingMap, nFEDs_, Tier0Flag_, nLumiSecs_);
278 if (noiseRate_ >= 0.)
279 sipixelInformationExtractor_->findNoisyPixels(
280 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
virtual void Reset()
reset ME (ie. contents, errors, etc)
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
virtual int getNbinsX() const
get # of bins in X-axis
virtual double getBinContent(int binx) const
get content of bin (1-D)
LuminosityBlockNumber_t luminosityBlock() const
~SiPixelEDAClient() override
MonitorElement * get(std::string const &path)
void dqmEndLuminosityBlock(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c) override
void setCurrentFolder(std::string const &fullpath)