ATLAS Offline Software
PhiRange.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 /***************************************************************************
5  Range.h - description
6  -------------------
7  begin : 28/02/2002
8  email : e.moyse@qmul.ac.uk
9 ***************************************************************************/
10 
11 #ifndef TRIGT1INTERFACES_PHIRANGE_H
12 #define TRIGT1INTERFACES_PHIRANGE_H
13 
14 namespace LVL1 {
15 
17  class PhiRange {
18 
19  public:
20  PhiRange();
21  PhiRange( double min, double max );
22  ~PhiRange() = default;
23 
24  double min() const;
25  double max() const;
26 
28  void setRange( double min, double max );
30  bool contains( double number ) const;
33  double centre() const;
34 
35  private:
37  void checkValues();
38 
39  double m_min;
40  double m_max;
41 
42  }; // class PhiRange
43 
44 } // namespace LVL1
45 
46 #endif // TRIGT1INTERFACES_PHIRANGE_H
LVL1::PhiRange::contains
bool contains(double number) const
returns true if the range contains the number (i.e.
Definition: PhiRange.cxx:55
LVL1::PhiRange::centre
double centre() const
returns the centre of the two ranges.
Definition: PhiRange.cxx:98
LVL1::PhiRange::m_min
double m_min
Definition: PhiRange.h:49
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::PhiRange::m_max
double m_max
Definition: PhiRange.h:50
python.selection.number
number
Definition: selection.py:20
LVL1::PhiRange::min
double min() const
Definition: PhiRange.cxx:35
LVL1::PhiRange::max
double max() const
Definition: PhiRange.cxx:39
LVL1::PhiRange::checkValues
void checkValues()
This function makes sure m_min really is less than m_max.
Definition: PhiRange.cxx:68
LVL1::PhiRange::PhiRange
PhiRange()
Definition: PhiRange.cxx:24
LVL1::PhiRange::setRange
void setRange(double min, double max)
sets range
Definition: PhiRange.cxx:44
LVL1::PhiRange::~PhiRange
~PhiRange()=default