|
BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Simple class to hold all unbound functions for ROOT. More...
#include <AnalysisUtilities.hh>

Public Member Functions | |
| std::vector< double > | LogSpace (double start, double stop, int nBins, double base=10, bool includeLastPoint=true) |
| std::vector< double > | LinSpace (double start, double stop, int nBins, bool includeLastPoint=true) |
| Linear range of values. | |
| void | FillTH1D (TH1D &h1d, const std::vector< float > &values, const std::vector< float > &weights) |
| Fill a vector of entries and weights into a TH1 histogram. | |
| ClassDef (AnalysisUtilities, 1) | |
Simple class to hold all unbound functions for ROOT.
ROOT struggles to generate dictionaries for namespaced functions and global functions. Here, we have a simple class with no members that has the functions required.
Definition at line 47 of file AnalysisUtilities.hh.
|
virtual |
Definition at line 37 of file AnalysisUtilities.cc.
| void AnalysisUtilities::FillTH1D | ( | TH1D & | h1d, |
| const std::vector< float > & | values, | ||
| const std::vector< float > & | weights | ||
| ) |
Fill a vector of entries and weights into a TH1 histogram.
Definition at line 57 of file AnalysisUtilities.cc.
| std::vector< double > AnalysisUtilities::LinSpace | ( | double | start, |
| double | stop, | ||
| int | nBins, | ||
| bool | includeLastPoint = true |
||
| ) |
Linear range of values.
Definition at line 49 of file AnalysisUtilities.cc.
References RBDS::LinSpace().

| std::vector< double > AnalysisUtilities::LogSpace | ( | double | start, |
| double | stop, | ||
| int | nBins, | ||
| double | base = 10, |
||
| bool | includeLastPoint = true |
||
| ) |
Definition at line 40 of file AnalysisUtilities.cc.