CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CTPPSCommonDQMSource::ArmPlots Struct Reference

plots related to one arm More...

Public Member Functions

 ArmPlots ()
 
 ArmPlots (DQMStore::IBooker &ibooker, int _id)
 

Public Attributes

MonitorElementh_numRPWithTrack_bot = 0
 
MonitorElementh_numRPWithTrack_hor = 0
 
MonitorElementh_numRPWithTrack_top = 0
 
MonitorElementh_trackCorr = 0
 
MonitorElementh_trackCorr_overlap = 0
 
int id
 

Detailed Description

plots related to one arm

Definition at line 70 of file CTPPSCommonDQMSource.cc.

Constructor & Destructor Documentation

CTPPSCommonDQMSource::ArmPlots::ArmPlots ( )
inline

Definition at line 77 of file CTPPSCommonDQMSource.cc.

References photons_cff::_id.

77 {}
CTPPSCommonDQMSource::ArmPlots::ArmPlots ( DQMStore::IBooker ibooker,
int  _id 
)

Definition at line 157 of file CTPPSCommonDQMSource.cc.

References CTPPSDetId::armName(), DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), MonitorElement::getTH2F(), h_numRPWithTrack_bot, h_numRPWithTrack_hor, h_numRPWithTrack_top, h_trackCorr, h_trackCorr_overlap, dataset::name, CTPPSDetId::nShort, CTPPSDetId::sdTrackingStrip, DQMStore::IBooker::setCurrentFolder(), and fftjetcommon_cfi::title.

157  : id(_id)
158 {
159  string name;
161 
162  ibooker.setCurrentFolder("CTPPS/common/sector " + name);
163 
164  string title = "ctpps_common_sector_" + name;
165 
166  h_numRPWithTrack_top = ibooker.book1D("number of top RPs with tracks", title+";number of top RPs with tracks", 5, -0.5, 4.5);
167  h_numRPWithTrack_hor = ibooker.book1D("number of hor RPs with tracks", title+";number of hor RPs with tracks", 5, -0.5, 4.5);
168  h_numRPWithTrack_bot = ibooker.book1D("number of bot RPs with tracks", title+";number of bot RPs with tracks", 5, -0.5, 4.5);
169 
170  h_trackCorr = ibooker.book2D("track correlation", title, 7, -0.5, 6.5, 7, -0.5, 6.5);
171  TH2F *h_trackCorr_h = h_trackCorr->getTH2F();
172  TAxis *xa = h_trackCorr_h->GetXaxis(), *ya = h_trackCorr_h->GetYaxis();
173  xa->SetBinLabel( 1, "210, far, hor"); ya->SetBinLabel( 1, "210, far, hor");
174  xa->SetBinLabel( 2, "210, far, top"); ya->SetBinLabel( 2, "210, far, top");
175  xa->SetBinLabel( 3, "210, far, bot"); ya->SetBinLabel( 3, "210, far, bot");
176  xa->SetBinLabel( 4, "220, cyl" ); ya->SetBinLabel( 4, "220, cyl" );
177  xa->SetBinLabel( 5, "220, far, hor"); ya->SetBinLabel( 5, "220, far, hor");
178  xa->SetBinLabel( 6, "220, far, top"); ya->SetBinLabel( 6, "220, far, top");
179  xa->SetBinLabel( 7, "220, far, bot"); ya->SetBinLabel( 7, "220, far, bot");
180 
181  h_trackCorr_overlap = ibooker.book2D("track correlation hor-vert overlaps", title, 7, -0.5, 6.5, 7, -0.5, 6.5);
182  h_trackCorr_h = h_trackCorr_overlap->getTH2F();
183  xa = h_trackCorr_h->GetXaxis(); ya = h_trackCorr_h->GetYaxis();
184  xa->SetBinLabel( 1, "210, far, hor"); ya->SetBinLabel( 1, "210, far, hor");
185  xa->SetBinLabel( 2, "210, far, top"); ya->SetBinLabel( 2, "210, far, top");
186  xa->SetBinLabel( 3, "210, far, bot"); ya->SetBinLabel( 3, "210, far, bot");
187  xa->SetBinLabel( 4, "220, cyl" ); ya->SetBinLabel( 4, "220, cyl" );
188  xa->SetBinLabel( 5, "220, far, hor"); ya->SetBinLabel( 5, "220, far, hor");
189  xa->SetBinLabel( 6, "220, far, top"); ya->SetBinLabel( 6, "220, far, top");
190  xa->SetBinLabel( 7, "220, far, bot"); ya->SetBinLabel( 7, "220, far, bot");
191 }
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
void armName(std::string &name, NameFlag flag=nFull) const
Definition: CTPPSDetId.h:115
TH2F * getTH2F() const
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:136
Base class for CTPPS detector IDs.
Definition: CTPPSDetId.h:32

Member Data Documentation

MonitorElement * CTPPSCommonDQMSource::ArmPlots::h_numRPWithTrack_bot = 0

Definition at line 74 of file CTPPSCommonDQMSource.cc.

Referenced by ArmPlots().

MonitorElement * CTPPSCommonDQMSource::ArmPlots::h_numRPWithTrack_hor = 0

Definition at line 74 of file CTPPSCommonDQMSource.cc.

Referenced by ArmPlots().

MonitorElement* CTPPSCommonDQMSource::ArmPlots::h_numRPWithTrack_top = 0

Definition at line 74 of file CTPPSCommonDQMSource.cc.

Referenced by ArmPlots().

MonitorElement* CTPPSCommonDQMSource::ArmPlots::h_trackCorr = 0

Definition at line 75 of file CTPPSCommonDQMSource.cc.

Referenced by ArmPlots().

MonitorElement * CTPPSCommonDQMSource::ArmPlots::h_trackCorr_overlap = 0

Definition at line 75 of file CTPPSCommonDQMSource.cc.

Referenced by ArmPlots().

int CTPPSCommonDQMSource::ArmPlots::id

Definition at line 72 of file CTPPSCommonDQMSource.cc.