CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
hDeltaR Class Reference

#include <Histograms.h>

Public Member Functions

void Fill (double xEntry, double yEntry, double zEntry, double path, double path_x, double SM, double pAbs, double En, int type)
 
 hDeltaR (std::string name_)
 
 hDeltaR (std::string name_, TFile *file)
 
void Write ()
 
virtual ~hDeltaR ()
 

Public Attributes

std::shared_ptr< TH1F > hHitEnergyLoss
 
std::shared_ptr< TH1F > hHitMomentum
 
std::shared_ptr< TH1F > hPath
 
std::shared_ptr< TH1F > hPathX
 
std::shared_ptr< TH1F > hSagittaMag
 
std::shared_ptr< TH1F > hType
 
std::shared_ptr< TH1F > hXentry
 
std::shared_ptr< TH1F > hYentry
 
std::shared_ptr< TH1F > hZentry
 
std::shared_ptr< TH1F > hZoomPath
 
std::shared_ptr< TH1F > hZoomPathX
 

Private Attributes

TString name
 

Detailed Description

Definition at line 400 of file Histograms.h.

Constructor & Destructor Documentation

◆ hDeltaR() [1/2]

hDeltaR::hDeltaR ( std::string  name_)
inline

Definition at line 402 of file Histograms.h.

References hHitEnergyLoss, hHitMomentum, hPath, hPathX, hSagittaMag, hType, hXentry, hYentry, hZentry, hZoomPath, hZoomPathX, N, and name.

402  {
403  TString N = name_.c_str();
404  name = N;
405  // booking degli istogrammi unidimensionali
406  hZentry = std::make_shared<TH1F>(N + "_Zentry", "z_{entry} distribution", 120, -0.6, 0.6);
407  hXentry = std::make_shared<TH1F>(N + "_Xentry", "x_{entry} distribution", 120, -4.2, 4.2);
408  hYentry = std::make_shared<TH1F>(N + "_Yentry", "y_{entry} distribution", 120, -400, 400);
409  hHitMomentum = std::make_shared<TH1F>(N + "_HitMomentum", "Momentum distribution", 100, 0, .2);
411  std::make_shared<TH1F>(N + "_HitEnergyLoss", "Energy Loss distribution", 75, 0, 100); // in keV--> x10^6
412  hSagittaMag = std::make_shared<TH1F>(N + "_SagittaMag", "Sagitta from magnetic bendig", 120, 0, .04);
413  hPath = std::make_shared<TH1F>(N + "_Path", "Path", 200, 0, 4.2);
414  hPathX = std::make_shared<TH1F>(N + "_PathX", "X Path", 200, 0, 4.2);
415  hZoomPath = std::make_shared<TH1F>(N + "_ZoomPath", "Path", 200, 0, .1);
416  hZoomPathX = std::make_shared<TH1F>(N + "_ZoomPathX", "X Path", 200, 0, .1);
417  hType = std::make_shared<TH1F>(N + "_Type", "Delta type 3-electron 2-positron", 4, 0, 4);
418  }
TString name
Definition: Histograms.h:505
std::shared_ptr< TH1F > hPath
Definition: Histograms.h:499
std::shared_ptr< TH1F > hZoomPath
Definition: Histograms.h:501
std::shared_ptr< TH1F > hXentry
Definition: Histograms.h:494
std::shared_ptr< TH1F > hSagittaMag
Definition: Histograms.h:498
std::shared_ptr< TH1F > hYentry
Definition: Histograms.h:495
std::shared_ptr< TH1F > hZentry
Definition: Histograms.h:493
std::shared_ptr< TH1F > hHitEnergyLoss
Definition: Histograms.h:497
std::shared_ptr< TH1F > hHitMomentum
Definition: Histograms.h:496
std::shared_ptr< TH1F > hType
Definition: Histograms.h:492
std::shared_ptr< TH1F > hZoomPathX
Definition: Histograms.h:502
std::shared_ptr< TH1F > hPathX
Definition: Histograms.h:500
#define N
Definition: blowfish.cc:9

