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

Member Function Documentation

◆ Init()

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

Definition at line 114 of file CTPPSCommonDQMSource.cc.

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), gpuVertexFinder::hist, and dqm::implementation::NavigatorBase::setCurrentFolder().

Referenced by CTPPSCommonDQMSource::bookHistograms().

114  {
115  ibooker.setCurrentFolder("CTPPS/common");
116 
117  events_per_bx = ibooker.book1D("events per BX", "rp;Event.BX", 4002, -1.5, 4000. + 0.5);
118  events_per_bx_short = ibooker.book1D("events per BX (short)", "rp;Event.BX", 102, -1.5, 100. + 0.5);
119 
120  /*
121  RP State (HV & LV & Insertion):
122  0 -> not used
123  1 -> bad
124  2 -> warning
125  3 -> ok
126  */
127  RPState = ibooker.book2D("rpstate per LS",
128  "RP State per Lumisection;Luminosity Section;",
129  MAX_LUMIS,
130  0,
131  MAX_LUMIS,
132  MAX_VBINS,
133  0.,
134  MAX_VBINS);
135  {
136  TH2F *hist = RPState->getTH2F();
137  hist->SetCanExtend(TH1::kAllAxes);
138  TAxis *ya = hist->GetYaxis();
139  ya->SetBinLabel(1, "45, 210, FR-BT");
140  ya->SetBinLabel(2, "45, 210, FR-HR");
141  ya->SetBinLabel(3, "45, 210, FR-TP");
142  ya->SetBinLabel(4, "45, 220, C1");
143  ya->SetBinLabel(5, "45, 220, FR-BT");
144  ya->SetBinLabel(6, "45, 220, FR-HR");
145  ya->SetBinLabel(7, "45, 220, FR-TP");
146  ya->SetBinLabel(8, "45, 220, NR-BP");
147  ya->SetBinLabel(9, "45, 220, NR-TP");
148  ya->SetBinLabel(10, "56, 210, FR-BT");
149  ya->SetBinLabel(11, "56, 210, FR-HR");
150  ya->SetBinLabel(12, "56, 210, FR-TP");
151  ya->SetBinLabel(13, "56, 220, C1");
152  ya->SetBinLabel(14, "56, 220, FR-BT");
153  ya->SetBinLabel(15, "56, 220, FR-HR");
154  ya->SetBinLabel(16, "56, 220, FR-TP");
155  ya->SetBinLabel(17, "56, 220, NR-BP");
156  ya->SetBinLabel(18, "56, 220, NR-TP");
157  }
158 
159  h_trackCorr_hor = ibooker.book2D("track correlation hor", "ctpps_common_rp_hor", 8, -0.5, 7.5, 8, -0.5, 7.5);
160  {
161  TH2F *hist = h_trackCorr_hor->getTH2F();
162  TAxis *xa = hist->GetXaxis(), *ya = hist->GetYaxis();
163  xa->SetBinLabel(1, "45, 210, FR");
164  ya->SetBinLabel(1, "45, 210, FR");
165  xa->SetBinLabel(2, "45, 220, NR");
166  ya->SetBinLabel(2, "45, 220, NR");
167  xa->SetBinLabel(3, "45, 220, C1");
168  ya->SetBinLabel(3, "45, 220, C1");
169  xa->SetBinLabel(4, "45, 220, FR");
170  ya->SetBinLabel(4, "45, 220, FR");
171 
172  xa->SetBinLabel(5, "56, 210, FR");
173  ya->SetBinLabel(5, "56, 210, FR");
174  xa->SetBinLabel(6, "56, 220, NR");
175  ya->SetBinLabel(6, "56, 220, NR");
176  xa->SetBinLabel(7, "56, 220, C1");
177  ya->SetBinLabel(7, "56, 220, C1");
178  xa->SetBinLabel(8, "56, 220, FR");
179  ya->SetBinLabel(8, "56, 220, FR");
180  }
181 
182  h_trackCorr_vert = ibooker.book2D("track correlation vert", "ctpps_common_rp_vert", 8, -0.5, 7.5, 8, -0.5, 7.5);
183  {
184  TH2F *hist = h_trackCorr_vert->getTH2F();
185  TAxis *xa = hist->GetXaxis(), *ya = hist->GetYaxis();
186  xa->SetBinLabel(1, "45, 210, FR-TP");
187  ya->SetBinLabel(1, "45, 210, FR-TP");
188  xa->SetBinLabel(2, "45, 210, FR-BT");
189  ya->SetBinLabel(2, "45, 210, FR-BT");
190  xa->SetBinLabel(3, "45, 220, FR-TP");
191  ya->SetBinLabel(3, "45, 220, FR-TP");
192  xa->SetBinLabel(4, "45, 220, FR-BT");
193  ya->SetBinLabel(4, "45, 220, FR-BT");
194  xa->SetBinLabel(5, "56, 210, FR-TP");
195  ya->SetBinLabel(5, "56, 210, FR-TP");
196  xa->SetBinLabel(6, "56, 210, FR-BT");
197  ya->SetBinLabel(6, "56, 210, FR-BT");
198  xa->SetBinLabel(7, "56, 220, FR-TP");
199  ya->SetBinLabel(7, "56, 220, FR-TP");
200  xa->SetBinLabel(8, "56, 220, FR-BT");
201  ya->SetBinLabel(8, "56, 220, FR-BT");
202  }
203 }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
static constexpr int MAX_VBINS
__shared__ Hist hist
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:212
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
static constexpr int MAX_LUMIS

Member Data Documentation

◆ events_per_bx

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::events_per_bx = nullptr

Definition at line 65 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ events_per_bx_short

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::events_per_bx_short = nullptr

Definition at line 65 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ h_trackCorr_hor

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_hor = nullptr

Definition at line 66 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ h_trackCorr_vert

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_vert = nullptr

Definition at line 66 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ RPState

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::RPState = nullptr