CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CTPPSCommonDQMSource::GlobalPlots Struct Reference

plots related to the whole system More...

Public Member Functions

void Init (DQMStore::IBooker &ibooker)
 

Public Attributes

MonitorElementevents_per_bx = 0
 
MonitorElementevents_per_bx_short = 0
 
MonitorElementh_trackCorr_hor = 0
 
MonitorElementh_trackCorr_vert = 0
 
MonitorElementRPState = 0
 

Detailed Description

plots related to the whole system

Definition at line 58 of file CTPPSCommonDQMSource.cc.

Member Function Documentation

void CTPPSCommonDQMSource::GlobalPlots::Init ( DQMStore::IBooker ibooker)

Definition at line 96 of file CTPPSCommonDQMSource.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), events_per_bx, events_per_bx_short, MonitorElement::getTH2F(), h_trackCorr_hor, h_trackCorr_vert, create_public_lumi_plots::hist, CTPPSCommonDQMSource::MAX_LUMIS, CTPPSCommonDQMSource::MAX_VBINS, RPState, and DQMStore::IBooker::setCurrentFolder().

Referenced by CTPPSCommonDQMSource::bookHistograms().

97 {
98  ibooker.setCurrentFolder("CTPPS/common");
99 
100  events_per_bx = ibooker.book1D("events per BX", "rp;Event.BX", 4002, -1.5, 4000. + 0.5);
101  events_per_bx_short = ibooker.book1D("events per BX (short)", "rp;Event.BX", 102, -1.5, 100. + 0.5);
102 
103  RPState = ibooker.book2D("rpstate per LS","RP State per Lumisection;Luminosity Section;",MAX_LUMIS, 0, MAX_LUMIS, MAX_VBINS, 0., MAX_VBINS);
104  {
105  TH2F* hist = RPState->getTH2F();
106  hist->SetCanExtend(TH1::kAllAxes);
107  TAxis* ya = hist->GetYaxis();
108  ya->SetBinLabel(1, "45, 210, FR-BT");
109  ya->SetBinLabel(2, "45, 210, FR-HR");
110  ya->SetBinLabel(3, "45, 210, FR-TP");
111  ya->SetBinLabel(4, "45, 220, C1");
112  ya->SetBinLabel(5, "45, 220, FR-BT");
113  ya->SetBinLabel(6, "45, 220, FR-HR");
114  ya->SetBinLabel(7, "45, 220, FR-TP");
115  ya->SetBinLabel(8, "45, 220, NR-BP");
116  ya->SetBinLabel(9, "45, 220, NR-TP");
117  ya->SetBinLabel(10, "56, 210, FR-BT");
118  ya->SetBinLabel(11, "56, 210, FR-HR");
119  ya->SetBinLabel(12, "56, 210, FR-TP");
120  ya->SetBinLabel(13, "56, 220, C1");
121  ya->SetBinLabel(14, "56, 220, FR-BT");
122  ya->SetBinLabel(15, "56, 220, FR-HR");
123  ya->SetBinLabel(16, "56, 220, FR-TP");
124  ya->SetBinLabel(17, "56, 220, NR-BP");
125  ya->SetBinLabel(18, "56, 220, NR-TP");
126  }
127 
128  h_trackCorr_hor = ibooker.book2D("track correlation hor", "ctpps_common_rp_hor", 6, -0.5, 5.5, 6, -0.5, 5.5);
129  {
130  TH2F* hist = h_trackCorr_hor->getTH2F();
131  TAxis* xa = hist->GetXaxis(), *ya = hist->GetYaxis();
132  xa->SetBinLabel(1, "45, 210, far"); ya->SetBinLabel(1, "45, 210, far");
133  xa->SetBinLabel(2, "45, 220, far"); ya->SetBinLabel(2, "45, 220, far");
134  xa->SetBinLabel(3, "45, 220, cyl"); ya->SetBinLabel(3, "45, 220, cyl");
135  xa->SetBinLabel(4, "56, 210, far"); ya->SetBinLabel(4, "56, 210, far");
136  xa->SetBinLabel(5, "56, 220, far"); ya->SetBinLabel(5, "56, 220, far");
137  xa->SetBinLabel(6, "56, 220, cyl"); ya->SetBinLabel(6, "56, 220, cyl");
138  }
139 
140  h_trackCorr_vert = ibooker.book2D("track correlation vert", "ctpps_common_rp_vert", 8, -0.5, 7.5, 8, -0.5, 7.5);
141  {
142  TH2F* hist = h_trackCorr_vert->getTH2F();
143  TAxis* xa = hist->GetXaxis(), *ya = hist->GetYaxis();
144  xa->SetBinLabel(1, "45, 210, far, top"); ya->SetBinLabel(1, "45, 210, far, top");
145  xa->SetBinLabel(2, "45, 210, far, bot"); ya->SetBinLabel(2, "45, 210, far, bot");
146  xa->SetBinLabel(3, "45, 220, far, top"); ya->SetBinLabel(3, "45, 220, far, top");
147  xa->SetBinLabel(4, "45, 220, far, bot"); ya->SetBinLabel(4, "45, 220, far, bot");
148  xa->SetBinLabel(5, "56, 210, far, top"); ya->SetBinLabel(5, "56, 210, far, top");
149  xa->SetBinLabel(6, "56, 210, far, bot"); ya->SetBinLabel(6, "56, 210, far, bot");
150  xa->SetBinLabel(7, "56, 220, far, top"); ya->SetBinLabel(7, "56, 220, far, top");
151  xa->SetBinLabel(8, "56, 220, far, bot"); ya->SetBinLabel(8, "56, 220, far, bot");
152  }
153 }
static const int MAX_VBINS
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
TH2F * getTH2F() const
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:136
static const int MAX_LUMIS

Member Data Documentation

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::events_per_bx = 0

Definition at line 61 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyze(), and Init().

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::events_per_bx_short = 0

Definition at line 61 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyze(), and Init().

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_hor = 0

Definition at line 62 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyze(), and Init().

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_vert = 0

Definition at line 62 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyze(), and Init().

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::RPState = 0

Definition at line 60 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::endLuminosityBlock(), and Init().