DAS  3.0
Das Analysis System
PerformanceHist

Public Member Functions

 PerformanceHist (TString name)
 
void FillMatched (const auto &Photon, float w)
 
void FillUnmatched (const auto &Photon, float w)
 
void Write (TDirectory *dir)
 

Public Attributes

TString name
 
TH2F pt_eta
 
TH2F e_eta
 
TH2F phi_eta
 

Constructor & Destructor Documentation

◆ PerformanceHist()

PerformanceHist ( TString  name)
inline
46  : name(name)
47  , pt_eta (name+"pt_eta", "", pt_edges.size() - 1, pt_edges.data(),
48  eta_edges.size() - 1, eta_edges.data())
49  , e_eta (name+"e_eta", "", pt_edges.size() - 1, pt_edges.data(),
50  eta_edges.size() - 1, eta_edges.data())
51  , phi_eta(name+"phi_eta", "", phi_edges.size() - 1, phi_edges.data(),
52  eta_edges.size() - 1, eta_edges.data())
53  {
54  cout << "New set of histograms for " << name << endl;
55  }

Member Function Documentation

◆ FillMatched()

void FillMatched ( const auto &  Photon,
float  w 
)
inline
59  {
60  pt_eta.Fill(Photon->CorrP4().Pt(), Photon->CorrP4().Eta(), w);
61  e_eta.Fill(Photon->CorrP4().E(), Photon->CorrP4().Eta(), w);
62  phi_eta.Fill(Photon->CorrP4().Phi(), Photon->CorrP4().Eta(), w);
63  }

◆ FillUnmatched()

void FillUnmatched ( const auto &  Photon,
float  w 
)
inline
65  {
66  pt_eta.Fill(Photon.CorrP4().Pt(), Photon.CorrP4().Eta(), w);
67  e_eta.Fill(Photon.CorrP4().E(), Photon.CorrP4().Eta(), w);
68  phi_eta.Fill(Photon.CorrP4().Phi(), Photon.CorrP4().Eta(), w);
69  }

◆ Write()

void Write ( TDirectory *  dir)
inline
72  {
73  dir->cd();
74  auto subdir = dir->mkdir(name);
75  subdir->cd();
76  for (TH2 * h: {&pt_eta, &e_eta, &phi_eta}) {
77  h->SetDirectory(subdir);
78  TString hname = h->GetName();
79  hname.ReplaceAll(name, "");
80  h->Write(hname);
81  }
82  }

Member Data Documentation

◆ e_eta

TH2F e_eta

◆ name

TString name

TDirectory's name.

◆ phi_eta

TH2F phi_eta

◆ pt_eta

TH2F pt_eta

The documentation for this struct was generated from the following file:
DAS::Photon::phi_edges
vector< double > phi_edges
Definition: getPhotonPerformance.cc:38
DAS::Photon::eta_edges
vector< double > eta_edges
Definition: getPhotonPerformance.cc:37
DAS::Photon::PerformanceHist::e_eta
TH2F e_eta
Definition: getPhotonPerformance.cc:43
DAS::Photon::PerformanceHist::name
TString name
TDirectory's name.
Definition: getPhotonPerformance.cc:41
DAS::Photon::pt_edges
vector< double > pt_edges
Definition: getPhotonPerformance.cc:36
DAS::Photon::PerformanceHist::pt_eta
TH2F pt_eta
Definition: getPhotonPerformance.cc:43
DAS::Photon::PerformanceHist::phi_eta
TH2F phi_eta
Definition: getPhotonPerformance.cc:43