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;
98 inputSourceToken_ = consumes<FEDRawDataCollection>(ps.
getUntrackedParameter<
string>(
"inputSource",
"source"));
99 cablingMapToken_ = esConsumes<SiPixelFedCablingMap, SiPixelFedCablingMapRcd, edm::Transition::EndLuminosityBlock>();
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;
170 nEvents_lastLS_ =
int(
me->getBinContent(0));
171 nErrorsBarrel_lastLS_ =
int(
me->getBinContent(1));
172 nErrorsEndcap_lastLS_ =
int(
me->getBinContent(2));
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_);
207 theCablingMap = eSetup.
getData(cablingMapToken_);
212 edm::LogInfo(
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: End of LS transition, performing the DQM client " 220 edm::LogInfo(
"SiPixelEDAClient") <<
"====================================================== " << endl
221 <<
" ===> Iteration # " << nLumiSecs_ <<
" " << lumiSeg.
luminosityBlock() << endl
222 <<
"====================================================== " << endl;
225 sipixelActionExecutor_->normaliseAvDigiOccVsLumi(iBooker, iGetter, nLumiSecs_);
228 if (actionOnLumiSec_ && nLumiSecs_ % 1 == 0) {
229 if (doHitEfficiency_)
230 sipixelActionExecutor_->createEfficiency(iBooker, iGetter, isUpgrade_);
231 sipixelActionExecutor_->createOccupancy(iBooker, iGetter);
234 sipixelDataQuality_->computeGlobalQualityFlagByLumi(
235 iGetter,
init, nFEDs_, Tier0Flag_, nEvents_lastLS_, nErrorsBarrel_lastLS_, nErrorsEndcap_lastLS_);
239 sipixelDataQuality_->fillGlobalQualityPlot(iBooker, iGetter,
init, &theCablingMap, nFEDs_, Tier0Flag_, nLumiSecs_);
241 if (noiseRate_ >= 0.)
242 sipixelInformationExtractor_->findNoisyPixels(
243 iBooker, iGetter,
init, noiseRate_, noiseRateDenominator_, &theCablingMap);
253 edm::LogInfo(
"SiPixelEDAClient") <<
"[SiPixelEDAClient]: endjob called!";
255 sipixelActionExecutor_->createSummary(iBooker, iGetter, isUpgrade_);
257 if (actionOnRunEnd_) {
260 if (doHitEfficiency_) {
261 sipixelActionExecutor_->createEfficiency(iBooker, iGetter, isUpgrade_);
262 sipixelActionExecutor_->fillEfficiencySummary(iBooker, iGetter);
265 sipixelActionExecutor_->createOccupancy(iBooker, iGetter);
268 sipixelActionExecutor_->normaliseAvDigiOcc(iBooker, iGetter);
273 sipixelDataQuality_->computeGlobalQualityFlag(iBooker, iGetter,
init, nFEDs_, Tier0Flag_);
278 sipixelDataQuality_->fillGlobalQualityPlot(iBooker, iGetter,
init, &theCablingMap, nFEDs_, Tier0Flag_, nLumiSecs_);
280 if (noiseRate_ >= 0.)
281 sipixelInformationExtractor_->findNoisyPixels(
282 iBooker, iGetter,
init, noiseRate_, noiseRateDenominator_, &theCablingMap);
LuminosityBlockNumber_t luminosityBlock() const
SiPixelEDAClient(const edm::ParameterSet &ps)
virtual void setCurrentFolder(std::string const &fullpath)
void dqmEndJob(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter) override
T getUntrackedParameter(std::string const &, T const &) const
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
bool getData(T &iHolder) const
Log< level::Info, false > LogInfo
LuminosityBlockID id() const
~SiPixelEDAClient() override
virtual MonitorElement * get(std::string const &fullpath) const
virtual int getNbinsX() const
get # of bins in X-axis
LuminosityBlockNumber_t luminosityBlock() const
void dqmEndLuminosityBlock(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c) override
virtual double getBinContent(int binx) const
get content of bin (1-D)