CMS 3D CMS Logo

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 205 of file TotemRPDQMSource.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, CTPPSDetId::nFull, CTPPSDetId::nPath, callgraph::path, DQMStore::IBooker::setCurrentFolder(), and fftjetcommon_cfi::title.

205  : id(_id)
206 {
207  string path;
209  ibooker.setCurrentFolder(path);
210 
211  string title;
213 
214  h_numRPWithTrack_top = ibooker.book1D("number of top RPs with tracks", title+";number of top RPs with tracks", 5, -0.5, 4.5);
215  h_numRPWithTrack_hor = ibooker.book1D("number of hor RPs with tracks", title+";number of hor RPs with tracks", 5, -0.5, 4.5);
216  h_numRPWithTrack_bot = ibooker.book1D("number of bot RPs with tracks", title+";number of bot RPs with tracks", 5, -0.5, 4.5);
217 
218  h_trackCorr = ibooker.book2D("track RP correlation", title, 13, -0.5, 12.5, 13, -0.5, 12.5);
219  TH2F *h_trackCorr_h = h_trackCorr->getTH2F();
220  TAxis *xa = h_trackCorr_h->GetXaxis(), *ya = h_trackCorr_h->GetYaxis();
221  xa->SetBinLabel(1, "210, near, top"); ya->SetBinLabel(1, "210, near, top");
222  xa->SetBinLabel(2, "bot"); ya->SetBinLabel(2, "bot");
223  xa->SetBinLabel(3, "hor"); ya->SetBinLabel(3, "hor");
224  xa->SetBinLabel(4, "far, hor"); ya->SetBinLabel(4, "far, hor");
225  xa->SetBinLabel(5, "top"); ya->SetBinLabel(5, "top");
226  xa->SetBinLabel(6, "bot"); ya->SetBinLabel(6, "bot");
227  xa->SetBinLabel(8, "220, near, top"); ya->SetBinLabel(8, "220, near, top");
228  xa->SetBinLabel(9, "bot"); ya->SetBinLabel(9, "bot");
229  xa->SetBinLabel(10, "hor"); ya->SetBinLabel(10, "hor");
230  xa->SetBinLabel(11, "far, hor"); ya->SetBinLabel(11, "far, hor");
231  xa->SetBinLabel(12, "top"); ya->SetBinLabel(12, "top");
232  xa->SetBinLabel(13, "bot"); ya->SetBinLabel(13, "bot");
233 
234  h_trackCorr_overlap = ibooker.book2D("track RP correlation hor-vert overlaps", title, 13, -0.5, 12.5, 13, -0.5, 12.5);
235  h_trackCorr_h = h_trackCorr_overlap->getTH2F();
236  xa = h_trackCorr_h->GetXaxis(); ya = h_trackCorr_h->GetYaxis();
237  xa->SetBinLabel(1, "210, near, top"); ya->SetBinLabel(1, "210, near, top");
238  xa->SetBinLabel(2, "bot"); ya->SetBinLabel(2, "bot");
239  xa->SetBinLabel(3, "hor"); ya->SetBinLabel(3, "hor");
240  xa->SetBinLabel(4, "far, hor"); ya->SetBinLabel(4, "far, hor");
241  xa->SetBinLabel(5, "top"); ya->SetBinLabel(5, "top");
242  xa->SetBinLabel(6, "bot"); ya->SetBinLabel(6, "bot");
243  xa->SetBinLabel(8, "220, near, top"); ya->SetBinLabel(8, "220, near, top");
244  xa->SetBinLabel(9, "bot"); ya->SetBinLabel(9, "bot");
245  xa->SetBinLabel(10, "hor"); ya->SetBinLabel(10, "hor");
246  xa->SetBinLabel(11, "far, hor"); ya->SetBinLabel(11, "far, hor");
247  xa->SetBinLabel(12, "top"); ya->SetBinLabel(12, "top");
248  xa->SetBinLabel(13, "bot"); ya->SetBinLabel(13, "bot");
249 }
Detector ID class for TOTEM Si strip detectors.
Definition: TotemRPDetId.h:30
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 armName(std::string &name, NameFlag flag=nFull) const
Definition: CTPPSDetId.h:115
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:277
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133
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.