BOSS 7.0.4
BESIII Offline Software System
|
to specify 1-dim region or range by two floats More...
#include <Range.h>
Public Member Functions | |
Range () | |
Constructor. | |
Range (const Range &) | |
Copy constructor. | |
Range (float low, float high) | |
Constructor. | |
virtual float | low (void) const |
returns lower limit. | |
virtual float | high (void) const |
returns higher limit. | |
virtual float | center (void) const |
returns center. | |
virtual float | width (void) const |
returns width. | |
virtual float | low (float lowIn) |
sets lower limit. | |
virtual float | high (float highIn) |
sets higher limit. | |
virtual Range & | set (float low, float high) |
sets range. | |
virtual Range & | setByCenter (float center, float width) |
sets range by center and width. | |
Range & | operator= (const Range &) |
Copy operator. | |
bool | operator== (const Range &) const |
returns true if range is the same. | |
bool | operator!= (const Range &) const |
returns true if range is different. | |
bool | operator& (const Range &) const |
returns true if two are overlaped each other. | |
bool | within (const float value) const |
returns true if given value is within a range. | |
bool | within2 (const float value) const |
returns true if given value is within a range. | |
bool | within (const Range &) const |
returns true if given Range is within(included in) a range. | |
virtual int | dump (void) const |
displays debug information. | |
Range () | |
Constructor. | |
Range (const Range &) | |
Copy constructor. | |
Range (float low, float high) | |
Constructor. | |
virtual float | low (void) const |
returns lower limit. | |
virtual float | high (void) const |
returns higher limit. | |
virtual float | center (void) const |
returns center. | |
virtual float | width (void) const |
returns width. | |
virtual float | low (float lowIn) |
sets lower limit. | |
virtual float | high (float highIn) |
sets higher limit. | |
virtual Range & | set (float low, float high) |
sets range. | |
virtual Range & | setByCenter (float center, float width) |
sets range by center and width. | |
Range & | operator= (const Range &) |
Copy operator. | |
bool | operator== (const Range &) const |
returns true if range is the same. | |
bool | operator!= (const Range &) const |
returns true if range is different. | |
bool | operator& (const Range &) const |
returns true if two are overlaped each other. | |
bool | within (const float value) const |
returns true if given value is within a range. | |
bool | within2 (const float value) const |
returns true if given value is within a range. | |
bool | within (const Range &) const |
returns true if given Range is within(included in) a range. | |
virtual int | dump (void) const |
displays debug information. | |
to specify 1-dim region or range by two floats
Definition at line 19 of file InstallArea/include/TrkReco/TrkReco/Range.h.
Range::Range | ( | ) |
Range::Range | ( | const Range & | ib | ) |
Copy constructor.
Definition at line 21 of file Range.cxx.
Range::Range | ( | float | low, |
float | high | ||
) |
Range::Range | ( | ) |
Constructor.
Range::Range | ( | const Range & | ) |
Copy constructor.
Range::Range | ( | float | low, |
float | high | ||
) |
Constructor.
|
inlinevirtual |
returns center.
Definition at line 129 of file InstallArea/include/TrkReco/TrkReco/Range.h.
Referenced by setByCenter().
|
virtual |
returns center.
|
virtual |
|
virtual |
displays debug information.
|
inlinevirtual |
sets higher limit.
Definition at line 122 of file InstallArea/include/TrkReco/TrkReco/Range.h.
|
virtual |
sets higher limit.
|
inlinevirtual |
returns higher limit.
Definition at line 116 of file InstallArea/include/TrkReco/TrkReco/Range.h.
Referenced by operator&(), operator=(), operator==(), Range(), and within().
|
virtual |
returns higher limit.
|
inlinevirtual |
sets lower limit.
Definition at line 109 of file InstallArea/include/TrkReco/TrkReco/Range.h.
|
virtual |
sets lower limit.
|
inlinevirtual |
returns lower limit.
Definition at line 103 of file InstallArea/include/TrkReco/TrkReco/Range.h.
Referenced by operator&(), operator=(), operator==(), Range(), and within().
|
virtual |
returns lower limit.
returns true if range is different.
Definition at line 205 of file InstallArea/include/TrkReco/TrkReco/Range.h.
returns true if two are overlaped each other.
Definition at line 212 of file InstallArea/include/TrkReco/TrkReco/Range.h.
Copy operator.
Definition at line 163 of file InstallArea/include/TrkReco/TrkReco/Range.h.
|
inlinevirtual |
sets range.
Definition at line 141 of file InstallArea/include/TrkReco/TrkReco/Range.h.
|
virtual |
sets range.
|
inlinevirtual |
sets range by center and width.
Definition at line 155 of file InstallArea/include/TrkReco/TrkReco/Range.h.
|
virtual |
sets range by center and width.
|
inlinevirtual |
returns width.
Definition at line 135 of file InstallArea/include/TrkReco/TrkReco/Range.h.
Referenced by setByCenter().
|
virtual |
returns width.
|
inline |
returns true if given value is within a range.
Definition at line 171 of file InstallArea/include/TrkReco/TrkReco/Range.h.
Referenced by operator&(), and within().
bool Range::within | ( | const float | value | ) | const |
returns true if given value is within a range.
returns true if given Range is within(included in) a range.
|
inline |
returns true if given value is within a range.
Definition at line 188 of file InstallArea/include/TrkReco/TrkReco/Range.h.
bool Range::within2 | ( | const float | value | ) | const |
returns true if given value is within a range.