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 332 of file Histograms.h.

Constructor & Destructor Documentation

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

Definition at line 334 of file Histograms.h.

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

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

Definition at line 388 of file Histograms.h.

388  {
389  }

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 391 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().

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

Member Data Documentation

bool HRes2DHit::_doall

Definition at line 449 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hPullAngle

Definition at line 446 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hPullPos

Definition at line 447 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hRecAngle

Definition at line 436 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hRecVsSimAngle

Definition at line 438 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hResAngle

Definition at line 439 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hResAngleVsEta

Definition at line 440 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hResAngleVsPhi

Definition at line 441 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hResPos

Definition at line 442 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hResPosVsEta

Definition at line 443 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hResPosVsPhi

Definition at line 444 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hResPosVsResAngle

Definition at line 445 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

MonitorElement* HRes2DHit::hSimAngle

Definition at line 437 of file Histograms.h.

Referenced by Fill(), and HRes2DHit().

TString HRes2DHit::name