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

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-BP");
146  ya->SetBinLabel(9, "45, 220, NR-TP");
147  ya->SetBinLabel(10, "56, 210, FR-BT");
148  ya->SetBinLabel(11, "56, 210, FR-HR");
149  ya->SetBinLabel(12, "56, 210, FR-TP");
150  ya->SetBinLabel(13, "56, 220, C1");
151  ya->SetBinLabel(14, "56, 220, FR-BT");
152  ya->SetBinLabel(15, "56, 220, FR-HR");
153  ya->SetBinLabel(16, "56, 220, FR-TP");
154  ya->SetBinLabel(17, "56, 220, NR-BP");
155  ya->SetBinLabel(18, "56, 220, NR-TP");
156  }
157 
158  h_trackCorr_hor = ibooker.book2D("track correlation hor", "ctpps_common_rp_hor", 6, -0.5, 5.5, 6, -0.5, 5.5);
159  {
160  TH2F *hist = h_trackCorr_hor->getTH2F();
161  TAxis *xa = hist->GetXaxis(), *ya = hist->GetYaxis();
162  xa->SetBinLabel(1, "45, 210, far");
163  ya->SetBinLabel(1, "45, 210, far");
164  xa->SetBinLabel(2, "45, 220, far");
165  ya->SetBinLabel(2, "45, 220, far");
166  xa->SetBinLabel(3, "45, 220, cyl");
167  ya->SetBinLabel(3, "45, 220, cyl");
168  xa->SetBinLabel(4, "56, 210, far");
169  ya->SetBinLabel(4, "56, 210, far");
170  xa->SetBinLabel(5, "56, 220, far");
171  ya->SetBinLabel(5, "56, 220, far");
172  xa->SetBinLabel(6, "56, 220, cyl");
173  ya->SetBinLabel(6, "56, 220, cyl");
174  }
175 
176  h_trackCorr_vert = ibooker.book2D("track correlation vert", "ctpps_common_rp_vert", 8, -0.5, 7.5, 8, -0.5, 7.5);
177  {
178  TH2F *hist = h_trackCorr_vert->getTH2F();
179  TAxis *xa = hist->GetXaxis(), *ya = hist->GetYaxis();
180  xa->SetBinLabel(1, "45, 210, far, top");
181  ya->SetBinLabel(1, "45, 210, far, top");
182  xa->SetBinLabel(2, "45, 210, far, bot");
183  ya->SetBinLabel(2, "45, 210, far, bot");
184  xa->SetBinLabel(3, "45, 220, far, top");
185  ya->SetBinLabel(3, "45, 220, far, top");
186  xa->SetBinLabel(4, "45, 220, far, bot");
187  ya->SetBinLabel(4, "45, 220, far, bot");
188  xa->SetBinLabel(5, "56, 210, far, top");
189  ya->SetBinLabel(5, "56, 210, far, top");
190  xa->SetBinLabel(6, "56, 210, far, bot");
191  ya->SetBinLabel(6, "56, 210, far, bot");
192  xa->SetBinLabel(7, "56, 220, far, top");
193  ya->SetBinLabel(7, "56, 220, far, top");
194  xa->SetBinLabel(8, "56, 220, far, bot");
195  ya->SetBinLabel(8, "56, 220, far, bot");
196  }

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

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
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
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
dqm::implementation::IBooker::book2D
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:177
CTPPSCommonDQMSource::GlobalPlots::RPState
MonitorElement * RPState
Definition: CTPPSCommonDQMSource.cc:67
CTPPSCommonDQMSource::GlobalPlots::events_per_bx
MonitorElement * events_per_bx
Definition: CTPPSCommonDQMSource.cc:68
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98