BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Class to manufacture histograms. More...
#include <HistogramFactory.hh>
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... | |
BDSBH4DBase * | CreateHistogram4D (const HistogramDef4D *d, const std::string &overRideName="", const std::string &overRideTitle="") |
Create 4D histogram. More... | |
ClassDef (HistogramFactory, 1) | |
Class to manufacture histograms.
Definition at line 44 of file HistogramFactory.hh.
|
virtual |
Definition at line 49 of file HistogramFactory.cc.
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().
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().
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().
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().
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().
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().