DAS  3.0
Das Analysis System
PerformanceHist

Public Member Functions

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

Public Attributes

TString name
 
TH1F pt
 
TH1F e
 
TH1F eta
 
TH1F phi
 

Constructor & Destructor Documentation

◆ PerformanceHist()

PerformanceHist ( TString  name)
inline
40  : name(name)
41  , pt (name+"pt", "", 500, 0, 1000)
42  , e (name+"e", "", 500, 0, 1000)
43  , eta(name+"eta", "", 100, -3, 3)
44  , phi(name+"phi", "", 100, -3.15, 3.15)
45  {
46  cout << "New set of histograms for " << name << endl;
47  }

Member Function Documentation

◆ Fill()

void Fill ( const auto &  Photon,
float  w 
)
inline
50  {
51  pt.Fill(Photon.CorrP4().Pt(), w);
52  e.Fill(Photon.CorrP4().E(), w);
53  eta.Fill(Photon.CorrP4().Eta(), w);
54  phi.Fill(Photon.CorrP4().Phi(), w);
55  }

◆ Write()

void Write ( TDirectory *  dir)
inline
58  {
59  dir->cd();
60  auto subdir = dir->mkdir(name);
61  subdir->cd();
62  for (TH1 * h: {&pt, &e, &eta, &phi}) {
63  h->SetDirectory(subdir);
64  TString hname = h->GetName();
65  hname.ReplaceAll(name, "");
66  h->Write(hname);
67  }
68  }

Member Data Documentation

◆ e

TH1F e

◆ eta

TH1F eta

◆ name

TString name

TDirectory's name (e.g. barrel_rec)

◆ phi

TH1F phi

◆ pt

TH1F pt

The documentation for this struct was generated from the following file:
DAS::Photon::PerformanceHist::pt
TH1F pt
Definition: getPhotonPerformance.cc:37
DAS::JetEnergy::w
static const float w
Definition: common.h:51
DAS::Photon::PerformanceHist::name
TString name
TDirectory's name (e.g. barrel_rec)
Definition: getPhotonPerformance.cc:35
DAS::Photon::PerformanceHist::phi
TH1F phi
Definition: getPhotonPerformance.cc:37
DAS::Photon::PerformanceHist::eta
TH1F eta
Definition: getPhotonPerformance.cc:37
DAS::Photon::PerformanceHist::e
TH1F e
Definition: getPhotonPerformance.cc:37