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 203 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.

203  : id(_id)
204 {
205  string path;
207  ibooker.setCurrentFolder(path);
208 
209  string title;
211 
212  h_numRPWithTrack_top = ibooker.book1D("number of top RPs with tracks", title+";number of top RPs with tracks", 5, -0.5, 4.5);
213  h_numRPWithTrack_hor = ibooker.book1D("number of hor RPs with tracks", title+";number of hor RPs with tracks", 5, -0.5, 4.5);
214  h_numRPWithTrack_bot = ibooker.book1D("number of bot RPs with tracks", title+";number of bot RPs with tracks", 5, -0.5, 4.5);
215 
216  h_trackCorr = ibooker.book2D("track RP correlation", title, 13, -0.5, 12.5, 13, -0.5, 12.5);
217  TH2F *h_trackCorr_h = h_trackCorr->getTH2F();
218  TAxis *xa = h_trackCorr_h->GetXaxis(), *ya = h_trackCorr_h->GetYaxis();
219  xa->SetBinLabel(1, "210, near, top"); ya->SetBinLabel(1, "210, near, top");
220  xa->SetBinLabel(2, "bot"); ya->SetBinLabel(2, "bot");
221  xa->SetBinLabel(3, "hor"); ya->SetBinLabel(3, "hor");
222  xa->SetBinLabel(4, "far, hor"); ya->SetBinLabel(4, "far, hor");
223  xa->SetBinLabel(5, "top"); ya->SetBinLabel(5, "top");
224  xa->SetBinLabel(6, "bot"); ya->SetBinLabel(6, "bot");
225  xa->SetBinLabel(8, "220, near, top"); ya->SetBinLabel(8, "220, near, top");
226  xa->SetBinLabel(9, "bot"); ya->SetBinLabel(9, "bot");
227  xa->SetBinLabel(10, "hor"); ya->SetBinLabel(10, "hor");
228  xa->SetBinLabel(11, "far, hor"); ya->SetBinLabel(11, "far, hor");
229  xa->SetBinLabel(12, "top"); ya->SetBinLabel(12, "top");
230  xa->SetBinLabel(13, "bot"); ya->SetBinLabel(13, "bot");
231 
232  h_trackCorr_overlap = ibooker.book2D("track RP correlation hor-vert overlaps", title, 13, -0.5, 12.5, 13, -0.5, 12.5);
233  h_trackCorr_h = h_trackCorr_overlap->getTH2F();
234  xa = h_trackCorr_h->GetXaxis(); ya = h_trackCorr_h->GetYaxis();
235  xa->SetBinLabel(1, "210, near, top"); ya->SetBinLabel(1, "210, near, top");
236  xa->SetBinLabel(2, "bot"); ya->SetBinLabel(2, "bot");
237  xa->SetBinLabel(3, "hor"); ya->SetBinLabel(3, "hor");
238  xa->SetBinLabel(4, "far, hor"); ya->SetBinLabel(4, "far, hor");
239  xa->SetBinLabel(5, "top"); ya->SetBinLabel(5, "top");
240  xa->SetBinLabel(6, "bot"); ya->SetBinLabel(6, "bot");
241  xa->SetBinLabel(8, "220, near, top"); ya->SetBinLabel(8, "220, near, top");
242  xa->SetBinLabel(9, "bot"); ya->SetBinLabel(9, "bot");
243  xa->SetBinLabel(10, "hor"); ya->SetBinLabel(10, "hor");
244  xa->SetBinLabel(11, "far, hor"); ya->SetBinLabel(11, "far, hor");
245  xa->SetBinLabel(12, "top"); ya->SetBinLabel(12, "top");
246  xa->SetBinLabel(13, "bot"); ya->SetBinLabel(13, "bot");
247 }
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.