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 =NULL
 
MonitorElementh_lrc_x_f =NULL
 
MonitorElementh_lrc_x_n =NULL
 
MonitorElementh_lrc_y_d =NULL
 
MonitorElementh_lrc_y_f =NULL
 
MonitorElementh_lrc_y_n =NULL
 
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.

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

Definition at line 176 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().

176  : id(_id)
177 {
178  bool top45 = id & 2;
179  bool top56 = id & 1;
180  bool diag = (top45 != top56);
181 
182  char name[50];
183  sprintf(name, "%s 45%s - 56%s",
184  (diag) ? "diagonal" : "antidiagonal",
185  (top45) ? "top" : "bot",
186  (top56) ? "top" : "bot"
187  );
188 
189  ibooker.setCurrentFolder(string("CTPPS/TrackingStrip/") + name);
190 
191  // TODO: define ranges! If defined automatically, can lead to problems when histograms are merged from several instances of the module.
192  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.);
193  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.);
194  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.);
195 
196  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.);
197  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.);
198  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.);
199 }
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:277
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:133

Member Data Documentation

MonitorElement* TotemRPDQMSource::DiagonalPlots::h_lrc_x_d =NULL

Definition at line 80 of file TotemRPDQMSource.cc.

Referenced by DiagonalPlots().

MonitorElement * TotemRPDQMSource::DiagonalPlots::h_lrc_x_f =NULL

Definition at line 80 of file TotemRPDQMSource.cc.

Referenced by DiagonalPlots().

MonitorElement * TotemRPDQMSource::DiagonalPlots::h_lrc_x_n =NULL

Definition at line 80 of file TotemRPDQMSource.cc.

Referenced by DiagonalPlots().

MonitorElement* TotemRPDQMSource::DiagonalPlots::h_lrc_y_d =NULL

Definition at line 81 of file TotemRPDQMSource.cc.

Referenced by DiagonalPlots().

MonitorElement * TotemRPDQMSource::DiagonalPlots::h_lrc_y_f =NULL

Definition at line 81 of file TotemRPDQMSource.cc.

Referenced by DiagonalPlots().

MonitorElement * TotemRPDQMSource::DiagonalPlots::h_lrc_y_n =NULL

Definition at line 81 of file TotemRPDQMSource.cc.

Referenced by DiagonalPlots().

int TotemRPDQMSource::DiagonalPlots::id

Definition at line 78 of file TotemRPDQMSource.cc.