![]() |
AliPhysics
ba8894a (ba8894a)
|
Class creating a variable binning, used in the histogram manager. More...
#include <TVariableBinning.h>
Classes | |
class | LimitsNotSetException |
Exception indicating that the limits are not set. More... | |
Public Member Functions | |
TVariableBinning () | |
TVariableBinning (Int_t nbins, const Double_t *binedges) | |
TVariableBinning (const TArrayD &binedges) | |
virtual | ~TVariableBinning () |
virtual TBinning * | MakeCopy () const |
void | Set (Int_t nbins, const Double_t *binedges) |
void | Set (const TArrayD &binedges) |
virtual void | CreateBinEdges (TArrayD &binedges) const |
![]() | |
TBinning () | |
virtual | ~TBinning () |
Private Attributes | |
TArrayD | fBinEdges |
Class creating a variable binning, used in the histogram manager.
This class creates a varible (non-linear) binning. For this the user must provide
The information can be set either in the constructor
or using the set function
The binning can be converted to a TArrayD which contains the bin edges in increasing order:
Definition at line 60 of file TVariableBinning.h.
TVariableBinning::TVariableBinning | ( | ) |
Constructor
Definition at line 17 of file TVariableBinning.cxx.
Referenced by MakeCopy(), and TVariableBinning::LimitsNotSetException::what().
Constructor, defining the bin edges from a c-array
[in] | nbins | Number of bins |
[in] | binedges | Bin edges |
Definition at line 24 of file TVariableBinning.cxx.
TVariableBinning::TVariableBinning | ( | const TArrayD & | binedges | ) |
Constructor, defining the bin edges from a ROOT-array
[in] | binedges | Bin edges |
Definition at line 31 of file TVariableBinning.cxx.
|
inlinevirtual |
Destructor
Definition at line 113 of file TVariableBinning.h.
|
virtual |
Converting the variable binning in a set of bin edges
binedges |
Implements TBinning.
Definition at line 38 of file TVariableBinning.cxx.
Referenced by Set().
|
virtual |
Implementation of the copy function for the linear binning class
Implements TBinning.
Definition at line 45 of file TVariableBinning.cxx.
Referenced by ~TVariableBinning().
Set the binning from a c-array
[in] | nbins | Number of bins |
[in] | binedges | Bin edges |
Definition at line 145 of file TVariableBinning.h.
Referenced by TVariableBinning(), and ~TVariableBinning().
|
inline |
Set the binning from a ROOT array
[in] | binedges | Bin edges |
Definition at line 132 of file TVariableBinning.h.
|
private |
Definition at line 142 of file TVariableBinning.h.
Referenced by CreateBinEdges(), and Set().