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

Member Function Documentation

◆ Init()

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

Definition at line 113 of file CTPPSCommonDQMSource.cc.

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", 6, -0.5, 5.5, 6, -0.5, 5.5);
160  {
161  TH2F *hist = h_trackCorr_hor->getTH2F();
162  TAxis *xa = hist->GetXaxis(), *ya = hist->GetYaxis();
163  xa->SetBinLabel(1, "45, 210, far");
164  ya->SetBinLabel(1, "45, 210, far");
165  xa->SetBinLabel(2, "45, 220, far");
166  ya->SetBinLabel(2, "45, 220, far");
167  xa->SetBinLabel(3, "45, 220, cyl");
168  ya->SetBinLabel(3, "45, 220, cyl");
169  xa->SetBinLabel(4, "56, 210, far");
170  ya->SetBinLabel(4, "56, 210, far");
171  xa->SetBinLabel(5, "56, 220, far");
172  ya->SetBinLabel(5, "56, 220, far");
173  xa->SetBinLabel(6, "56, 220, cyl");
174  ya->SetBinLabel(6, "56, 220, cyl");
175  }
176 
177  h_trackCorr_vert = ibooker.book2D("track correlation vert", "ctpps_common_rp_vert", 8, -0.5, 7.5, 8, -0.5, 7.5);
178  {
179  TH2F *hist = h_trackCorr_vert->getTH2F();
180  TAxis *xa = hist->GetXaxis(), *ya = hist->GetYaxis();
181  xa->SetBinLabel(1, "45, 210, far, top");
182  ya->SetBinLabel(1, "45, 210, far, top");
183  xa->SetBinLabel(2, "45, 210, far, bot");
184  ya->SetBinLabel(2, "45, 210, far, bot");
185  xa->SetBinLabel(3, "45, 220, far, top");
186  ya->SetBinLabel(3, "45, 220, far, top");
187  xa->SetBinLabel(4, "45, 220, far, bot");
188  ya->SetBinLabel(4, "45, 220, far, bot");
189  xa->SetBinLabel(5, "56, 210, far, top");
190  ya->SetBinLabel(5, "56, 210, far, top");
191  xa->SetBinLabel(6, "56, 210, far, bot");
192  ya->SetBinLabel(6, "56, 210, far, bot");
193  xa->SetBinLabel(7, "56, 220, far, top");
194  ya->SetBinLabel(7, "56, 220, far, top");
195  xa->SetBinLabel(8, "56, 220, far, bot");
196  ya->SetBinLabel(8, "56, 220, far, bot");
197  }

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), gpuVertexFinder::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 69 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ events_per_bx_short

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::events_per_bx_short = nullptr

Definition at line 69 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ h_trackCorr_hor

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_hor = nullptr

Definition at line 70 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource::analyzeTracks().

◆ h_trackCorr_vert

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_vert = nullptr

Definition at line 70 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:70
CTPPSCommonDQMSource::GlobalPlots::events_per_bx_short
MonitorElement * events_per_bx_short
Definition: CTPPSCommonDQMSource.cc:69
dqm::impl::MonitorElement::getTH2F
virtual TH2F * getTH2F()
Definition: MonitorElement.cc:995
CTPPSCommonDQMSource::MAX_LUMIS
constexpr static int MAX_LUMIS
Definition: CTPPSCommonDQMSource.cc:51
CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_vert
MonitorElement * h_trackCorr_vert
Definition: CTPPSCommonDQMSource.cc:70
CTPPSCommonDQMSource::MAX_VBINS
constexpr static int MAX_VBINS
Definition: CTPPSCommonDQMSource.cc:52
gpuVertexFinder::hist
__shared__ Hist hist
Definition: gpuClusterTracksDBSCAN.h:48
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:68
CTPPSCommonDQMSource::GlobalPlots::events_per_bx
MonitorElement * events_per_bx
Definition: CTPPSCommonDQMSource.cc:69
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