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::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 174 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, mergeVDriftHistosByStation::name, and DQMStore::IBooker::setCurrentFolder().

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