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_)
 
 HRes2DHit (TString name_, TFile *file)
 
void Write ()
 
 ~HRes2DHit ()
 

Public Attributes

TH1F * hPullAngle
 
TH1F * hPullPos
 
TH1F * hRecAngle
 
TH2F * hRecVsSimAngle
 
TH1F * hResAngle
 
TH2F * hResAngleVsEta
 
TH2F * hResAngleVsPhi
 
TH1F * hResPos
 
TH2F * hResPosVsEta
 
TH2F * hResPosVsPhi
 
TH2F * hResPosVsResAngle
 
TH1F * hSimAngle
 
TString name
 

Detailed Description

Definition at line 307 of file Histograms.h.

Constructor & Destructor Documentation

HRes2DHit::HRes2DHit ( std::string  name_)
inline

Definition at line 309 of file Histograms.h.

References hPullAngle, hPullPos, hRecAngle, hRecVsSimAngle, hResAngle, hResAngleVsEta, hResAngleVsPhi, hResPos, hResPosVsEta, hResPosVsPhi, hResPosVsResAngle, hSimAngle, MultiGaussianStateTransform::N, and name.

309  {
310  TString N = name_.c_str();
311  name=N;
312 
313  hRecAngle = new TH1F ("2D_"+N+"_hRecAngle", "Distribution of Rec segment angles;angle (rad)",
314  100, -3.5, 3.5);
315  hSimAngle = new TH1F ("2D_"+N+"_hSimAngle", "Distribution of segment angles from SimHits;angle (rad)",
316  100, -3.5, 3.5);
317  hRecVsSimAngle = new TH2F ("2D_"+N+"_hRecVsSimAngle", "Rec angle vs sim angle;angle (rad)",
318  100, -3.5, 3.5, 100, -3.5, 3.5);
319 
320 
321  hResAngle = new TH1F ("2D_"+N+"_hResAngle", "Residual on 2D segment angle;angle_{rec}-angle_{sim} (rad)", 150, -0.15, 0.15);
322  hResAngleVsEta = new TH2F ("2D_"+N+"_hResAngleVsEta", "Residual on 2D segment angle vs Eta; #eta; res (rad)",
323  100, -2.5, 2.5, 200, -0.2, 0.2);
324  hResAngleVsPhi = new TH2F ("2D_"+N+"_hResAngleVsPhi", "Residual on 2D segment angle vs Phi; #phi (rad);res (rad)",
325  100, -3.2, 3.2, 150, -0.2, 0.2);
326 
327  hResPos = new TH1F ("2D_"+N+"_hResPos", "Residual on 2D segment position (x at SL center);x_{rec}-x_{sim} (cm)",
328  150, -0.2, 0.2);
329  hResPosVsEta = new TH2F ("2D_"+N+"_hResPosVsEta", "Residual on 2D segment position vs Eta;#eta;res (cm)",
330  100, -2.5, 2.5, 150, -0.2, 0.2);
331  hResPosVsPhi = new TH2F ("2D_"+N+"_hResPosVsPhi", "Residual on 2D segment position vs Phi;#phi (rad);res (cm)",
332  100, -3.2, 3.2, 150, -0.2, 0.2);
333 
334  hResPosVsResAngle = new TH2F("2D_"+N+"_hResPosVsResAngle",
335  "Residual on 2D segment position vs Residual on 2D segment angle;angle (rad);res (cm)",
336  100, -0.3, 0.3, 150, -0.2, 0.2);
337 
338  hPullAngle = new TH1F ("2D_"+N+"_hPullAngle", "Pull on 2D segment angle;(angle_{rec}-angle_{sim})/#sigma (rad)", 150, -5, 5);
339  hPullPos = new TH1F ("2D_"+N+"_hPullPos", "Pull on 2D segment position (x at SL center);(x_{rec}-x_{sim} (cm))/#sigma",
340  150, -5, 5);
341  }
TH2F * hResPosVsResAngle
Definition: Histograms.h:417
TH1F * hResPos
Definition: Histograms.h:414
TH2F * hResAngleVsPhi
Definition: Histograms.h:413
TString name
Definition: Histograms.h:420
TH2F * hResPosVsPhi
Definition: Histograms.h:416
TH1F * hSimAngle
Definition: Histograms.h:409
TH2F * hRecVsSimAngle
Definition: Histograms.h:410
TH2F * hResPosVsEta
Definition: Histograms.h:415
TH2F * hResAngleVsEta
Definition: Histograms.h:412
TH1F * hResAngle
Definition: Histograms.h:411
TH1F * hPullPos
Definition: Histograms.h:419
TH1F * hPullAngle
Definition: Histograms.h:418
TH1F * hRecAngle
Definition: Histograms.h:408
HRes2DHit::HRes2DHit ( TString  name_,
TFile *  file 
)
inline

Definition at line 343 of file Histograms.h.

References hPullAngle, hPullPos, hRecAngle, hRecVsSimAngle, hResAngle, hResAngleVsEta, hResAngleVsPhi, hResPos, hResPosVsEta, hResPosVsPhi, hResPosVsResAngle, hSimAngle, and name.

343  {
344  name=name_;
345 
346  hRecAngle = (TH1F *) file->Get("2D_"+name+"_hRecAngle");
347  hSimAngle = (TH1F *) file->Get("2D_"+name+"_hSimAngle");
348  hRecVsSimAngle = (TH2F *) file->Get("2D_"+name+"_hRecVsSimAngle");
349  hResAngle = (TH1F *) file->Get("2D_"+name+"_hResAngle");
350  hResAngleVsEta = (TH2F *) file->Get("2D_"+name+"_hResAngleVsEta");
351  hResAngleVsPhi = (TH2F *) file->Get("2D_"+name+"_hResAngleVsPhi");
352  hResPos = (TH1F *) file->Get("2D_"+name+"_hResPos");
353  hResPosVsEta = (TH2F *) file->Get("2D_"+name+"_hResPosVsEta");
354  hResPosVsPhi = (TH2F *) file->Get("2D_"+name+"_hResPosVsPhi");
355  hResPosVsResAngle = (TH2F *) file->Get("2D_"+name+"_hResPosVsResAngle");
356  hPullAngle = (TH1F *) file->Get("2D_"+name+"_hPullAngle");
357  hPullPos = (TH1F *) file->Get("2D_"+name+"_hPullPos");
358 
359  }
TH2F * hResPosVsResAngle
Definition: Histograms.h:417
TH1F * hResPos
Definition: Histograms.h:414
TH2F * hResAngleVsPhi
Definition: Histograms.h:413
TString name
Definition: Histograms.h:420
TH2F * hResPosVsPhi
Definition: Histograms.h:416
TH1F * hSimAngle
Definition: Histograms.h:409
TH2F * hRecVsSimAngle
Definition: Histograms.h:410
TH2F * hResPosVsEta
Definition: Histograms.h:415
TH2F * hResAngleVsEta
Definition: Histograms.h:412
TH1F * hResAngle
Definition: Histograms.h:411
TH1F * hPullPos
Definition: Histograms.h:419
TH1F * hPullAngle
Definition: Histograms.h:418
TH1F * hRecAngle
Definition: Histograms.h:408
HRes2DHit::~HRes2DHit ( )
inline

Definition at line 362 of file Histograms.h.

362  {
363  }

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

References hPullAngle, hPullPos, hRecAngle, hRecVsSimAngle, hResAngle, hResAngleVsEta, hResAngleVsPhi, hResPos, hResPosVsEta, hResPosVsPhi, hResPosVsResAngle, and hSimAngle.

Referenced by DTSegment2DQuality::analyze().

372  {
373 
374  hRecAngle->Fill(angleRecSegment);
375  hSimAngle->Fill(angleSimSegment);
376  hRecVsSimAngle->Fill(angleSimSegment, angleRecSegment);
377  float resAngle = angleRecSegment-angleSimSegment;
378  hResAngle->Fill(resAngle);
379  hResAngleVsEta->Fill(etaSimSegment, resAngle);
380  hResAngleVsPhi->Fill(phiSimSegment, resAngle);
381  float resPos = posRecSegment-posSimSegment;
382  hResPos->Fill(resPos);
383  hResPosVsEta->Fill(etaSimSegment, resPos);
384  hResPosVsPhi->Fill(phiSimSegment, resPos);
385  hResPosVsResAngle->Fill(resAngle, resPos);
386  hPullAngle->Fill(resAngle/sigmaAngle);
387  hPullPos->Fill(resPos/sigmaPos);
388  }
TH2F * hResPosVsResAngle
Definition: Histograms.h:417
TH1F * hResPos
Definition: Histograms.h:414
TH2F * hResAngleVsPhi
Definition: Histograms.h:413
TH2F * hResPosVsPhi
Definition: Histograms.h:416
TH1F * hSimAngle
Definition: Histograms.h:409
TH2F * hRecVsSimAngle
Definition: Histograms.h:410
TH2F * hResPosVsEta
Definition: Histograms.h:415
TH2F * hResAngleVsEta
Definition: Histograms.h:412
TH1F * hResAngle
Definition: Histograms.h:411
TH1F * hPullPos
Definition: Histograms.h:419
TH1F * hPullAngle
Definition: Histograms.h:418
TH1F * hRecAngle
Definition: Histograms.h:408
void HRes2DHit::Write ( )
inline

