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 61 of file CTPPSCommonDQMSource.cc.

Member Function Documentation

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

Definition at line 115 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().

116 {
117  ibooker.setCurrentFolder("CTPPS/common");
118 
119  events_per_bx = ibooker.book1D("events per BX", "rp;Event.BX", 4002, -1.5, 4000. + 0.5);
120  events_per_bx_short = ibooker.book1D("events per BX (short)", "rp;Event.BX", 102, -1.5, 100. + 0.5);
121 
122  /*
123  RP State (HV & LV & Insertion):
124  0 -> not used
125  1 -> bad
126  2 -> warning
127  3 -> ok
128  */
129  RPState = ibooker.book2D("rpstate per LS","RP State per Lumisection;Luminosity Section;",MAX_LUMIS, 0, MAX_LUMIS, MAX_VBINS, 0., MAX_VBINS);
130  {
131  TH2F* hist = RPState->getTH2F();
132  hist->SetCanExtend(TH1::kAllAxes);
133  TAxis* ya = hist->GetYaxis();
134  ya->SetBinLabel(1, "45, 210, FR-BT");
135  ya->SetBinLabel(2, "45, 210, FR-HR");
136  ya->SetBinLabel(3, "45, 210, FR-TP");
137  ya->SetBinLabel(4, "45, 220, C1");
138  ya->SetBinLabel(5, "45, 220, FR-BT");
139  ya->SetBinLabel(6, "45, 220, FR-HR");
140  ya->SetBinLabel(7, "45, 220, FR-TP");
141  ya->SetBinLabel(8, "45, 220, NR-BP");
142  ya->SetBinLabel(9, "45, 220, NR-TP");
143  ya->SetBinLabel(10, "56, 210, FR-BT");
144  ya->SetBinLabel(11, "56, 210, FR-HR");
145  ya->SetBinLabel(12, "56, 210, FR-TP");
146  ya->SetBinLabel(13, "56, 220, C1");
147  ya->SetBinLabel(14, "56, 220, FR-BT");
148  ya->SetBinLabel(15, "56, 220, FR-HR");
149  ya->SetBinLabel(16, "56, 220, FR-TP");
150  ya->SetBinLabel(17, "56, 220, NR-BP");
151  ya->SetBinLabel(18, "56, 220, NR-TP");
152  }
153 
154  h_trackCorr_hor = ibooker.book2D("track correlation hor", "ctpps_common_rp_hor", 6, -0.5, 5.5, 6, -0.5, 5.5);
155  {
156  TH2F* hist = h_trackCorr_hor->getTH2F();
157  TAxis* xa = hist->GetXaxis(), *ya = hist->GetYaxis();
158  xa->SetBinLabel(1, "45, 210, far"); ya->SetBinLabel(1, "45, 210, far");
159  xa->SetBinLabel(2, "45, 220, far"); ya->SetBinLabel(2, "45, 220, far");
160  xa->SetBinLabel(3, "45, 220, cyl"); ya->SetBinLabel(3, "45, 220, cyl");
161  xa->SetBinLabel(4, "56, 210, far"); ya->SetBinLabel(4, "56, 210, far");
162  xa->SetBinLabel(5, "56, 220, far"); ya->SetBinLabel(5, "56, 220, far");
163  xa->SetBinLabel(6, "56, 220, cyl"); ya->SetBinLabel(6, "56, 220, cyl");
164  }
165 
166  h_trackCorr_vert = ibooker.book2D("track correlation vert", "ctpps_common_rp_vert", 8, -0.5, 7.5, 8, -0.5, 7.5);
167  {
168  TH2F* hist = h_trackCorr_vert->getTH2F();
169  TAxis* xa = hist->GetXaxis(), *ya = hist->GetYaxis();
170  xa->SetBinLabel(1, "45, 210, far, top"); ya->SetBinLabel(1, "45, 210, far, top");
171  xa->SetBinLabel(2, "45, 210, far, bot"); ya->SetBinLabel(2, "45, 210, far, bot");
172  xa->SetBinLabel(3, "45, 220, far, top"); ya->SetBinLabel(3, "45, 220, far, top");
173  xa->SetBinLabel(4, "45, 220, far, bot"); ya->SetBinLabel(4, "45, 220, far, bot");
174  xa->SetBinLabel(5, "56, 210, far, top"); ya->SetBinLabel(5, "56, 210, far, top");
175  xa->SetBinLabel(6, "56, 210, far, bot"); ya->SetBinLabel(6, "56, 210, far, bot");
176  xa->SetBinLabel(7, "56, 220, far, top"); ya->SetBinLabel(7, "56, 220, far, top");
177  xa->SetBinLabel(8, "56, 220, far, bot"); ya->SetBinLabel(8, "56, 220, far, bot");
178  }
179 }
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
TH2F * getTH2F() const
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:109

Member Data Documentation

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::events_per_bx = 0

Definition at line 64 of file CTPPSCommonDQMSource.cc.

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

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::events_per_bx_short = 0

Definition at line 64 of file CTPPSCommonDQMSource.cc.

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

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_hor = 0

Definition at line 65 of file CTPPSCommonDQMSource.cc.

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

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_vert = 0

Definition at line 65 of file CTPPSCommonDQMSource.cc.

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

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::RPState = 0

Definition at line 63 of file CTPPSCommonDQMSource.cc.

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