33 virtual float low(
void )
const;
36 virtual float high(
void )
const;
42 virtual float width(
void )
const;
46 virtual float low(
float lowIn );
49 virtual float high(
float highIn );
71 bool within(
const float value )
const;
81 virtual int dump(
void )
const;
96# define Range_INLINE_DEFINE_HERE
99#ifdef Range_INLINE_DEFINE_HERE
101inline float Range::low(
void )
const {
return _low; }
104 if ( i > _high ) i = _high;
108inline float Range::high(
void )
const {
return _high; }
111 if ( i < _low ) i = _low;
115inline float Range::center(
void )
const {
return ( _low + _high ) / 2.; }
117inline float Range::width(
void )
const {
return ( _high - _low ); }
146 if ( _low == -999. && _high == -999. ) {
return false; }
149 if (
f <= _high )
return true;
152 if ( _high == -999. )
154 if (
f >= _low )
return true;
156 if (
f >= _low &&
f <= _high )
return true;
161 if ( _low == -999. && _high == -999. ) {
return true; }
164 if (
f <= _high )
return true;
167 if ( _high == -999. )
169 if (
f >= _low )
return true;
171 if (
f >= _low &&
f <= _high )
return true;
176 if ( ( *
this ) == a )
return false;
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
to specify 1-dim region or range by two floats
virtual int dump(void) const
displays debug information.
Range(float low, float high)
Constructor.
virtual float low(void) const
returns lower limit.
virtual float high(void) const
returns higher limit.
virtual Range & set(float low, float high)
sets range.
virtual float width(void) const
returns width.
bool operator!=(const Range &) const
returns true if range is different.
virtual float low(void) const
returns lower limit.
virtual float center(void) const
returns center.
virtual Range & set(float low, float high)
sets range.
Range(const Range &)
Copy constructor.
bool within(const float value) const
returns true if given value is within a range.
virtual float width(void) const
returns width.
virtual float high(void) const
returns higher limit.
virtual Range & setByCenter(float center, float width)
sets range by center and width.
virtual float center(void) const
returns center.
bool within(const Range &) const
returns true if given Range is within(included in) a range.
virtual Range & setByCenter(float center, float width)
sets range by center and width.
virtual float low(float lowIn)
sets lower limit.
Range & operator=(const Range &)
Copy operator.
bool operator&(const Range &) const
returns true if two are overlaped each other.
bool within2(const float value) const
returns true if given value is within a range.
bool operator==(const Range &) const
returns true if range is the same.
virtual float high(float highIn)
sets higher limit.