CFEL - ASG Software Suite
2.5.0
CASS
|
an axis of a more than 0 dimensional container More...
#include <result.hpp>
Public Types | |
enum | { serializationVersion =10 } |
the serialization version of this class More... | |
typedef T | value_t |
the presision type of the axis boundaries More... | |
Public Member Functions | |
Axis () | |
default Constructor More... | |
Axis (size_t nbrBins, value_t lowerLimit, value_t upperLimit, std::string title="Axis Title") | |
Constructor. More... | |
value_t | pos (const int bin) const |
calculate the position for a given bin More... | |
int | bin (const value_t &val) const |
return the bin that a value will fall in More... | |
bool | isUnderflow (int bin) const |
check if a bin is an underflow More... | |
bool | isOverflow (int bin) const |
check if a bin is an overflow More... | |
Public Attributes | |
size_t | nBins |
the number of bins in this axis More... | |
value_t | low |
lower end of the axis More... | |
value_t | up |
upper end of the axis More... | |
std::string | title |
the title of the axis More... | |
an axis of a more than 0 dimensional container
the | type in which the bin limits are given |
Definition at line 29 of file result.hpp.
typedef T cass::Axis< T >::value_t |
the presision type of the axis boundaries
Definition at line 216 of file result.hpp.
anonymous enum |
the serialization version of this class
Enumerator | |
---|---|
serializationVersion |
Definition at line 213 of file result.hpp.
|
inline |
default Constructor
Definition at line 219 of file result.hpp.
|
inline |
Constructor.
will set the properties in the initializtion list. Will also set the version for the de / serialization.
nbrBins | The Number of Bins the axis contains |
lowerLimit | The lower end of the axis |
upperLimit | The upper end of the axis |
Definition at line 235 of file result.hpp.
|
inline |
return the bin that a value will fall in
in case the value is nan return a value that states and underflow
val | the value that should be histogrammed |
Definition at line 259 of file result.hpp.
References cass::Axis< T >::low, cass::Axis< T >::nBins, and cass::Axis< T >::up.
Referenced by cass::histogramming::bin().
|
inline |
check if a bin is an overflow
bin | the bin to check |
Definition at line 281 of file result.hpp.
References cass::Axis< T >::nBins.
Referenced by cass::histogramming::bin().
|
inline |
check if a bin is an underflow
bin | the bin to check |
Definition at line 271 of file result.hpp.
Referenced by cass::histogramming::bin().
|
inline |
calculate the position for a given bin
bin | the bin to calculate the postion for |
Definition at line 247 of file result.hpp.
References cass::Axis< T >::low, cass::Axis< T >::nBins, and cass::Axis< T >::up.
Referenced by cass::pp400::ToftoEnergy(), cass::pp406::ToftoEnergy(), cass::pp407::ToftoEnergy(), cass::pp408::ToftoEnergy(), and cass::pp404::ToftoMtC().
value_t cass::Axis< T >::low |
lower end of the axis
Definition at line 290 of file result.hpp.
Referenced by cass::Axis< T >::bin(), cass::pp65::loadSettings(), cass::pp88::loadSettings(), lucassview::operator==(), cass::operator>>(), and cass::Axis< T >::pos().
size_t cass::Axis< T >::nBins |
the number of bins in this axis
Definition at line 287 of file result.hpp.
Referenced by cass::histogramming::bin(), cass::Axis< T >::bin(), cass::pp65::histogramAndBinCountWithConstant(), cass::pp65::histogramAndBinCountWithWeightFrom0DInput(), cass::pp65::histogramAndBinCountWithWeights(), cass::Axis< T >::isOverflow(), cass::pp65::loadSettings(), cass::pp88::loadSettings(), lucassview::operator==(), cass::operator>>(), and cass::Axis< T >::pos().
std::string cass::Axis< T >::title |
the title of the axis
Definition at line 296 of file result.hpp.
Referenced by cass::pp65::loadSettings(), lucassview::operator==(), and cass::operator>>().
value_t cass::Axis< T >::up |
upper end of the axis
Definition at line 293 of file result.hpp.
Referenced by cass::Axis< T >::bin(), cass::pp65::loadSettings(), cass::pp88::loadSettings(), lucassview::operator==(), cass::operator>>(), and cass::Axis< T >::pos().