110 int nSubsystems = 10;
114 currentFolder =
moduleName +
"/EventInfo/reportSummaryContents";
129 for (
int i = 0;
i < nSubsystems; ++
i) {
138 "FED Report Summary Map", 1, 1, 2, 10, 1, 11);
174 std::vector<std::string> entries;
177 entries.push_back(
"EcalBarrel/" +
fedFolderName +
"/FEDEntries");
178 entries.push_back(
"EcalEndcap/" +
fedFolderName +
"/FEDEntries");
179 entries.push_back(
"EcalPreshower/" +
fedFolderName +
"/FEDEntries");
184 entries.push_back(
"SiStrip/" +
fedFolderName +
"/FEDEntries");
186 for(std::vector<std::string>::const_iterator ent = entries.begin();
187 ent != entries.end(); ++ent) {
196 if (TH1F * rootHisto = me->
getTH1F()) {
203 xmin = (int)rootHisto->GetXaxis()->GetXmin();
204 if(*ent ==
"L1T/" +
fedFolderName +
"/FEDEntries") xmin = xmin + 800;
208 entry = rootHisto->GetBinContent(bin);
218 int nSubsystems = 10;
220 std::vector<std::string> fatal;
223 fatal.push_back(
"EcalBarrel/" +
fedFolderName +
"/FEDFatal");
224 fatal.push_back(
"EcalEndcap/" +
fedFolderName +
"/FEDFatal");
225 fatal.push_back(
"EcalPreshower/" +
fedFolderName +
"/FEDFatal");
236 std::vector<std::string>::const_iterator ent = entries.begin();
237 for(std::vector<std::string>::const_iterator fat = fatal.begin();
238 fat != fatal.end(); ++fat) {
258 if (TH1F * rootHisto = me->
getTH1F()) {
259 if (TH1F * rootHistoNorm = meNorm->
getTH1F()) {
264 xmin = (int)rootHisto->GetXaxis()->GetXmin();
265 if(*fat ==
"L1T/" +
fedFolderName +
"/FEDFatal") xmin = xmin + 800;
267 xmax = (int)rootHisto->GetXaxis()->GetXmax();
268 if(*fat ==
"L1T/" +
fedFolderName +
"/FEDFatal") xmax = xmax + 800;
275 binentry = rootHisto->GetBinContent(bin);
277 norm += rootHistoNorm->GetBinContent(bin);
303 std::vector<std::string> nonfatal;
306 nonfatal.push_back(
"EcalBarrel/" +
fedFolderName +
"/FEDNonFatal");
307 nonfatal.push_back(
"EcalEndcap/" +
fedFolderName +
"/FEDNonFatal");
308 nonfatal.push_back(
"EcalPreshower/" +
fedFolderName +
"/FEDNonFatal");
309 nonfatal.push_back(
"Hcal/" +
fedFolderName +
"/FEDNonFatal");
311 nonfatal.push_back(
"Pixel/" +
fedFolderName +
"/FEDNonFatal");
313 nonfatal.push_back(
"SiStrip/" +
fedFolderName +
"/FEDNonFatal");
315 for(std::vector<std::string>::const_iterator non = nonfatal.begin();
316 non != nonfatal.end(); ++non) {
325 if (TH1F * rootHisto = me->
getTH1F()) {
332 xmin = (int)rootHisto->GetXaxis()->GetXmin();
333 if(*non ==
"L1T/" +
fedFolderName +
"/FEDNonFatal") xmin = xmin + 800;
337 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 endRun(const edm::Run &r, const edm::EventSetup &c)
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
void beginRun(const edm::Run &r, const edm::EventSetup &c)
MonitorElement * bookFloat(const char *name)
Book float.
DQMFEDIntegrityClient(const edm::ParameterSet &)
MonitorElement * reportSummaryContent[10]
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
MonitorElement * FedFatal
TH1F * getTH1F(void) const
edm::ParameterSet parameters_
MonitorElement * reportSummary
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void endLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &c)
int getNbinsX(void) 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)