◆ ~hDeltaR()

virtual hDeltaR::~hDeltaR ( )
inlinevirtual

Definition at line 420 of file Histograms.h.

420  {
421  // delete hType;
422  // delete hZentry;
423  // delete hXentry;
424  // delete hYentry;
425  // delete hHitMomentum;
426  // delete hHitEnergyLoss;
427  // delete hSagittaMag;
428  // delete hPath;
429  // delete hPathX;
430  // delete hZoomPath;
431  // delete hZoomPathX;
432  }

◆ hDeltaR() [2/2]

hDeltaR::hDeltaR ( std::string  name_,
TFile *  file 
)
inline

Definition at line 434 of file Histograms.h.

References geometryDiff::file, hHitMomentum, hPath, hPathX, hSagittaMag, hType, hXentry, hYentry, hZentry, hZoomPath, hZoomPathX, hist_helper::make_non_owning_cast(), and name.

434  {
435  name = name_.c_str();
436  // per lettura da file degli istogrammi
437  // 1D
438  hType = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_Type"));
439  hZentry = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_Zentry"));
440  hXentry = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_Xentry"));
441  hYentry = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_Yentry"));
442  hHitMomentum = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_HitMomentum"));
443  hHitMomentum = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_HitEnergyLoss"));
444  hSagittaMag = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_SagittaMag"));
445  hPath = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_Path"));
446  hPathX = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_PathX"));
447  hZoomPath = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_ZoomPath"));
448  hZoomPathX = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_ZoomPathX"));
449  }
TString name
Definition: Histograms.h:505
std::shared_ptr< TH1F > hPath
Definition: Histograms.h:499
std::shared_ptr< TH1F > hZoomPath
Definition: Histograms.h:501
std::shared_ptr< T > make_non_owning_cast(TObject *iT)
Definition: Histograms.h:30
std::shared_ptr< TH1F > hXentry
Definition: Histograms.h:494
std::shared_ptr< TH1F > hSagittaMag
Definition: Histograms.h:498
std::shared_ptr< TH1F > hYentry
Definition: Histograms.h:495
std::shared_ptr< TH1F > hZentry
Definition: Histograms.h:493
std::shared_ptr< TH1F > hHitMomentum
Definition: Histograms.h:496
std::shared_ptr< TH1F > hType
Definition: Histograms.h:492
std::shared_ptr< TH1F > hZoomPathX
Definition: Histograms.h:502
std::shared_ptr< TH1F > hPathX
Definition: Histograms.h:500

Member Function Documentation

◆ Fill()

void hDeltaR::Fill ( double  xEntry,
double  yEntry,
double  zEntry,
double  path,
double  path_x,
double  SM,
double  pAbs,
double  En,
int  type 
)
inline

Definition at line 464 of file Histograms.h.

References hHitEnergyLoss, hHitMomentum, hPath, hPathX, hSagittaMag, hType, hXentry, hYentry, hZentry, hZoomPath, hZoomPathX, and castor_dqm_sourceclient_file_cfg::path.

Referenced by HTrackVariables::FillDeltaR(), and GenericBenchmark::fillHistos().

