Simple wrapper around std::map<TString (histname), TH1*> to help with histogram creation and writting to file.
More...
#include <BSEmcHistogrammer.h>
|
| BSEmcHistogrammer () |
|
| BSEmcHistogrammer (TFile *t_file) |
|
virtual | ~BSEmcHistogrammer () |
|
void | SetOutputFile (TFile *t_file) |
|
TFile * | GetOutputFile () |
|
TCanvas * | CreateCanvas (const TString &t_key, const TString &t_foldername) |
|
TH1F * | Create1DHist (const TString &t_key, const TString &t_foldername, AxisData t_xdata, AxisData t_ydata=AxisData{}) |
|
TH2F * | Create2DHist (const TString &t_key, const TString &t_foldername, AxisData t_xdata, AxisData t_ydata) |
|
TH3F * | Create3DHist (const TString &t_key, const TString &t_foldername, AxisData t_xdata, AxisData t_ydata, AxisData t_zdata) |
|
void | Fill (const TString &t_key, Double_t t_value, Double_t t_weight) |
|
void | Fill (const TString &t_key, Double_t t_x, Double_t t_y, Double_t t_weight) |
|
TH3F * | Get3DHist (const TString &t_key) |
|
TH2F * | Get2DHist (const TString &t_key) |
|
TH1F * | Get1DHist (const TString &t_key) |
|
TH1 * | GetHist (const TString &t_key) |
|
void | AddHist (TH1 *t_hist, const TString &t_key, const TString &t_foldername) |
|
void | ClearAllHists () |
|
Bool_t | DoesHistoExist (const TString &t_key) const |
|
void | WriteCanvases () |
|
Simple wrapper around std::map<TString (histname), TH1*> to help with histogram creation and writting to file.
- Author
- Ben Salisbury salis.nosp@m.bury.nosp@m.@hisk.nosp@m.p.un.nosp@m.i-bon.nosp@m.n.de, HISKP Bonn
- Date
- 2021-02
Definition at line 29 of file BSEmcHistogrammer.h.
◆ BSEmcHistogrammer() [1/2]
BSEmcHistogrammer::BSEmcHistogrammer |
( |
| ) |
|
◆ BSEmcHistogrammer() [2/2]
BSEmcHistogrammer::BSEmcHistogrammer |
( |
TFile * |
t_file | ) |
|
◆ ~BSEmcHistogrammer()
virtual BSEmcHistogrammer::~BSEmcHistogrammer |
( |
| ) |
|
|
virtual |
◆ AddHist()
void BSEmcHistogrammer::AddHist |
( |
TH1 * |
t_hist, |
|
|
const TString & |
t_key, |
|
|
const TString & |
t_foldername |
|
) |
| |
◆ ClearAllHists()
void BSEmcHistogrammer::ClearAllHists |
( |
| ) |
|
◆ Create1DHist()
TH1F* BSEmcHistogrammer::Create1DHist |
( |
const TString & |
t_key, |
|
|
const TString & |
t_foldername, |
|
|
AxisData |
t_xdata, |
|
|
AxisData |
t_ydata = AxisData{} |
|
) |
| |
◆ Create2DHist()
TH2F* BSEmcHistogrammer::Create2DHist |
( |
const TString & |
t_key, |
|
|
const TString & |
t_foldername, |
|
|
AxisData |
t_xdata, |
|
|
AxisData |
t_ydata |
|
) |
| |
◆ Create3DHist()
TH3F* BSEmcHistogrammer::Create3DHist |
( |
const TString & |
t_key, |
|
|
const TString & |
t_foldername, |
|
|
AxisData |
t_xdata, |
|
|
AxisData |
t_ydata, |
|
|
AxisData |
t_zdata |
|
) |
| |
◆ CreateCanvas()
TCanvas* BSEmcHistogrammer::CreateCanvas |
( |
const TString & |
t_key, |
|
|
const TString & |
t_foldername |
|
) |
| |
◆ DoesHistoExist()
Bool_t BSEmcHistogrammer::DoesHistoExist |
( |
const TString & |
t_key | ) |
const |
◆ Fill() [1/2]
void BSEmcHistogrammer::Fill |
( |
const TString & |
t_key, |
|
|
Double_t |
t_value, |
|
|
Double_t |
t_weight |
|
) |
| |
◆ Fill() [2/2]
void BSEmcHistogrammer::Fill |
( |
const TString & |
t_key, |
|
|
Double_t |
t_x, |
|
|
Double_t |
t_y, |
|
|
Double_t |
t_weight |
|
) |
| |
◆ Get1DHist()
TH1F* BSEmcHistogrammer::Get1DHist |
( |
const TString & |
t_key | ) |
|
|
inline |
◆ Get2DHist()
TH2F* BSEmcHistogrammer::Get2DHist |
( |
const TString & |
t_key | ) |
|
|
inline |
◆ Get3DHist()
TH3F* BSEmcHistogrammer::Get3DHist |
( |
const TString & |
t_key | ) |
|
|
inline |
◆ GetHist()
TH1* BSEmcHistogrammer::GetHist |
( |
const TString & |
t_key | ) |
|
◆ GetOutputFile()
TFile* BSEmcHistogrammer::GetOutputFile |
( |
| ) |
|
|
inline |
◆ SetOutputFile()
void BSEmcHistogrammer::SetOutputFile |
( |
TFile * |
t_file | ) |
|
|
inline |
◆ WriteCanvases()
void BSEmcHistogrammer::WriteCanvases |
( |
| ) |
|
The documentation for this class was generated from the following file: