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
HRes2DHit Class Reference

#include <Histograms.h>

Public Member Functions

void Fill (float angleSimSegment, float angleRecSegment, float posSimSegment, float posRecSegment, float etaSimSegment, float phiSimSegment, float sigmaPos, float sigmaAngle)
 
 HRes2DHit (std::string name_, DQMStore *dbe_, bool doall=true, bool local=true)
 
 ~HRes2DHit ()
 

Public Attributes

bool _doall
 
MonitorElementhPullAngle
 
MonitorElementhPullPos
 
MonitorElementhRecAngle
 
MonitorElementhRecVsSimAngle
 
MonitorElementhResAngle
 
MonitorElementhResAngleVsEta
 
MonitorElementhResAngleVsPhi
 
MonitorElementhResPos
 
MonitorElementhResPosVsEta
 
MonitorElementhResPosVsPhi
 
MonitorElementhResPosVsResAngle
 
MonitorElementhSimAngle
 
TString name
 

Detailed Description

Definition at line 330 of file Histograms.h.

Constructor & Destructor Documentation

HRes2DHit::HRes2DHit ( std::string  name_,
DQMStore dbe_,
bool  doall = true,
bool  local = true 
)
inline

Definition at line 332 of file Histograms.h.

References _doall, DQMStore::book1D(), DQMStore::book2D(), hPullAngle, hPullPos, hRecAngle, hRecVsSimAngle, hResAngle, hResAngleVsEta, hResAngleVsPhi, hResPos, hResPosVsEta, hResPosVsPhi, hResPosVsResAngle, hSimAngle, and DQMStore::setCurrentFolder().

332  {
333  _doall = doall;
334  std::string pre ="2D_";
335  pre += name_;
336  dbe_->setCurrentFolder("DT/2DSegments/Res/");
337  if(doall){
338  hRecAngle=0;hRecAngle = dbe_->book1D (pre+"_hRecAngle", "Distribution of Rec segment angles;angle (rad)",100, -3.5, 3.5);
339  hSimAngle=0;hSimAngle = dbe_->book1D (pre+"_hSimAngle", "Distribution of segment angles from SimHits;angle (rad)",100, -3.5, 3.5);
340  hRecVsSimAngle=0;hRecVsSimAngle = dbe_->book2D (pre+"_hRecVsSimAngle", "Rec angle vs sim angle;angle (rad)",100, -3.5, 3.5, 100, -3.5, 3.5);
341  hResAngleVsEta=0;hResAngleVsEta = dbe_->book2D (pre+"_hResAngleVsEta", "Residual on 2D segment angle vs Eta; #eta; res (rad)",100, -2.5, 2.5, 200, -0.2, 0.2);
342  hResAngleVsPhi=0;hResAngleVsPhi = dbe_->book2D (pre+"_hResAngleVsPhi", "Residual on 2D segment angle vs Phi; #phi (rad);res (rad)",
343  100, -3.2, 3.2, 150, -0.2, 0.2);
344  hResPosVsEta=0;hResPosVsEta = dbe_->book2D (pre+"_hResPosVsEta", "Residual on 2D segment position vs Eta;#eta;res (cm)",
345  100, -2.5, 2.5, 150, -0.2, 0.2);
346  hResPosVsPhi=0;hResPosVsPhi = dbe_->book2D (pre+"_hResPosVsPhi", "Residual on 2D segment position vs Phi;#phi (rad);res (cm)",
347  100, -3.2, 3.2, 150, -0.2, 0.2);
348 
349  hResPosVsResAngle=0;hResPosVsResAngle = dbe_->book2D(pre+"_hResPosVsResAngle",
350  "Residual on 2D segment position vs Residual on 2D segment angle;angle (rad);res (cm)",
351  100, -0.3, 0.3, 150, -0.2, 0.2);
352 
353  }
354 
355  hResAngle=0; hResAngle = dbe_->book1D (pre+"_hResAngle", "Residual on 2D segment angle;angle_{rec}-angle_{sim} (rad)", 50, -0.01, 0.01);
356 
357  hResPos=0;hResPos = dbe_->book1D (pre+"_hResPos", "Residual on 2D segment position (x at SL center);x_{rec}-x_{sim} (cm)",
358  150, -0.2, 0.2);
359  dbe_->setCurrentFolder("DT/2DSegments/Pull/");
360 
361  hPullAngle=0;hPullAngle = dbe_->book1D (pre+"_hPullAngle", "Pull on 2D segment angle;(angle_{rec}-angle_{sim})/#sigma (rad)", 150, -5, 5);
362  hPullPos=0;hPullPos = dbe_->book1D (pre+"_hPullPos", "Pull on 2D segment position (x at SL center);(x_{rec}-x_{sim} (cm))/#sigma",
363  150, -5, 5);
364  }
MonitorElement * hResPosVsEta
Definition: Histograms.h:440
MonitorElement * hPullAngle
Definition: Histograms.h:443
MonitorElement * hPullPos
Definition: Histograms.h:444
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:717
MonitorElement * hSimAngle
Definition: Histograms.h:434
MonitorElement * hResAngleVsPhi
Definition: Histograms.h:438
MonitorElement * hRecVsSimAngle
Definition: Histograms.h:435
MonitorElement * hResAngle
Definition: Histograms.h:436
MonitorElement * hRecAngle
Definition: Histograms.h:433
MonitorElement * hResPosVsPhi
Definition: Histograms.h:441
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:845
MonitorElement * hResPosVsResAngle
Definition: Histograms.h:442
bool _doall
Definition: Histograms.h:446
MonitorElement * hResAngleVsEta
Definition: Histograms.h:437
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
MonitorElement * hResPos
Definition: Histograms.h:439
HRes2DHit::~HRes2DHit ( )
inline

