BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions
HistogramFactory Class Reference

Class to manufacture histograms. More...

#include <HistogramFactory.hh>

Collaboration diagram for HistogramFactory:
Collaboration graph

Public Member Functions

TH1 * CreateHistogram (const HistogramDef *definition, const std::string &overRideName="", const std::string &overRideTitle="")
 
void CheckNameAndTitle (std::string &name, std::string &title, const std::string &overRideName="", const std::string &overRideTitle="")
 Whether name is set or not. More...
 
TH1D * CreateHistogram1D (const HistogramDef1D *d, const std::string &overRideName="", const std::string &overRideTitle="")
 Create 1D histogram. More...
 
TH2D * CreateHistogram2D (const HistogramDef2D *d, const std::string &overRideName="", const std::string &overRideTitle="")
 Create 2D histogram. More...
 
TH3D * CreateHistogram3D (const HistogramDef3D *d, const std::string &overRideName="", const std::string &overRideTitle="")
 Create 3D histogram. More...
 
BDSBH4DBaseCreateHistogram4D (const HistogramDef4D *d, const std::string &overRideName="", const std::string &overRideTitle="")
 Create 4D histogram. More...
 
 ClassDef (HistogramFactory, 1)
 

Detailed Description

Class to manufacture histograms.

Author
Laurie Nevay

Definition at line 44 of file HistogramFactory.hh.

Constructor & Destructor Documentation

◆ ~HistogramFactory()

HistogramFactory::~HistogramFactory ( )
virtual

Definition at line 49 of file HistogramFactory.cc.

Member Function Documentation

◆ CheckNameAndTitle()

void HistogramFactory::CheckNameAndTitle ( std::string &  name,
std::string &  title,
const std::string &  overRideName = "",
const std::string &  overRideTitle = "" 
)

Whether name is set or not.

Definition at line 98 of file HistogramFactory.cc.

Referenced by CreateHistogram1D(), CreateHistogram2D(), CreateHistogram3D(), and CreateHistogram4D().

Here is the caller graph for this function:

◆ CreateHistogram()

TH1 * HistogramFactory::CreateHistogram ( const HistogramDef definition,
const std::string &  overRideName = "",
const std::string &  overRideTitle = "" 
)

Create a histogram of the appropriate dimensions. Forwards to other Ndim specific functions.

Definition at line 52 of file HistogramFactory.cc.

References CreateHistogram1D(), CreateHistogram2D(), CreateHistogram3D(), and CreateHistogram4D().

Referenced by Analysis::FillHistogram().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateHistogram1D()

TH1D * HistogramFactory::CreateHistogram1D ( const HistogramDef1D d,
const std::string &  overRideName = "",
const std::string &  overRideTitle = "" 
)

Create 1D histogram.

Definition at line 109 of file HistogramFactory.cc.

References CheckNameAndTitle().

Referenced by CreateHistogram(), and PerEntryHistogram::PerEntryHistogram().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateHistogram2D()

TH2D * HistogramFactory::CreateHistogram2D ( const HistogramDef2D d,
const std::string &  overRideName = "",
const std::string &  overRideTitle = "" 
)

Create 2D histogram.

Definition at line 125 of file HistogramFactory.cc.

References CheckNameAndTitle().

Referenced by CreateHistogram(), and PerEntryHistogram::PerEntryHistogram().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateHistogram3D()

TH3D * HistogramFactory::CreateHistogram3D ( const HistogramDef3D d,
const std::string &  overRideName = "",
const std::string &  overRideTitle = "" 
)

Create 3D histogram.

Definition at line 163 of file HistogramFactory.cc.

References CheckNameAndTitle(), and RBDS::LinSpace().

Referenced by CreateHistogram(), and PerEntryHistogram::PerEntryHistogram().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateHistogram4D()

BDSBH4DBase * HistogramFactory::CreateHistogram4D ( const HistogramDef4D d,
const std::string &  overRideName = "",
const std::string &  overRideTitle = "" 
)

Create 4D histogram.

Definition at line 198 of file HistogramFactory.cc.

References CheckNameAndTitle(), and RBDS::LinSpace().

Referenced by CreateHistogram(), and PerEntryHistogram::PerEntryHistogram().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: