CMS 3D CMS Logo

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 9 of file RPCRawDataCountsHistoMaker.h.

Member Function Documentation

◆ emptyReadoutErrorHisto()

TH1F * RPCRawDataCountsHistoMaker::emptyReadoutErrorHisto ( int  fedId)
static

Definition at line 12 of file RPCRawDataCountsHistoMaker.cc.

12  {
13  std::ostringstream str;
14  str << "readoutErrors_" << fedId;
15  TH1F* result = new TH1F(str.str().c_str(), str.str().c_str(), 9, 0.5, 9.5);
16  for (unsigned int i = 1; i <= 9; ++i) {
17  rpcrawtodigi::ReadoutError::ReadoutErrorType code = static_cast<rpcrawtodigi::ReadoutError::ReadoutErrorType>(i);
18  result->GetXaxis()->SetBinLabel(i, rpcrawtodigi::ReadoutError::name(code).c_str());
19  }
20  return result;
21 }

References l1tstage2_dqm_sourceclient-live_cfg::fedId, mps_fire::i, rpcrawtodigi::ReadoutError::name(), mps_fire::result, and str.

Referenced by RPCMonitorRaw::bookHistograms().

◆ emptyReadoutErrorMapHisto()

TH2F * RPCRawDataCountsHistoMaker::emptyReadoutErrorMapHisto ( int  fedId,
int  type 
)
static

Definition at line 35 of file RPCRawDataCountsHistoMaker.cc.

35  {
36  std::ostringstream str;
37  rpcrawtodigi::ReadoutError::ReadoutErrorType code = static_cast<rpcrawtodigi::ReadoutError::ReadoutErrorType>(type);
38  str << "errors_" << rpcrawtodigi::ReadoutError::name(code) << "_" << fedId;
39  TH2F* result = new TH2F(str.str().c_str(), str.str().c_str(), 36, -0.5, 35.5, 18, -0.5, 17.5);
40  result->GetXaxis()->SetNdivisions(512);
41  result->GetYaxis()->SetNdivisions(505);
42  result->SetXTitle("rmb");
43  result->SetYTitle("link");
44  result->SetStats(false);
45  return result;
46 }

References l1tstage2_dqm_sourceclient-live_cfg::fedId, rpcrawtodigi::ReadoutError::name(), mps_fire::result, and str.

Referenced by RPCMonitorRaw::bookHistograms().

◆ emptyRecordTypeHisto()

TH1F * RPCRawDataCountsHistoMaker::emptyRecordTypeHisto ( int  fedId)
static

Definition at line 23 of file RPCRawDataCountsHistoMaker.cc.

23  {
24  std::ostringstream str;
25  str << "recordType_" << fedId;
26  TH1F* result = new TH1F(str.str().c_str(), str.str().c_str(), 9, 0.5, 9.5);
27  result->SetTitleOffset(1.4, "x");
28  for (unsigned int i = 1; i <= 9; ++i) {
29  rpcrawtodigi::DataRecord::DataRecordType code = static_cast<rpcrawtodigi::DataRecord::DataRecordType>(i);
30  result->GetXaxis()->SetBinLabel(i, rpcrawtodigi::DataRecord::name(code).c_str());
31  }
32  return result;
33 }

References l1tstage2_dqm_sourceclient-live_cfg::fedId, mps_fire::i, rpcrawtodigi::DataRecord::name(), mps_fire::result, and str.

Referenced by RPCMonitorRaw::bookHistograms().

rpcrawtodigi::ReadoutError::ReadoutErrorType
ReadoutErrorType
Definition: ReadoutError.h:10
mps_fire.i
i
Definition: mps_fire.py:428
rpcrawtodigi::DataRecord::name
static std::string name(const DataRecordType &code)
Definition: DataRecord.cc:58
str
#define str(s)
Definition: TestProcessor.cc:52
rpcrawtodigi::ReadoutError::name
std::string name() const
Definition: ReadoutError.h:32
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
l1tstage2_dqm_sourceclient-live_cfg.fedId
fedId
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:88
rpcrawtodigi::DataRecord::DataRecordType
DataRecordType
Definition: DataRecord.h:13
mps_fire.result
result
Definition: mps_fire.py:311