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

Member Function Documentation

◆ Init()

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

Definition at line 113 of file CTPPSCommonDQMSource.cc.

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

Referenced by CTPPSCommonDQMSource::bookHistograms().

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

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ events_per_bx_short

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::events_per_bx_short = nullptr

Definition at line 64 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ h_trackCorr_hor

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_hor = nullptr

Definition at line 65 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ h_trackCorr_vert

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_vert = nullptr

Definition at line 65 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ RPState

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::RPState = nullptr