108 int nSubsystems = 10;
112 currentFolder =
moduleName +
"/EventInfo/reportSummaryContents";
127 for (
int i = 0;
i < nSubsystems; ++
i) {
136 "FED Report Summary Map", 1, 1, 2, 10, 1, 11);
172 std::vector<std::string> entries;
175 entries.push_back(
"EcalBarrel/" +
fedFolderName +
"/FEDEntries");
176 entries.push_back(
"EcalEndcap/" +
fedFolderName +
"/FEDEntries");
177 entries.push_back(
"EcalPreshower/" +
fedFolderName +
"/FEDEntries");
182 entries.push_back(
"SiStrip/" +
fedFolderName +
"/FEDEntries");
184 for(
auto ent = entries.begin();
185 ent != entries.end(); ++ent) {
194 if (TH1F * rootHisto = me->
getTH1F()) {
201 xmin = (
int)rootHisto->GetXaxis()->GetXmin();
202 if(*ent ==
"L1T/" +
fedFolderName +
"/FEDEntries") xmin = xmin + 800;
206 entry = rootHisto->GetBinContent(bin);
216 int nSubsystems = 10;
218 std::vector<std::string> fatal;
221 fatal.push_back(
"EcalBarrel/" +
fedFolderName +
"/FEDFatal");
222 fatal.push_back(
"EcalEndcap/" +
fedFolderName +
"/FEDFatal");
223 fatal.push_back(
"EcalPreshower/" +
fedFolderName +
"/FEDFatal");
234 auto ent = entries.begin();
235 for(
auto fat = fatal.begin();
236 fat != fatal.end(); ++fat) {
256 if (TH1F * rootHisto = me->
getTH1F()) {
257 if (TH1F * rootHistoNorm = meNorm->
getTH1F()) {
262 xmin = (
int)rootHisto->GetXaxis()->GetXmin();
263 if(*fat ==
"L1T/" +
fedFolderName +
"/FEDFatal") xmin = xmin + 800;
265 xmax = (
int)rootHisto->GetXaxis()->GetXmax();
266 if(*fat ==
"L1T/" +
fedFolderName +
"/FEDFatal") xmax = xmax + 800;
273 binentry = rootHisto->GetBinContent(bin);
275 norm += rootHistoNorm->GetBinContent(bin);
301 std::vector<std::string> nonfatal;
304 nonfatal.push_back(
"EcalBarrel/" +
fedFolderName +
"/FEDNonFatal");
305 nonfatal.push_back(
"EcalEndcap/" +
fedFolderName +
"/FEDNonFatal");
306 nonfatal.push_back(
"EcalPreshower/" +
fedFolderName +
"/FEDNonFatal");
307 nonfatal.push_back(
"Hcal/" +
fedFolderName +
"/FEDNonFatal");
309 nonfatal.push_back(
"Pixel/" +
fedFolderName +
"/FEDNonFatal");
311 nonfatal.push_back(
"SiStrip/" +
fedFolderName +
"/FEDNonFatal");
313 for(
auto non = nonfatal.begin();
314 non != nonfatal.end(); ++non) {
323 if (TH1F * rootHisto = me->
getTH1F()) {
330 xmin = (
int)rootHisto->GetXaxis()->GetXmin();
331 if(*non ==
"L1T/" +
fedFolderName +
"/FEDNonFatal") xmin = xmin + 800;
335 entry = rootHisto->GetBinContent(bin);
MonitorElement * FedEntries
T getUntrackedParameter(std::string const &, T const &) const
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * FedNonFatal
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
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)
std::string fedFolderName
MonitorElement * bookFloat(const char *name)
Book float.
DQMFEDIntegrityClient(const edm::ParameterSet &)
void endRun(const edm::Run &r, const edm::EventSetup &c) override
MonitorElement * reportSummaryContent[10]
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
void endLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &c) override
bin
set the eta bin as selection string.
~DQMFEDIntegrityClient() override
MonitorElement * FedFatal
edm::ParameterSet parameters_
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
MonitorElement * reportSummary
int getNbinsX() const
get # of bins in X-axis
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
MonitorElement * reportSummaryMap
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void setCurrentFolder(const std::string &fullpath)