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

TH1F * RPCRawDataCountsHistoMaker::emptyReadoutErrorHisto ( int  fedId)
static

Definition at line 12 of file RPCRawDataCountsHistoMaker.cc.

References l1t::stage2::layer2::fedId, mps_fire::i, rpcrawtodigi::ReadoutError::name(), mps_fire::result, and str.

Referenced by RPCMonitorRaw::bookHistograms().

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) {
18  result->GetXaxis()->SetBinLabel(i,rpcrawtodigi::ReadoutError::name(code).c_str());
19  }
20  return result;
21 }
std::string name() const
Definition: ReadoutError.h:33
#define str(s)
TH2F * RPCRawDataCountsHistoMaker::emptyReadoutErrorMapHisto ( int  fedId,
int  type 
)
static

Definition at line 35 of file RPCRawDataCountsHistoMaker.cc.

References l1t::stage2::layer2::fedId, rpcrawtodigi::ReadoutError::name(), mps_fire::result, and str.

Referenced by RPCMonitorRaw::bookHistograms().

35  {
36  std::ostringstream str;
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 }
type
Definition: HCALResponse.h:21
std::string name() const
Definition: ReadoutError.h:33
#define str(s)
TH1F * RPCRawDataCountsHistoMaker::emptyRecordTypeHisto ( int  fedId)
static

Definition at line 23 of file RPCRawDataCountsHistoMaker.cc.

References l1t::stage2::layer2::fedId, mps_fire::i, rpcrawtodigi::DataRecord::name(), mps_fire::result, and str.

Referenced by RPCMonitorRaw::bookHistograms().

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) {
30  result->GetXaxis()->SetBinLabel(i,rpcrawtodigi::DataRecord::name(code).c_str());
31  }
32  return result;
33 }
static std::string name(const DataRecordType &code)
Definition: DataRecord.cc:44
#define str(s)