CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
TotemRPDQMSource::DiagonalPlots Struct Reference

plots related to one (anti)diagonal More...

Public Member Functions

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

Public Attributes

MonitorElementh_lrc_x_d = 0
 
MonitorElementh_lrc_x_f = 0
 
MonitorElementh_lrc_x_n = 0
 
MonitorElementh_lrc_y_d = 0
 
MonitorElementh_lrc_y_f = 0
 
MonitorElementh_lrc_y_n = 0
 
int id
 

Detailed Description

plots related to one (anti)diagonal

Definition at line 76 of file TotemRPDQMSource.cc.

Constructor & Destructor Documentation

TotemRPDQMSource::DiagonalPlots::DiagonalPlots ( )
inline

Definition at line 83 of file TotemRPDQMSource.cc.

References electrons_cff::_id.

83 {}
TotemRPDQMSource::DiagonalPlots::DiagonalPlots ( DQMStore::IBooker ibooker,
int  _id 
)

Definition at line 178 of file TotemRPDQMSource.cc.

References DQMStore::IBooker::book2D(), h_lrc_x_d, h_lrc_x_f, h_lrc_x_n, h_lrc_y_d, h_lrc_y_f, h_lrc_y_n, dataset::name, and DQMStore::IBooker::setCurrentFolder().

178  : id(_id)
179 {
180  bool top45 = id & 2;
181  bool top56 = id & 1;
182  bool diag = (top45 != top56);
183 
184  char name[50];
185  sprintf(name, "%s 45%s - 56%s",
186  (diag) ? "diagonal" : "antidiagonal",
187  (top45) ? "top" : "bot",
188  (top56) ? "top" : "bot"
189  );
190 
191  ibooker.setCurrentFolder(string("CTPPS/TrackingStrip/") + name);
192 
193  // TODO: define ranges! If defined automatically, can lead to problems when histograms are merged from several instances of the module.
194  h_lrc_x_d = ibooker.book2D("dx left vs right", string(name) + " : dx left vs. right, histogram;#Delta x_{45};#Delta x_{56}", 50, 0., 0., 50, 0., 0.);
195  h_lrc_x_n = ibooker.book2D("xn left vs right", string(name) + " : xn left vs. right, histogram;x^{N}_{45};x^{N}_{56}", 50, 0., 0., 50, 0., 0.);
196  h_lrc_x_f = ibooker.book2D("xf left vs right", string(name) + " : xf left vs. right, histogram;x^{F}_{45};x^{F}_{56}", 50, 0., 0., 50, 0., 0.);
197 
198  h_lrc_y_d = ibooker.book2D("dy left vs right", string(name) + " : dy left vs. right, histogram;#Delta y_{45};#Delta y_{56}", 50, 0., 0., 50, 0., 0.);
199  h_lrc_y_n = ibooker.book2D("yn left vs right", string(name) + " : yn left vs. right, histogram;y^{N}_{45};y^{N}_{56}", 50, 0., 0., 50, 0., 0.);
200  h_lrc_y_f = ibooker.book2D("yf left vs right", string(name) + " : yf left vs. right, histogram;y^{F}_{45};y^{F}_{56}", 50, 0., 0., 50, 0., 0.);
201 }
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:279
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:136

Member Data Documentation

MonitorElement* TotemRPDQMSource::DiagonalPlots::h_lrc_x_d = 0

Definition at line 80 of file TotemRPDQMSource.cc.

Referenced by DiagonalPlots().

MonitorElement * TotemRPDQMSource::DiagonalPlots::h_lrc_x_f = 0

Definition at line 80 of file TotemRPDQMSource.cc.

Referenced by DiagonalPlots().

MonitorElement * TotemRPDQMSource::DiagonalPlots::h_lrc_x_n = 0

Definition at line 80 of file TotemRPDQMSource.cc.

Referenced by DiagonalPlots().

MonitorElement* TotemRPDQMSource::DiagonalPlots::h_lrc_y_d = 0

Definition at line 81 of file TotemRPDQMSource.cc.

Referenced by DiagonalPlots().

MonitorElement * TotemRPDQMSource::DiagonalPlots::h_lrc_y_f = 0

Definition at line 81 of file TotemRPDQMSource.cc.

Referenced by DiagonalPlots().

MonitorElement * TotemRPDQMSource::DiagonalPlots::h_lrc_y_n = 0

Definition at line 81 of file TotemRPDQMSource.cc.

Referenced by DiagonalPlots().

int TotemRPDQMSource::DiagonalPlots::id

Definition at line 78 of file TotemRPDQMSource.cc.