472  {
473  hZentry->Fill(zEntry);
474  hXentry->Fill(xEntry);
475  hYentry->Fill(yEntry);
476 
477  hHitMomentum->Fill(pAbs);
478  hHitEnergyLoss->Fill(En * 1e6);
479 
480  hPath->Fill(path);
481  hPathX->Fill(path_x);
482  if (path <= .1)
483  hZoomPath->Fill(path);
484  if (path_x <= .1)
485  hZoomPathX->Fill(path_x);
486 
487  hSagittaMag->Fill(SM);
488  hType->Fill(type);
489  }
std::shared_ptr< TH1F > hPath
Definition: Histograms.h:499
std::shared_ptr< TH1F > hZoomPath
Definition: Histograms.h:501
std::shared_ptr< TH1F > hXentry
Definition: Histograms.h:494
std::shared_ptr< TH1F > hSagittaMag
Definition: Histograms.h:498
std::shared_ptr< TH1F > hYentry
Definition: Histograms.h:495
std::shared_ptr< TH1F > hZentry
Definition: Histograms.h:493
std::shared_ptr< TH1F > hHitEnergyLoss
Definition: Histograms.h:497
std::shared_ptr< TH1F > hHitMomentum
Definition: Histograms.h:496
std::shared_ptr< TH1F > hType
Definition: Histograms.h:492
std::shared_ptr< TH1F > hZoomPathX
Definition: Histograms.h:502
std::shared_ptr< TH1F > hPathX
Definition: Histograms.h:500

◆ Write()

void hDeltaR::Write ( )
inline

Definition at line 451 of file Histograms.h.

References hHitMomentum, hPath, hPathX, hSagittaMag, hType, hXentry, hYentry, hZentry, hZoomPath, and hZoomPathX.

451  {
452  hType->Write();
453  hZentry->Write();
454  hXentry->Write();
455  hYentry->Write();
456  hHitMomentum->Write();
457  hSagittaMag->Write();
458  hPath->Write();
459  hPathX->Write();
460  hZoomPath->Write();
461  hZoomPathX->Write();
462  }
std::shared_ptr< TH1F > hPath
Definition: Histograms.h:499
std::shared_ptr< TH1F > hZoomPath
Definition: Histograms.h:501
std::shared_ptr< TH1F > hXentry
Definition: Histograms.h:494
std::shared_ptr< TH1F > hSagittaMag
Definition: Histograms.h:498
std::shared_ptr< TH1F > hYentry
Definition: Histograms.h:495
std::shared_ptr< TH1F > hZentry
Definition: Histograms.h:493
std::shared_ptr< TH1F > hHitMomentum
Definition: Histograms.h:496
std::shared_ptr< TH1F > hType
Definition: Histograms.h:492
std::shared_ptr< TH1F > hZoomPathX
Definition: Histograms.h:502
std::shared_ptr< TH1F > hPathX
Definition: Histograms.h:500

Member Data Documentation

◆ hHitEnergyLoss

std::shared_ptr<TH1F> hDeltaR::hHitEnergyLoss

Definition at line 497 of file Histograms.h.

Referenced by Fill(), and hDeltaR().

◆ hHitMomentum

std::shared_ptr<TH1F> hDeltaR::hHitMomentum

Definition at line 496 of file Histograms.h.

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

◆ hPath

std::shared_ptr<TH1F> hDeltaR::hPath

Definition at line 499 of file Histograms.h.

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

◆ hPathX

std::shared_ptr<TH1F> hDeltaR::hPathX

Definition at line 500 of file Histograms.h.

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

◆ hSagittaMag

std::shared_ptr<TH1F> hDeltaR::hSagittaMag

Definition at line 498 of file Histograms.h.

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

◆ hType

std::shared_ptr<TH1F> hDeltaR::hType

Definition at line 492 of file Histograms.h.

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

◆ hXentry

std::shared_ptr<TH1F> hDeltaR::hXentry

Definition at line 494 of file Histograms.h.

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

◆ hYentry

std::shared_ptr<TH1F> hDeltaR::hYentry

Definition at line 495 of file Histograms.h.

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

◆ hZentry

std::shared_ptr<TH1F> hDeltaR::hZentry

Definition at line 493 of file Histograms.h.

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

◆ hZoomPath

std::shared_ptr<TH1F> hDeltaR::hZoomPath

Definition at line 501 of file Histograms.h.

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

◆ hZoomPathX

std::shared_ptr<TH1F> hDeltaR::hZoomPathX

Definition at line 502 of file Histograms.h.

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

◆ name

TString hDeltaR::name
private