ndmspc 0.20250304.0
|
#include <Axis.h>
Public Member Functions | |
Axis (TAxis *base=nullptr, int rebin=1, int rebinShift=0, int min=1, int max=-1) | |
virtual | ~Axis () |
virtual void | Print (Option_t *option="") const |
Print function. | |
virtual void | Print (Option_t *option, int spaces) const |
void | SetBaseAxis (TAxis *base) |
Sets base axis. | |
TAxis * | SetBaseAxis () const |
Get base axixs. | |
void | SetRebin (int rebin) |
Sets rebin. | |
void | SetRebinShift (int rebinShift) |
Sets rebin shift. | |
void | SetBinMin (int min) |
Sets bin minimum. | |
void | SetBinMax (int max) |
Sets bin maximum. | |
void | SetRange (int min, int max) |
Sets range (minimum and maximum) | |
int | GetRebin () const |
Returns rebin. | |
int | GetRebinStart () const |
Returns rebin start. | |
int | GetRebinShift () const |
Returns rebin shift. | |
int | GetBinMin () const |
Returns bin minimum. | |
int | GetBinMax () const |
Return bin maximum. | |
int | GetBinMinBase () const |
Returns base minimum. | |
int | GetBinMaxBase () const |
Returns base maximum. | |
int | GetNBins () const |
Returns number of bins. | |
void | AddChild (Axis *axis) |
Add axis child. | |
Axis * | AddChild (int rebin, int rebinShift, int min, int max, Option_t *option="") |
Add axis child via parameters. | |
Axis * | GetChild (int i) |
Returns child. | |
Axis * | AddRange (int rebin, int nBins=-1) |
Add range. | |
void | FillAxis (TAxis *axis) |
Fill axis. | |
bool | IsRangeValid () |
Checks if range is valid. | |
Private Attributes | |
TAxis * | fBaseAxis = {nullptr} |
Base axis. | |
int | fNBins {0} |
Total number of bins. | |
int | fRebin {1} |
rebin factor | |
int | fRebinStart {1} |
rebin start | |
int | fBinMin {1} |
range minimum | |
int | fBinMax {-1} |
range maximum | |
std::vector< Axis * > | fChildren |
list of children axis | |
Ndmspc::Axis::Axis | ( | TAxis * | base = nullptr, |
int | rebin = 1, | ||
int | rebinShift = 0, | ||
int | min = 1, | ||
int | max = -1 ) |
|
inline |
Add axis child.
Definition at line 60 of file Axis.h.
References fChildren.
Referenced by AddRange().
Axis * Ndmspc::Axis::AddChild | ( | int | rebin, |
int | rebinShift, | ||
int | min, | ||
int | max, | ||
Option_t * | option = "" ) |
Axis * Ndmspc::Axis::AddRange | ( | int | rebin, |
int | nBins = -1 ) |
Add range.
Add Range from rebin and nbins
Definition at line 84 of file Axis.cxx.
References AddChild(), fBinMax, fBinMin, fChildren, GetRebinShift(), Print(), SetBinMax(), SetBinMin(), and SetRebinShift().
void Ndmspc::Axis::FillAxis | ( | TAxis * | axis | ) |
|
inline |
Return bin maximum.
Definition at line 51 of file Axis.h.
References fBinMax.
Referenced by FillAxis().
int Ndmspc::Axis::GetBinMaxBase | ( | ) | const |
Returns base maximum.
Definition at line 188 of file Axis.cxx.
References fBinMax, fRebin, and GetRebinShift().
Referenced by AddChild(), and Print().
|
inline |
int Ndmspc::Axis::GetBinMinBase | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
Returns rebin shift.
Definition at line 47 of file Axis.h.
References fRebinStart.
Referenced by AddRange(), GetBinMaxBase(), and GetBinMinBase().
|
inline |
bool Ndmspc::Axis::IsRangeValid | ( | ) |
|
virtual |
Print axis info
Definition at line 30 of file Axis.cxx.
References fBaseAxis, fBinMax, fBinMin, fChildren, fNBins, fRebin, fRebinStart, GetBinMaxBase(), and GetBinMinBase().
|
inlinevirtual |
Print function.
Definition at line 22 of file Axis.h.
References Print().
Referenced by AddChild(), AddRange(), IsRangeValid(), and Print().
|
inline |
|
inline |
|
inline |
Sets bin maximum.
Definition at line 37 of file Axis.h.
References fBinMax.
Referenced by AddRange().
|
inline |
Sets bin minimum.
Definition at line 35 of file Axis.h.
References fBinMin.
Referenced by AddRange().
|
inline |
|
inline |
|
inline |
Sets rebin shift.
Definition at line 33 of file Axis.h.
References fRebinStart.
Referenced by AddRange().
|
private |
Base axis.
Definition at line 76 of file Axis.h.
Referenced by AddChild(), Axis(), FillAxis(), Print(), SetBaseAxis(), and SetBaseAxis().
|
private |
range maximum
Definition at line 81 of file Axis.h.
Referenced by AddChild(), AddRange(), Axis(), GetBinMax(), GetBinMaxBase(), Print(), SetBinMax(), and SetRange().
|
private |
range minimum
Definition at line 80 of file Axis.h.
Referenced by AddRange(), GetBinMin(), GetBinMinBase(), IsRangeValid(), Print(), SetBinMin(), and SetRange().
|
private |
list of children axis
Definition at line 82 of file Axis.h.
Referenced by AddChild(), AddChild(), AddRange(), FillAxis(), GetChild(), IsRangeValid(), and Print().
|
private |
Total number of bins.
Definition at line 77 of file Axis.h.
Referenced by Axis(), FillAxis(), GetNBins(), and Print().
|
private |
rebin factor
Definition at line 78 of file Axis.h.
Referenced by Axis(), GetBinMaxBase(), GetBinMinBase(), GetRebin(), Print(), and SetRebin().
|
private |
rebin start
Definition at line 79 of file Axis.h.
Referenced by GetRebinShift(), GetRebinStart(), Print(), and SetRebinShift().