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 = nullptr
 
MonitorElementevents_per_bx_short = nullptr
 
MonitorElementh_trackCorr_hor = nullptr
 
MonitorElementh_trackCorr_vert = nullptr
 
MonitorElementRPState = nullptr
 

Detailed Description

plots related to the whole system

Definition at line 66 of file CTPPSCommonDQMSource.cc.

Member Function Documentation

◆ Init()

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

Definition at line 111 of file CTPPSCommonDQMSource.cc.

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

References compare::hist.

Referenced by CTPPSCommonDQMSource::bookHistograms().

Member Data Documentation

◆ events_per_bx

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::events_per_bx = nullptr

Definition at line 68 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ events_per_bx_short

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::events_per_bx_short = nullptr

Definition at line 68 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ h_trackCorr_hor

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_hor = nullptr

Definition at line 69 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ h_trackCorr_vert

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_vert = nullptr

Definition at line 69 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ RPState

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::RPState = nullptr
CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_hor
MonitorElement * h_trackCorr_hor
Definition: CTPPSCommonDQMSource.cc:69
CTPPSCommonDQMSource::GlobalPlots::events_per_bx_short
MonitorElement * events_per_bx_short
Definition: CTPPSCommonDQMSource.cc:68
dqm::impl::MonitorElement::getTH2F
virtual TH2F * getTH2F()
Definition: MonitorElement.cc:992
compare.hist
hist
Definition: compare.py:376
CTPPSCommonDQMSource::MAX_LUMIS
constexpr static int MAX_LUMIS
Definition: CTPPSCommonDQMSource.cc:51
CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_vert
MonitorElement * h_trackCorr_vert
Definition: CTPPSCommonDQMSource.cc:69
CTPPSCommonDQMSource::MAX_VBINS
constexpr static int MAX_VBINS
Definition: CTPPSCommonDQMSource.cc:52
CTPPSCommonDQMSource::GlobalPlots::RPState
MonitorElement * RPState
Definition: CTPPSCommonDQMSource.cc:67
CTPPSCommonDQMSource::GlobalPlots::events_per_bx
MonitorElement * events_per_bx
Definition: CTPPSCommonDQMSource.cc:68