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

Constructor & Destructor Documentation

CTPPSCommonDQMSource::ArmPlots::ArmPlots ( )
inline

Definition at line 66 of file CTPPSCommonDQMSource.cc.

References electrons_cff::_id.

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

Definition at line 118 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.

118  : id(_id)
119 {
120  string name;
122 
123  ibooker.setCurrentFolder("CTPPS/common/sector " + name);
124 
125  string title = "ctpps_common_sector_" + name;
126 
127  h_numRPWithTrack_top = ibooker.book1D("number of top RPs with tracks", title+";number of top RPs with tracks", 5, -0.5, 4.5);
128  h_numRPWithTrack_hor = ibooker.book1D("number of hor RPs with tracks", title+";number of hor RPs with tracks", 5, -0.5, 4.5);
129  h_numRPWithTrack_bot = ibooker.book1D("number of bot RPs with tracks", title+";number of bot RPs with tracks", 5, -0.5, 4.5);
130 
131  h_trackCorr = ibooker.book2D("track correlation", title, 7, -0.5, 6.5, 7, -0.5, 6.5);
132  TH2F *h_trackCorr_h = h_trackCorr->getTH2F();
133  TAxis *xa = h_trackCorr_h->GetXaxis(), *ya = h_trackCorr_h->GetYaxis();
134  xa->SetBinLabel( 1, "210, far, hor"); ya->SetBinLabel( 1, "210, far, hor");
135  xa->SetBinLabel( 2, "210, far, top"); ya->SetBinLabel( 2, "210, far, top");
136  xa->SetBinLabel( 3, "210, far, bot"); ya->SetBinLabel( 3, "210, far, bot");
137  xa->SetBinLabel( 4, "220, cyl" ); ya->SetBinLabel( 4, "220, cyl" );
138  xa->SetBinLabel( 5, "220, far, hor"); ya->SetBinLabel( 5, "220, far, hor");
139  xa->SetBinLabel( 6, "220, far, top"); ya->SetBinLabel( 6, "220, far, top");
140  xa->SetBinLabel( 7, "220, far, bot"); ya->SetBinLabel( 7, "220, far, bot");
141 
142  h_trackCorr_overlap = ibooker.book2D("track correlation hor-vert overlaps", title, 7, -0.5, 6.5, 7, -0.5, 6.5);
143  h_trackCorr_h = h_trackCorr_overlap->getTH2F();
144  xa = h_trackCorr_h->GetXaxis(); ya = h_trackCorr_h->GetYaxis();
145  xa->SetBinLabel( 1, "210, far, hor"); ya->SetBinLabel( 1, "210, far, hor");
146  xa->SetBinLabel( 2, "210, far, top"); ya->SetBinLabel( 2, "210, far, top");
147  xa->SetBinLabel( 3, "210, far, bot"); ya->SetBinLabel( 3, "210, far, bot");
148  xa->SetBinLabel( 4, "220, cyl" ); ya->SetBinLabel( 4, "220, cyl" );
149  xa->SetBinLabel( 5, "220, far, hor"); ya->SetBinLabel( 5, "220, far, hor");
150  xa->SetBinLabel( 6, "220, far, top"); ya->SetBinLabel( 6, "220, far, top");
151  xa->SetBinLabel( 7, "220, far, bot"); ya->SetBinLabel( 7, "220, far, bot");
152 }
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:279
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 63 of file CTPPSCommonDQMSource.cc.

Referenced by ArmPlots().

MonitorElement * CTPPSCommonDQMSource::ArmPlots::h_numRPWithTrack_hor = 0

Definition at line 63 of file CTPPSCommonDQMSource.cc.

Referenced by ArmPlots().

MonitorElement* CTPPSCommonDQMSource::ArmPlots::h_numRPWithTrack_top = 0

Definition at line 63 of file CTPPSCommonDQMSource.cc.

Referenced by ArmPlots().

MonitorElement* CTPPSCommonDQMSource::ArmPlots::h_trackCorr = 0

Definition at line 64 of file CTPPSCommonDQMSource.cc.

Referenced by ArmPlots().

MonitorElement * CTPPSCommonDQMSource::ArmPlots::h_trackCorr_overlap = 0

Definition at line 64 of file CTPPSCommonDQMSource.cc.

Referenced by ArmPlots().

int CTPPSCommonDQMSource::ArmPlots::id

Definition at line 61 of file CTPPSCommonDQMSource.cc.