General class to handle range of points It is described by nBins bins and isn't optimised for special cases of bin widths. More...
#include <XeMath.h>
Public Member Functions | |
| double | centerOfBin (int index) |
| return center of "bin" between indexAndNextOne | |
| void | completeRange () |
| Fill internal members, especially the vector of values. | |
| virtual double | computeValue (int index)=0 |
| compute value corresponding to index | |
| virtual double | computeValue (double fractIndex)=0 |
| compute value corresponding to partial bin number | |
| XeRange * | findDefaultRange () |
| check whether this range is equal to an already defined default (log or lin) | |
| int | getClosestIndex (double test) |
| get the index of the value closest to a test valie | |
| virtual int | getIndex (double x)=0 |
| return index corresponding to a value | |
| pair< double, double > | getInterval (int i) |
| return limits of a given interval | |
| double | getMax () |
| return the highest value | |
| double | getMin () |
| return the lowest value | |
| int | getMode () |
| get the mode | |
| int | getNBins () |
| Get the number of bins. | |
| double | getNextValue (int index) |
| return x-value for a index after given index | |
| int | getNPoints () |
| Get the number of points. | |
| int | getReferenceIndex () |
| return the index of the value closest to default | |
| double | getStep () |
| return the (logarithmic) step, whenever defined | |
| vector< double > * | getTheValues () |
| return vector of the x-values | |
| double | getValue (int index) |
| return x-value for a given index | |
| double * | getValues () |
| return x-values | |
| bool | isGeneral () |
| Is it general? | |
| bool | isLinear () |
| Is it linear? | |
| bool | isLogarithmic () |
| Is it logarithmic? | |
| bool | operator== (const XeRange &other) |
| Comparison operator. | |
| bool | printIt (int level=1) |
| print it, as requested because it's an XeObject | |
| void | setReferenceIndex (double def) |
| set the index of the value closest to reference | |
| XeRange () | |
| Empty constructor for ROOT. | |
| XeRange (string what, int n, double a, double b, int mode) | |
| Constructor. | |
| virtual | ~XeRange () |
| Destructor. | |
Static Public Member Functions | |
| static ErRange * | getDefaultErRange () |
| Get the default ERecoil XeRange, instantiate it if necessary. | |
| static EventRange * | getDefaultEventRange () |
| Get the default Number of event XeRange, instantiate it if necessary. | |
| static MassRange * | getDefaultMassRange () |
| Get the default Mass XeRange, instantiate it if necessary. | |
| static S1Range * | getDefaultS1Range () |
| Get the default S1 XeRange, instantiate it if necessary. | |
| static SigmaRange * | getDefaultSigmaRange () |
| Get the default Sigma XeRange, instantiate it if necessary. | |
| static tValueRange * | getDefaultTValueRange () |
| Get the default t-value XeRange, instantiate it if necessary. | |
| static VEscRange * | getDefaultVEscRange () |
| Get the default V-escape XeRange, instantiate it if necessary. | |
| static YRange * | getDefaultYRange () |
| Get the default Y XeRange, instantiate it if necessary. | |
| static string | getTheName (string name, int n, double v0, double v1) |
| Compute the name of the range. | |
Protected Attributes | |
| double | highest |
| double | lowest |
| int | mode |
| int | nBins |
| int | nPoints |
| int | referenceIndex |
| double | step |
| vector< double > | xs |
Static Protected Attributes | |
| static ErRange * | defaultErRange |
| static EventRange * | defaultEventRange |
| static MassRange * | defaultMassRange |
| static S1Range * | defaultS1Range |
| static SigmaRange * | defaultSigmaRange |
| static tValueRange * | defaultTValueRange |
| static VEscRange * | defaultVEscRange |
| static YRange * | defaultYRange |
General class to handle range of points It is described by nBins bins and isn't optimised for special cases of bin widths.
| XeRange::XeRange | ( | string | what, | |
| int | n, | |||
| double | a, | |||
| double | b, | |||
| int | mode | |||
| ) |
Constructor.
| what | name of the quantity | |
| n | number of points | |
| a | lowest value | |
| b | hightest value | |
| mode | either LINEAR, LOG, or GENERAL |
| virtual double XeRange::computeValue | ( | int | index | ) | [pure virtual] |
compute value corresponding to index
| index | index |
Implemented in GeneralRange, LogRange, and LinearRange.
| virtual double XeRange::computeValue | ( | double | fractIndex | ) | [pure virtual] |
compute value corresponding to partial bin number
| fractIndex | fractional index |
Implemented in GeneralRange, LogRange, and LinearRange.
| XeRange* XeRange::findDefaultRange | ( | ) |
check whether this range is equal to an already defined default (log or lin)
| int XeRange::getClosestIndex | ( | double | test | ) |
get the index of the value closest to a test valie
| test | the test value |
| virtual int XeRange::getIndex | ( | double | x | ) | [pure virtual] |
return index corresponding to a value
| x | input value |
Implemented in GeneralRange, LogRange, and LinearRange.
| pair<double,double> XeRange::getInterval | ( | int | i | ) |
return limits of a given interval
| int XeRange::getMode | ( | ) |
get the mode
| vector<double>* XeRange::getTheValues | ( | ) |
return vector of the x-values
| double* XeRange::getValues | ( | ) |
return x-values
ErRange* XeRange::defaultErRange [static, protected] |
default ERecoil XeRange
EventRange* XeRange::defaultEventRange [static, protected] |
default nEventsXeRange
MassRange* XeRange::defaultMassRange [static, protected] |
default Mass XeRange
S1Range* XeRange::defaultS1Range [static, protected] |
default S1(p.e.p) XeRange
SigmaRange* XeRange::defaultSigmaRange [static, protected] |
default Sigma XeRange
tValueRange* XeRange::defaultTValueRange [static, protected] |
default t-value XeRange
VEscRange* XeRange::defaultVEscRange [static, protected] |
default V-escape XeRange
YRange* XeRange::defaultYRange [static, protected] |
default Y XeRange
double XeRange::highest [protected] |
largest value
double XeRange::lowest [protected] |
smallest value
int XeRange::mode [protected] |
either LINEAR, LOG, or GENERAL
int XeRange::nBins [protected] |
number of "bins" = nPoints-1
int XeRange::nPoints [protected] |
number of points
int XeRange::referenceIndex [protected] |
index of value closest to default value
double XeRange::step [protected] |
step, whenever defined
vector<double> XeRange::xs [protected] |
all values
1.6.1