|
|
|
Int_t | assessOneBin (Float_t fAll, Float_t fNumOcc, Float_t fNumWarn, Float_t fNumErr) |
|
void | copyLabels (MonitorElement *h2Src, MonitorElement *h2Dst) |
|
void | createSummaryHist (edm::Service< DQMStore > &store, MonitorElement *h2Src, MonitorElement *&h2Sum, std::vector< std::string > &listLayers) |
|
void | createSummaryVFAT (edm::Service< DQMStore > &store, MonitorElement *h2Src, std::string strSuffix, MonitorElement *&h2Sum) |
|
void | dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override |
|
void | dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override |
|
void | drawSummaryHistogram (edm::Service< DQMStore > &store) |
|
Float_t | refineSummaryHistogram (MonitorElement *h2Sum, MonitorElement *h2SrcOcc, MonitorElement *h2SrcAllNum, MonitorElement *h2SrcStatusE, MonitorElement *h2SrcStatusW) |
|
Int_t | refineSummaryVFAT (MonitorElement *h2Sum, MonitorElement *h2SrcOcc, MonitorElement *h2SrcStatusE, MonitorElement *h2SrcStatusW) |
|
Definition at line 24 of file GEMDQMHarvester.cc.
◆ GEMDQMHarvester()
◆ ~GEMDQMHarvester()
GEMDQMHarvester::~GEMDQMHarvester |
( |
| ) |
|
|
inlineoverride |
◆ assessOneBin()
Int_t GEMDQMHarvester::assessOneBin |
( |
Float_t |
fAll, |
|
|
Float_t |
fNumOcc, |
|
|
Float_t |
fNumWarn, |
|
|
Float_t |
fNumErr |
|
) |
| |
|
protected |
Definition at line 181 of file GEMDQMHarvester.cc.
182 if (fNumErr > 0.05 * fAll)
184 else if (fNumErr > 0.00 * fAll || fNumWarn > 0.05 * fAll)
186 else if (fNumOcc > 0)
◆ copyLabels()
Definition at line 131 of file GEMDQMHarvester.cc.
134 for (Int_t
i = 1;
i <=
nBinX;
i++) {
137 for (Int_t
i = 1;
i <=
nBinY;
i++) {
References dqm::impl::MonitorElement::getAxisTitle(), dqm::impl::MonitorElement::getNbinsX(), dqm::impl::MonitorElement::getNbinsY(), dqm::legacy::MonitorElement::getTH2F(), dqm::impl::MonitorElement::getTitle(), mps_fire::i, anotherprimaryvertexanalyzer_cfi::nBinX, anotherprimaryvertexanalyzer_cfi::nBinY, dqm::impl::MonitorElement::setBinLabel(), dqm::impl::MonitorElement::setTitle(), dqm::impl::MonitorElement::setXTitle(), and dqm::impl::MonitorElement::setYTitle().
◆ createSummaryHist()
Definition at line 145 of file GEMDQMHarvester.cc.
160 for (Int_t
i = 1;
i <=
nBinY;
i++) {
162 auto nPos = strLabelFull.find(
';');
163 auto strLabel = strLabelFull.substr(0, nPos);
164 listLayers.push_back(strLabelFull.substr(nPos + 1));
References dqm::implementation::IBooker::book2D(), dqm::impl::MonitorElement::getNbinsX(), dqm::impl::MonitorElement::getNbinsY(), dqm::legacy::MonitorElement::getTH2F(), mps_fire::i, anotherprimaryvertexanalyzer_cfi::nBinX, anotherprimaryvertexanalyzer_cfi::nBinY, dqm::impl::MonitorElement::setBinLabel(), dqm::impl::MonitorElement::setTitle(), dqm::impl::MonitorElement::setXTitle(), dqm::impl::MonitorElement::setYTitle(), and AlCaHLTBitMon_QueryRunRegistry::string.
◆ createSummaryVFAT()
◆ dqmEndJob()
◆ dqmEndLuminosityBlock()
◆ drawSummaryHistogram()
Definition at line 90 of file GEMDQMHarvester.cc.
91 std::string strSrcDigiOcc =
"GEM/Digis/summaryOccDigi";
92 std::string strSrcStatusA =
"GEM/DAQStatus/chamberAllStatus";
93 std::string strSrcStatusW =
"GEM/DAQStatus/chamberWarnings";
94 std::string strSrcStatusE =
"GEM/DAQStatus/chamberErrors";
97 std::string strSrcVFATStatusW =
"GEM/DAQStatus/vfat_statusWarnSum";
98 std::string strSrcVFATStatusE =
"GEM/DAQStatus/vfat_statusErrSum";
107 if (h2SrcDigiOcc !=
nullptr && h2SrcStatusA !=
nullptr && h2SrcStatusW !=
nullptr && h2SrcStatusE !=
nullptr) {
116 if (h2SrcVFATOcc ==
nullptr || h2SrcVFATStatusW ==
nullptr || h2SrcVFATStatusE ==
nullptr)
121 TString strNewTitle = h2SrcVFATStatusE->
getTitle();
122 h2SumVFAT->
setTitle((
const char *)strNewTitle.ReplaceAll(
"errors",
"errors/warnings"));
References dqm::implementation::IBooker::bookFloat(), dqm::impl::MonitorElement::Fill(), dqm::implementation::IGetter::get(), dqm::impl::MonitorElement::getAxisTitle(), dqm::impl::MonitorElement::getTitle(), dqm::implementation::DQMStore::setCurrentFolder(), dqm::impl::MonitorElement::setTitle(), dqm::impl::MonitorElement::setXTitle(), dqm::impl::MonitorElement::setYTitle(), and AlCaHLTBitMon_QueryRunRegistry::string.
◆ fillDescriptions()
◆ refineSummaryHistogram()
Definition at line 193 of file GEMDQMHarvester.cc.
199 Int_t nAllBin = 0, nFineBin = 0;
200 for (Int_t
j = 1;
j <=
nBinY;
j++) {
204 for (Int_t
i = 1;
i <=
nBinX;
i++) {
206 Float_t fStatusAll = h2SrcStatusA->getBinContent(
i,
j);
210 Int_t nRes =
assessOneBin(fStatusAll, fOcc, fStatusWarn, fStatusErr);
219 return ((Float_t)nFineBin) / nAllBin;
References dqm::impl::MonitorElement::getBinContent(), dqm::impl::MonitorElement::getNbinsX(), dqm::impl::MonitorElement::getNbinsY(), mps_fire::i, dqmiolumiharvest::j, anotherprimaryvertexanalyzer_cfi::nBinX, anotherprimaryvertexanalyzer_cfi::nBinY, and dqm::impl::MonitorElement::setBinContent().
◆ refineSummaryVFAT()
Definition at line 222 of file GEMDQMHarvester.cc.
227 for (Int_t
j = 1;
j <=
nBinY;
j++) {
229 for (Int_t
i = 1;
i <=
nBinX;
i++) {
233 Float_t fStatusAll = fOcc + fStatusWarn + fStatusErr;
234 Int_t nRes =
assessOneBin(fStatusAll, fOcc, fStatusWarn, fStatusErr);
References dqm::impl::MonitorElement::getBinContent(), dqm::impl::MonitorElement::getNbinsX(), dqm::impl::MonitorElement::getNbinsY(), mps_fire::i, dqmiolumiharvest::j, anotherprimaryvertexanalyzer_cfi::nBinX, anotherprimaryvertexanalyzer_cfi::nBinY, and dqm::impl::MonitorElement::setBinContent().
◆ fReportSummary_
Float_t GEMDQMHarvester::fReportSummary_ |
|
protected |
◆ listLayer_
std::vector<std::string> GEMDQMHarvester::listLayer_ |
|
protected |
◆ strDirRecHit_
std::string GEMDQMHarvester::strDirRecHit_ |
|
protected |
◆ strDirStatus_
std::string GEMDQMHarvester::strDirStatus_ |
|
protected |
◆ strDirSummary_
std::string GEMDQMHarvester::strDirSummary_ |
|
protected |
◆ strOutFile_
std::string GEMDQMHarvester::strOutFile_ |
|
protected |
void drawSummaryHistogram(edm::Service< DQMStore > &store)
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
virtual void setTitle(const std::string &title)
set (ie. change) histogram/profile title
virtual std::string getAxisTitle(int axis=1) const
get x-, y- or z-axis title (axis=1, 2, 3 respectively)
std::string strDirRecHit_
std::string strDirSummary_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::string strDirStatus_
void setCurrentFolder(std::string const &fullpath) override
virtual void setXTitle(std::string const &title)
void createSummaryVFAT(edm::Service< DQMStore > &store, MonitorElement *h2Src, std::string strSuffix, MonitorElement *&h2Sum)
virtual int getNbinsY() const
get # of bins in Y-axis
virtual void setYTitle(std::string const &title)
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
Int_t refineSummaryVFAT(MonitorElement *h2Sum, MonitorElement *h2SrcOcc, MonitorElement *h2SrcStatusE, MonitorElement *h2SrcStatusW)
void createSummaryHist(edm::Service< DQMStore > &store, MonitorElement *h2Src, MonitorElement *&h2Sum, std::vector< std::string > &listLayers)
virtual std::string getTitle() const
get MonitorElement title
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
virtual int getNbinsX() const
get # of bins in X-axis
virtual MonitorElement * get(std::string const &fullpath) const
std::vector< std::string > listLayer_
Float_t refineSummaryHistogram(MonitorElement *h2Sum, MonitorElement *h2SrcOcc, MonitorElement *h2SrcAllNum, MonitorElement *h2SrcStatusE, MonitorElement *h2SrcStatusW)
Int_t assessOneBin(Float_t fAll, Float_t fNumOcc, Float_t fNumWarn, Float_t fNumErr)
virtual double getBinContent(int binx) const
get content of bin (1-D)
void copyLabels(MonitorElement *h2Src, MonitorElement *h2Dst)
virtual TH2F * getTH2F() const