33 virtual float low(
void)
const;
36 virtual float high(
void)
const;
39 virtual float center(
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;
74 bool within2(
const float value)
const;
81 virtual int dump(
void)
const;
96#define Range_INLINE_DEFINE_HERE
99#ifdef Range_INLINE_DEFINE_HERE
110 if (i > _high) i = _high;
123 if (i < _low) i = _low;
130 return (_low + _high) / 2.;
136 return (_high - _low);
172 if (_low == -999. && _high == -999.) {
176 if (
f <= _high)
return true;
179 if (_high == -999.) {
180 if (
f >= _low)
return true;
182 if (
f >= _low &&
f <= _high)
return true;
189 if (_low == -999. && _high == -999.) {
193 if (
f <= _high)
return true;
196 if (_high == -999.) {
197 if (
f >= _low)
return true;
199 if (
f >= _low &&
f <= _high)
return true;
206 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 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.
bool within(const float value) const
returns true if given value is within a range.
virtual Range & setByCenter(float center, float width)
sets range by center and width.
virtual int dump(void) const
displays debug information.
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.