CMS 3D CMS Logo

Static Public Member Functions

RPCRawDataCountsHistoMaker Class Reference

#include <RPCRawDataCountsHistoMaker.h>

List of all members.

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 12 of file RPCRawDataCountsHistoMaker.cc.

References i, rpcrawtodigi::ReadoutError::name(), and query::result.

Referenced by RPCMonitorRaw::beginJob().

                                                                   {
  std::ostringstream str;
  str <<"readoutErrors_"<<fedId;
  TH1F * result = new TH1F(str.str().c_str(),str.str().c_str(),9, 0.5,9.5);
  for (unsigned int i=1; i<=9; ++i) {
    rpcrawtodigi::ReadoutError::ReadoutErrorType code =  static_cast<rpcrawtodigi::ReadoutError::ReadoutErrorType>(i);
    result->GetXaxis()->SetBinLabel(i,rpcrawtodigi::ReadoutError::name(code).c_str());
  }
  return result;
}
TH2F * RPCRawDataCountsHistoMaker::emptyReadoutErrorMapHisto ( int  fedId,
int  type 
) [static]

Definition at line 35 of file RPCRawDataCountsHistoMaker.cc.

References mergeVDriftHistosByStation::name, and query::result.

Referenced by RPCMonitorRaw::beginJob().

                                                                                {
  std::ostringstream str;
  rpcrawtodigi::ReadoutError::ReadoutErrorType code =  static_cast<rpcrawtodigi::ReadoutError::ReadoutErrorType>(type);
  str <<"errors_"<<rpcrawtodigi::ReadoutError::name(code)<<"_"<<fedId;
  TH2F * result = new TH2F(str.str().c_str(),str.str().c_str(), 36,-0.5,35.5, 18,-0.5,17.5);
  result->GetXaxis()->SetNdivisions(512);
  result->GetYaxis()->SetNdivisions(505);
  result->SetXTitle("rmb");
  result->SetYTitle("link");
  result->SetStats(0);
  return result;
}
TH1F * RPCRawDataCountsHistoMaker::emptyRecordTypeHisto ( int  fedId) [static]

Definition at line 23 of file RPCRawDataCountsHistoMaker.cc.

References i, rpcrawtodigi::DataRecord::name(), and query::result.

Referenced by RPCMonitorRaw::beginJob().

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