CMS 3D CMS Logo

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

#include <Histograms.h>

Public Member Functions

void Fill (float t_True, float t_WC, float t_hitpos)
 
 hTDelay (std::string name)
 
 hTDelay (std::string name_, TFile *file)
 
void Write ()
 
 ~hTDelay ()
 

Public Attributes

std::shared_ptr< TH1F > hDeltaTDelay_hitpos
 
std::shared_ptr< TH1F > hDeltaTDelay_WC
 
std::shared_ptr< TH1F > hTDelay_hitpos
 
std::shared_ptr< TH1F > hTDelay_true
 
std::shared_ptr< TH1F > hTDelay_WC
 

Private Attributes

TString name
 

Detailed Description

Definition at line 668 of file Histograms.h.

Constructor & Destructor Documentation

◆ hTDelay() [1/2]

hTDelay::hTDelay ( std::string  name)
inline

Definition at line 670 of file Histograms.h.

References hDeltaTDelay_hitpos, hDeltaTDelay_WC, hTDelay_hitpos, hTDelay_true, hTDelay_WC, N, and name.

670  {
671  TString N = name.c_str();
672 
673  hTDelay_true = std::make_shared<TH1F>(N + "_TDelay_true", "Delay (true)", 100, 0., 15.);
674  hTDelay_WC = std::make_shared<TH1F>(N + "_TDelay_WC", "Delay (assumed, wire center)", 100, 0., 15.);
675 
676  hTDelay_hitpos = std::make_shared<TH1F>(N + "_TDelay_hitpos", "Delay (assumed, hit pos)", 100, 0., 15.);
677 
678  hDeltaTDelay_WC = std::make_shared<TH1F>(N + "_dTDelay_WC", "Delay true - WC", 150, -15, 15.);
679  hDeltaTDelay_hitpos = std::make_shared<TH1F>(N + "_dTDelay_hitpos", "Delay true - hitpos", 150, -15, 15.);
680  }
std::shared_ptr< TH1F > hTDelay_hitpos
Definition: Histograms.h:717
std::shared_ptr< TH1F > hDeltaTDelay_hitpos
Definition: Histograms.h:719
std::shared_ptr< TH1F > hDeltaTDelay_WC
Definition: Histograms.h:718
TString name
Definition: Histograms.h:722
std::shared_ptr< TH1F > hTDelay_true
Definition: Histograms.h:715
std::shared_ptr< TH1F > hTDelay_WC
Definition: Histograms.h:716
#define N
Definition: blowfish.cc:9

◆ hTDelay() [2/2]

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

Definition at line 682 of file Histograms.h.

References geometryDiff::file, hDeltaTDelay_hitpos, hDeltaTDelay_WC, hTDelay_hitpos, hTDelay_true, hTDelay_WC, hist_helper::make_non_owning_cast(), and name.

682  {
683  name = name_.c_str();
684  hTDelay_true = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_TDelay_true"));
685  hTDelay_WC = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_TDelay_WC"));
686  hTDelay_hitpos = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_TDelay_hitpos"));
687  hDeltaTDelay_WC = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_DeltaTDelay_WC"));
688  hDeltaTDelay_hitpos = hist_helper::make_non_owning_cast<TH1F>(file->Get(name + "_DeltaTDelay_hitpos"));
689  }
std::shared_ptr< TH1F > hTDelay_hitpos
Definition: Histograms.h:717
std::shared_ptr< TH1F > hDeltaTDelay_hitpos
Definition: Histograms.h:719
std::shared_ptr< T > make_non_owning_cast(TObject *iT)
Definition: Histograms.h:30
std::shared_ptr< TH1F > hDeltaTDelay_WC
Definition: Histograms.h:718
TString name
Definition: Histograms.h:722
std::shared_ptr< TH1F > hTDelay_true
Definition: Histograms.h:715
std::shared_ptr< TH1F > hTDelay_WC
Definition: Histograms.h:716

◆ ~hTDelay()

hTDelay::~hTDelay ( )
inline

Definition at line 690 of file Histograms.h.

690  {
691  // delete hTDelay_true;
692  // delete hTDelay_WC;
693  // delete hTDelay_hitpos;
694  // delete hDeltaTDelay_WC;
695  // delete hDeltaTDelay_hitpos;
696  }

Member Function Documentation

◆ Fill()

void hTDelay::Fill ( float  t_True,
float  t_WC,
float  t_hitpos 
)
inline

Definition at line 698 of file Histograms.h.

References hDeltaTDelay_hitpos, hDeltaTDelay_WC, hTDelay_hitpos, hTDelay_true, and hTDelay_WC.

698  {
699  hTDelay_true->Fill(t_True);
700  hTDelay_WC->Fill(t_WC);
701  hTDelay_hitpos->Fill(t_hitpos);
702  hDeltaTDelay_WC->Fill(t_WC - t_True);
703  hDeltaTDelay_hitpos->Fill(t_hitpos - t_True);
704  }
std::shared_ptr< TH1F > hTDelay_hitpos
Definition: Histograms.h:717
std::shared_ptr< TH1F > hDeltaTDelay_hitpos
Definition: Histograms.h:719
std::shared_ptr< TH1F > hDeltaTDelay_WC
Definition: Histograms.h:718
std::shared_ptr< TH1F > hTDelay_true
Definition: Histograms.h:715
std::shared_ptr< TH1F > hTDelay_WC
Definition: Histograms.h:716

◆ Write()

void hTDelay::Write ( )
inline

Definition at line 706 of file Histograms.h.

References hDeltaTDelay_hitpos, hDeltaTDelay_WC, hTDelay_hitpos, hTDelay_true, and hTDelay_WC.

706  {
707  hTDelay_true->Write();
708  hTDelay_WC->Write();
709  hTDelay_hitpos->Write();
710  hDeltaTDelay_WC->Write();
711  hDeltaTDelay_hitpos->Write();
712  }
std::shared_ptr< TH1F > hTDelay_hitpos
Definition: Histograms.h:717
std::shared_ptr< TH1F > hDeltaTDelay_hitpos
Definition: Histograms.h:719
std::shared_ptr< TH1F > hDeltaTDelay_WC
Definition: Histograms.h:718
std::shared_ptr< TH1F > hTDelay_true
Definition: Histograms.h:715
std::shared_ptr< TH1F > hTDelay_WC
Definition: Histograms.h:716

Member Data Documentation

◆ hDeltaTDelay_hitpos

std::shared_ptr<TH1F> hTDelay::hDeltaTDelay_hitpos

Definition at line 719 of file Histograms.h.

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

◆ hDeltaTDelay_WC

std::shared_ptr<TH1F> hTDelay::hDeltaTDelay_WC

Definition at line 718 of file Histograms.h.

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

◆ hTDelay_hitpos

std::shared_ptr<TH1F> hTDelay::hTDelay_hitpos

Definition at line 717 of file Histograms.h.

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

◆ hTDelay_true

std::shared_ptr<TH1F> hTDelay::hTDelay_true

Definition at line 715 of file Histograms.h.

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

◆ hTDelay_WC

std::shared_ptr<TH1F> hTDelay::hTDelay_WC

Definition at line 716 of file Histograms.h.

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

◆ name

TString hTDelay::name
private