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
 

Detailed Description

plots related to the whole system

Definition at line 48 of file CTPPSCommonDQMSource.cc.

Member Function Documentation

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

Definition at line 82 of file CTPPSCommonDQMSource.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), events_per_bx, events_per_bx_short, MonitorElement::getTH2F(), h_trackCorr_hor, h_trackCorr_vert, create_public_lumi_plots::hist, and DQMStore::IBooker::setCurrentFolder().

Referenced by CTPPSCommonDQMSource::bookHistograms().

83 {
84  ibooker.setCurrentFolder("CTPPS/common");
85 
86  events_per_bx = ibooker.book1D("events per BX", "rp;Event.BX", 4002, -1.5, 4000. + 0.5);
87  events_per_bx_short = ibooker.book1D("events per BX (short)", "rp;Event.BX", 102, -1.5, 100. + 0.5);
88 
89  h_trackCorr_hor = ibooker.book2D("track correlation hor", "ctpps_common_rp_hor", 6, -0.5, 5.5, 6, -0.5, 5.5);
90  {
91  TH2F* hist = h_trackCorr_hor->getTH2F();
92  TAxis* xa = hist->GetXaxis(), *ya = hist->GetYaxis();
93  xa->SetBinLabel(1, "45, 210, far"); ya->SetBinLabel(1, "45, 210, far");
94  xa->SetBinLabel(2, "45, 220, far"); ya->SetBinLabel(2, "45, 220, far");
95  xa->SetBinLabel(3, "45, 220, cyl"); ya->SetBinLabel(3, "45, 220, cyl");
96  xa->SetBinLabel(4, "56, 210, far"); ya->SetBinLabel(4, "56, 210, far");
97  xa->SetBinLabel(5, "56, 220, far"); ya->SetBinLabel(5, "56, 220, far");
98  xa->SetBinLabel(6, "56, 220, cyl"); ya->SetBinLabel(6, "56, 220, cyl");
99  }
100 
101  h_trackCorr_vert = ibooker.book2D("track correlation vert", "ctpps_common_rp_vert", 8, -0.5, 7.5, 8, -0.5, 7.5);
102  {
103  TH2F* hist = h_trackCorr_vert->getTH2F();
104  TAxis* xa = hist->GetXaxis(), *ya = hist->GetYaxis();
105  xa->SetBinLabel(1, "45, 210, far, top"); ya->SetBinLabel(1, "45, 210, far, top");
106  xa->SetBinLabel(2, "45, 210, far, bot"); ya->SetBinLabel(2, "45, 210, far, bot");
107  xa->SetBinLabel(3, "45, 220, far, top"); ya->SetBinLabel(3, "45, 220, far, top");
108  xa->SetBinLabel(4, "45, 220, far, bot"); ya->SetBinLabel(4, "45, 220, far, bot");
109  xa->SetBinLabel(5, "56, 210, far, top"); ya->SetBinLabel(5, "56, 210, far, top");
110  xa->SetBinLabel(6, "56, 210, far, bot"); ya->SetBinLabel(6, "56, 210, far, bot");
111  xa->SetBinLabel(7, "56, 220, far, top"); ya->SetBinLabel(7, "56, 220, far, top");
112  xa->SetBinLabel(8, "56, 220, far, bot"); ya->SetBinLabel(8, "56, 220, far, bot");
113  }
114 }
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
TH2F * getTH2F() const
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:279
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:136

Member Data Documentation

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::events_per_bx = 0

Definition at line 50 of file CTPPSCommonDQMSource.cc.

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

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::events_per_bx_short = 0

Definition at line 50 of file CTPPSCommonDQMSource.cc.

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

MonitorElement* CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_hor = 0

Definition at line 51 of file CTPPSCommonDQMSource.cc.

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

MonitorElement * CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_vert = 0

Definition at line 51 of file CTPPSCommonDQMSource.cc.

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