Definition at line 390 of file Histograms.h.

References hPullAngle, hPullPos, hRecAngle, hRecVsSimAngle, hResAngle, hResAngleVsEta, hResAngleVsPhi, hResPos, hResPosVsEta, hResPosVsPhi, hResPosVsResAngle, and hSimAngle.

390  {
391 
392  hRecAngle->Write();
393  hSimAngle->Write();
394  hRecVsSimAngle->Write();
395  hResAngle->Write();
396  hResAngleVsEta->Write();
397  hResAngleVsPhi->Write();
398  hResPos->Write();
399  hResPosVsEta->Write();
400  hResPosVsPhi->Write();
401  hResPosVsResAngle->Write();
402  hPullAngle->Write();
403  hPullPos->Write();
404  }
TH2F * hResPosVsResAngle
Definition: Histograms.h:417
TH1F * hResPos
Definition: Histograms.h:414
TH2F * hResAngleVsPhi
Definition: Histograms.h:413
TH2F * hResPosVsPhi
Definition: Histograms.h:416
TH1F * hSimAngle
Definition: Histograms.h:409
TH2F * hRecVsSimAngle
Definition: Histograms.h:410
TH2F * hResPosVsEta
Definition: Histograms.h:415
TH2F * hResAngleVsEta
Definition: Histograms.h:412
TH1F * hResAngle
Definition: Histograms.h:411
TH1F * hPullPos
Definition: Histograms.h:419
TH1F * hPullAngle
Definition: Histograms.h:418
TH1F * hRecAngle
Definition: Histograms.h:408

Member Data Documentation

TH1F* HRes2DHit::hPullAngle

Definition at line 418 of file Histograms.h.

Referenced by Fill(), HRes2DHit(), and Write().

TH1F* HRes2DHit::hPullPos

Definition at line 419 of file Histograms.h.

Referenced by Fill(), HRes2DHit(), and Write().

TH1F* HRes2DHit::hRecAngle

Definition at line 408 of file Histograms.h.

Referenced by Fill(), HRes2DHit(), and Write().

TH2F* HRes2DHit::hRecVsSimAngle

Definition at line 410 of file Histograms.h.

Referenced by Fill(), HRes2DHit(), and Write().

TH1F* HRes2DHit::hResAngle

Definition at line 411 of file Histograms.h.

Referenced by Fill(), HRes2DHit(), and Write().

TH2F* HRes2DHit::hResAngleVsEta

Definition at line 412 of file Histograms.h.

Referenced by Fill(), HRes2DHit(), and Write().

TH2F* HRes2DHit::hResAngleVsPhi

Definition at line 413 of file Histograms.h.

Referenced by Fill(), HRes2DHit(), and Write().

TH1F* HRes2DHit::hResPos

Definition at line 414 of file Histograms.h.

Referenced by Fill(), HRes2DHit(), and Write().

TH2F* HRes2DHit::hResPosVsEta

Definition at line 415 of file Histograms.h.

Referenced by Fill(), HRes2DHit(), and Write().

TH2F* HRes2DHit::hResPosVsPhi

Definition at line 416 of file Histograms.h.

Referenced by Fill(), HRes2DHit(), and Write().

TH2F* HRes2DHit::hResPosVsResAngle

Definition at line 417 of file Histograms.h.

Referenced by Fill(), HRes2DHit(), and Write().

TH1F* HRes2DHit::hSimAngle

Definition at line 409 of file Histograms.h.

Referenced by Fill(), HRes2DHit(), and Write().

TString HRes2DHit::name