Go to the documentation of this file.
19 #include <TDirectoryFile.h>
51 fReportSummary_ = -1.0;
53 strDirSummary_ =
"GEM/EventInfo";
59 descriptions.
add(
"GEMDQMHarvester",
desc);
67 drawSummaryHistogram(store);
83 std::string strSrcDigiOcc =
"GEM/digi/summaryOccDigi";
84 std::string strSrcDigiMal =
"GEM/digi/summaryMalfuncDigi";
85 std::string strSrcCStatus =
"GEM/DAQStatus/summaryStatus";
93 if (h2SrcDigiOcc !=
nullptr && h2SrcDigiMal !=
nullptr && h2SrcCStatus !=
nullptr) {
95 createSummaryHist(store, h2SrcCStatus, h2Sum);
96 refineSummaryHistogram(h2Sum, h2SrcDigiOcc, h2SrcDigiMal, h2SrcCStatus);
108 for (Int_t
j = 1;
j <=
nBinY;
j++) {
111 for (Int_t
i = 1;
i <=
nBinX;
i++) {
117 if (fCStatus > 0 || fDigiMal > 0)
119 else if (fDigiOcc > 0)
void drawSummaryHistogram(edm::Service< DQMStore > &store)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
std::string strDirSummary_
void createSummaryHist(edm::Service< DQMStore > &store, MonitorElement *h2Src, MonitorElement *&h2Sum)
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~GEMDQMHarvester() override
void setCurrentFolder(std::string const &fullpath) override
GEMDQMHarvester(const edm::ParameterSet &)
virtual int getNbinsY() const
get # of bins in Y-axis
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)
void refineSummaryHistogram(MonitorElement *h2Sum, MonitorElement *h2SrcDigiOcc, MonitorElement *h2SrcDigiMal, MonitorElement *h2SrcCStatus)
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
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
virtual double getBinContent(int binx) const
get content of bin (1-D)
virtual TH2F * getTH2F() const