test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
TotemRPDQMSource::ArmPlots Struct Reference

plots related to one arm More...

Public Member Functions

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

Public Attributes

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

Detailed Description

plots related to one arm

Definition at line 91 of file TotemRPDQMSource.cc.

Constructor & Destructor Documentation

TotemRPDQMSource::ArmPlots::ArmPlots ( )
inline

Definition at line 98 of file TotemRPDQMSource.cc.

98 {}
TotemRPDQMSource::ArmPlots::ArmPlots ( DQMStore::IBooker ibooker,
int  _id 
)

Definition at line 201 of file TotemRPDQMSource.cc.

References TotemRPDetId::armName(), DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), MonitorElement::getTH2F(), h_numRPWithTrack_bot, h_numRPWithTrack_hor, h_numRPWithTrack_top, h_trackCorr, h_trackCorr_overlap, TotemRPDetId::nFull, TotemRPDetId::nPath, fed_dqm_sourceclient-live_cfg::path, DQMStore::IBooker::setCurrentFolder(), and indexGen::title.

201  : id(_id)
202 {
204  path.replace(0, 2, "TrackingStrip");
205  ibooker.setCurrentFolder(string("CTPPS/") + path);
206 
208 
209  h_numRPWithTrack_top = ibooker.book1D("number of top RPs with tracks", title+";number of top RPs with tracks", 5, -0.5, 4.5);
210  h_numRPWithTrack_hor = ibooker.book1D("number of hor RPs with tracks", title+";number of hor RPs with tracks", 5, -0.5, 4.5);
211  h_numRPWithTrack_bot = ibooker.book1D("number of bot RPs with tracks", title+";number of bot RPs with tracks", 5, -0.5, 4.5);
212 
213  h_trackCorr = ibooker.book2D("track RP correlation", title, 13, -0.5, 12.5, 13, -0.5, 12.5);
214  TH2F *h_trackCorr_h = h_trackCorr->getTH2F();
215  TAxis *xa = h_trackCorr_h->GetXaxis(), *ya = h_trackCorr_h->GetYaxis();
216  xa->SetBinLabel(1, "210, near, top"); ya->SetBinLabel(1, "210, near, top");
217  xa->SetBinLabel(2, "bot"); ya->SetBinLabel(2, "bot");
218  xa->SetBinLabel(3, "hor"); ya->SetBinLabel(3, "hor");
219  xa->SetBinLabel(4, "far, hor"); ya->SetBinLabel(4, "far, hor");
220  xa->SetBinLabel(5, "top"); ya->SetBinLabel(5, "top");
221  xa->SetBinLabel(6, "bot"); ya->SetBinLabel(6, "bot");
222  xa->SetBinLabel(8, "220, near, top"); ya->SetBinLabel(8, "220, near, top");
223  xa->SetBinLabel(9, "bot"); ya->SetBinLabel(9, "bot");
224  xa->SetBinLabel(10, "hor"); ya->SetBinLabel(10, "hor");
225  xa->SetBinLabel(11, "far, hor"); ya->SetBinLabel(11, "far, hor");
226  xa->SetBinLabel(12, "top"); ya->SetBinLabel(12, "top");
227  xa->SetBinLabel(13, "bot"); ya->SetBinLabel(13, "bot");
228 
229  h_trackCorr_overlap = ibooker.book2D("track RP correlation hor-vert overlaps", title, 13, -0.5, 12.5, 13, -0.5, 12.5);
230  h_trackCorr_h = h_trackCorr_overlap->getTH2F();
231  xa = h_trackCorr_h->GetXaxis(); ya = h_trackCorr_h->GetYaxis();
232  xa->SetBinLabel(1, "210, near, top"); ya->SetBinLabel(1, "210, near, top");
233  xa->SetBinLabel(2, "bot"); ya->SetBinLabel(2, "bot");
234  xa->SetBinLabel(3, "hor"); ya->SetBinLabel(3, "hor");
235  xa->SetBinLabel(4, "far, hor"); ya->SetBinLabel(4, "far, hor");
236  xa->SetBinLabel(5, "top"); ya->SetBinLabel(5, "top");
237  xa->SetBinLabel(6, "bot"); ya->SetBinLabel(6, "bot");
238  xa->SetBinLabel(8, "220, near, top"); ya->SetBinLabel(8, "220, near, top");
239  xa->SetBinLabel(9, "bot"); ya->SetBinLabel(9, "bot");
240  xa->SetBinLabel(10, "hor"); ya->SetBinLabel(10, "hor");
241  xa->SetBinLabel(11, "far, hor"); ya->SetBinLabel(11, "far, hor");
242  xa->SetBinLabel(12, "top"); ya->SetBinLabel(12, "top");
243  xa->SetBinLabel(13, "bot"); ya->SetBinLabel(13, "bot");
244 }
MonitorElement * h_trackCorr_overlap
MonitorElement * h_numRPWithTrack_top
MonitorElement * h_numRPWithTrack_hor
MonitorElement * h_numRPWithTrack_bot
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:276
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
static std::string armName(unsigned int id, NameFlag flag=nFull)
returns official name of an arm characterized by ''id''; if ''full'' is true, prefix rp_ added ...
Definition: TotemRPDetId.cc:92
TH2F * getTH2F(void) const

Member Data Documentation

MonitorElement * TotemRPDQMSource::ArmPlots::h_numRPWithTrack_bot =NULL

Definition at line 95 of file TotemRPDQMSource.cc.

Referenced by ArmPlots().

MonitorElement * TotemRPDQMSource::ArmPlots::h_numRPWithTrack_hor =NULL

Definition at line 95 of file TotemRPDQMSource.cc.

Referenced by ArmPlots().

MonitorElement* TotemRPDQMSource::ArmPlots::h_numRPWithTrack_top =NULL

Definition at line 95 of file TotemRPDQMSource.cc.

Referenced by ArmPlots().

MonitorElement* TotemRPDQMSource::ArmPlots::h_trackCorr =NULL

Definition at line 96 of file TotemRPDQMSource.cc.

Referenced by TotemRPDQMSource::analyze(), and ArmPlots().

MonitorElement * TotemRPDQMSource::ArmPlots::h_trackCorr_overlap =NULL

Definition at line 96 of file TotemRPDQMSource.cc.

Referenced by TotemRPDQMSource::analyze(), and ArmPlots().

int TotemRPDQMSource::ArmPlots::id

Definition at line 93 of file TotemRPDQMSource.cc.