CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCRawDataCountsHistoMaker.cc
Go to the documentation of this file.
5 
6 #include "TH1F.h"
7 #include "TH2F.h"
8 
9 #include <vector>
10 #include <sstream>
11 
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 }
22 
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 }
34 
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(0);
45  return result;
46 }
type
Definition: HCALResponse.h:22
int i
Definition: DBlmapReader.cc:9
std::string name() const
Definition: ReadoutError.h:33
static TH1F * emptyReadoutErrorHisto(int fedId)
static std::string name(const DataRecordType &code)
Definition: DataRecord.cc:44
static TH2F * emptyReadoutErrorMapHisto(int fedId, int type)
tuple result
Definition: query.py:137
static TH1F * emptyRecordTypeHisto(int fedId)