![]() |
ATLAS Offline Software
|
Range class declaration. More...
#include <PhiRange.h>
Public Member Functions | |
| PhiRange () | |
| PhiRange (double min, double max) | |
| ~PhiRange ()=default | |
| double | min () const |
| double | max () const |
| void | setRange (double min, double max) |
| sets range More... | |
| bool | contains (double number) const |
| returns true if the range contains the number (i.e. More... | |
| double | centre () const |
| returns the centre of the two ranges. More... | |
Private Member Functions | |
| void | checkValues () |
| This function makes sure m_min really is less than m_max. More... | |
Private Attributes | |
| double | m_min |
| double | m_max |
Range class declaration.
Definition at line 22 of file PhiRange.h.
| LVL1::PhiRange::PhiRange | ( | ) |
Definition at line 24 of file PhiRange.cxx.
| LVL1::PhiRange::PhiRange | ( | double | min, |
| double | max | ||
| ) |
Definition at line 29 of file PhiRange.cxx.
|
default |
| double LVL1::PhiRange::centre | ( | ) | const |
returns the centre of the two ranges.
The ranges are assumed to be <PI. If this is not true, then this function will return a centre opposite the true centre.
Definition at line 98 of file PhiRange.cxx.
|
private |
This function makes sure m_min really is less than m_max.
This function makes sure m_min really is less than m_max, and checks that phi values are sensible.
Definition at line 68 of file PhiRange.cxx.
| bool LVL1::PhiRange::contains | ( | double | number | ) | const |
returns true if the range contains the number (i.e.
if min<=number<=max)
if min<=number<=max). Because with phi ranges it loops at phi=2PI, the assumption is made that phiMax-phiMin<PI. If this is not true, the output from this method will be wrong!
Definition at line 55 of file PhiRange.cxx.
| double LVL1::PhiRange::max | ( | ) | const |
| double LVL1::PhiRange::min | ( | ) | const |
Definition at line 35 of file PhiRange.cxx.
| void LVL1::PhiRange::setRange | ( | double | min, |
| double | max | ||
| ) |
sets range
Definition at line 44 of file PhiRange.cxx.
|
private |
Definition at line 50 of file PhiRange.h.
|
private |
Definition at line 49 of file PhiRange.h.
1.8.18