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

Member Function Documentation

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

Definition at line 110 of file CTPPSCommonDQMSource.cc.

References dqm::dqmstoreimpl::DQMStore::IBooker::book1D(), dqm::dqmstoreimpl::DQMStore::IBooker::book2D(), events_per_bx, events_per_bx_short, dqm::impl::MonitorElement::getTH2F(), h_trackCorr_hor, h_trackCorr_vert, compare::hist, CTPPSCommonDQMSource::MAX_LUMIS, CTPPSCommonDQMSource::MAX_VBINS, RPState, and dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder().

Referenced by CTPPSCommonDQMSource::bookHistograms().

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

Member Data Documentation

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::events_per_bx = 0

Definition at line 62 of file CTPPSCommonDQMSource.cc.

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

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::events_per_bx_short = 0

Definition at line 62 of file CTPPSCommonDQMSource.cc.

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

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_hor = 0

Definition at line 63 of file CTPPSCommonDQMSource.cc.

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

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_vert = 0

Definition at line 63 of file CTPPSCommonDQMSource.cc.

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

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::RPState = 0

Definition at line 61 of file CTPPSCommonDQMSource.cc.

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