CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Static Public Member Functions
RPCRawDataCountsHistoMaker Class Reference

#include <RPCRawDataCountsHistoMaker.h>

Static Public Member Functions

static TH1F * emptyReadoutErrorHisto (int fedId)
 
static TH2F * emptyReadoutErrorMapHisto (int fedId, int type)
 
static TH1F * emptyRecordTypeHisto (int fedId)
 

Detailed Description

Definition at line 7 of file RPCRawDataCountsHistoMaker.h.

Member Function Documentation

TH1F * RPCRawDataCountsHistoMaker::emptyReadoutErrorHisto ( int  fedId)
static

Definition at line 9 of file RPCRawDataCountsHistoMaker.cc.

References diffTreeTool::format(), mps_fire::i, rpcrawtodigi::ReadoutError::name(), mps_fire::result, str, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by RPCMonitorRaw::bookHistograms().

9  {
10  const std::string str = fmt::format("readoutErrors_{}", fedId);
11  TH1F* result = new TH1F(str.c_str(), str.c_str(), 9, 0.5, 9.5);
12  for (unsigned int i = 1; i <= 9; ++i) {
14  result->GetXaxis()->SetBinLabel(i, rpcrawtodigi::ReadoutError::name(code).c_str());
15  }
16  return result;
17 }
std::string name() const
Definition: ReadoutError.h:32
tuple result
Definition: mps_fire.py:311
#define str(s)
TH2F * RPCRawDataCountsHistoMaker::emptyReadoutErrorMapHisto ( int  fedId,
int  type 
)
static

Definition at line 30 of file RPCRawDataCountsHistoMaker.cc.

References diffTreeTool::format(), rpcrawtodigi::ReadoutError::name(), mps_fire::result, str, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by RPCMonitorRaw::bookHistograms().

30  {
32  const std::string str = fmt::format("errors_{}_{}", rpcrawtodigi::ReadoutError::name(code), fedId);
33  TH2F* result = new TH2F(str.c_str(), str.c_str(), 36, -0.5, 35.5, 18, -0.5, 17.5);
34  result->GetXaxis()->SetNdivisions(512);
35  result->GetYaxis()->SetNdivisions(505);
36  result->SetXTitle("rmb");
37  result->SetYTitle("link");
38  result->SetStats(false);
39  return result;
40 }
std::string name() const
Definition: ReadoutError.h:32
tuple result
Definition: mps_fire.py:311
#define str(s)
TH1F * RPCRawDataCountsHistoMaker::emptyRecordTypeHisto ( int  fedId)
static

Definition at line 19 of file RPCRawDataCountsHistoMaker.cc.

References diffTreeTool::format(), mps_fire::i, rpcrawtodigi::DataRecord::name(), mps_fire::result, str, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by RPCMonitorRaw::bookHistograms().

19  {
20  const std::string str = fmt::format("recordType_{}", fedId);
21  TH1F* result = new TH1F(str.c_str(), str.c_str(), 9, 0.5, 9.5);
22  result->SetTitleOffset(1.4, "x");
23  for (unsigned int i = 1; i <= 9; ++i) {
25  result->GetXaxis()->SetBinLabel(i, rpcrawtodigi::DataRecord::name(code).c_str());
26  }
27  return result;
28 }
tuple result
Definition: mps_fire.py:311
static std::string name(const DataRecordType &code)
Definition: DataRecord.cc:58
#define str(s)