Definition at line 385 of file Histograms.h.

385  {
386  }

Member Function Documentation

void HRes2DHit::Fill ( float  angleSimSegment,
float  angleRecSegment,
float  posSimSegment,
float  posRecSegment,
float  etaSimSegment,
float  phiSimSegment,
float  sigmaPos,
float  sigmaAngle 
)
inline

Definition at line 388 of file Histograms.h.

References _doall, MonitorElement::Fill(), hPullAngle, hPullPos, hRecAngle, hRecVsSimAngle, hResAngle, hResAngleVsEta, hResAngleVsPhi, hResPos, hResPosVsEta, hResPosVsPhi, hResPosVsResAngle, and hSimAngle.

Referenced by DTSegment2DQuality::analyze().

395  {
396 
397  float resAngle = angleRecSegment-angleSimSegment;
398  hResAngle->Fill(resAngle);
399  float resPos = posRecSegment-posSimSegment;
400  hResPos->Fill(resPos);
401  hPullAngle->Fill(resAngle/sigmaAngle);
402  hPullPos->Fill(resPos/sigmaPos);
403  if(_doall){
404  hRecAngle->Fill(angleRecSegment);
405  hSimAngle->Fill(angleSimSegment);
406  hRecVsSimAngle->Fill(angleSimSegment, angleRecSegment);
407  hResAngleVsEta->Fill(etaSimSegment, resAngle);
408  hResAngleVsPhi->Fill(phiSimSegment, resAngle);
409  hResPosVsEta->Fill(etaSimSegment, resPos);
410  hResPosVsPhi->Fill(phiSimSegment, resPos);
411  hResPosVsResAngle->Fill(resAngle, resPos);
412  }
413  }
MonitorElement * hResPosVsEta
Definition: Histograms.h:440
MonitorElement * hPullAngle
Definition: Histograms.h:443
MonitorElement * hPullPos
Definition: Histograms.h:444
MonitorElement * hSimAngle
Definition: Histograms.h:434
MonitorElement * hResAngleVsPhi
Definition: Histograms.h:438
void Fill(long long x)
MonitorElement * hRecVsSimAngle
Definition: Histograms.h:435
MonitorElement * hResAngle
Definition: Histograms.h:436
MonitorElement * hRecAngle
Definition: Histograms.h:433
MonitorElement * hResPosVsPhi
Definition: Histograms.h:441
MonitorElement * hResPosVsResAngle
Definition: Histograms.h:442
bool _doall
Definition: Histograms.h:446
MonitorElement * hResAngleVsEta
Definition: Histograms.h:437
MonitorElement * hResPos
Definition: Histograms.h:439

Member Data Documentation

bool HRes2DHit::_doall

Definition at line 446 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hPullAngle

Definition at line 443 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hPullPos

Definition at line 444 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hRecAngle

Definition at line 433 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hRecVsSimAngle

Definition at line 435 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hResAngle

Definition at line 436 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hResAngleVsEta

Definition at line 437 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hResAngleVsPhi

Definition at line 438 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hResPos

Definition at line 439 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hResPosVsEta

Definition at line 440 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hResPosVsPhi

Definition at line 441 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hResPosVsResAngle

Definition at line 442 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hSimAngle

Definition at line 434 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

TString HRes2DHit::name