ATLAS Offline Software
Loading...
Searching...
No Matches
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
14namespace 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
double m_max
Definition PhiRange.h:40
double min() const
Definition PhiRange.cxx:30
void checkValues()
This function makes sure m_min really is less than m_max.
Definition PhiRange.cxx:63
bool contains(double number) const
returns true if the range contains the number (i.e.
Definition PhiRange.cxx:50
void setRange(double min, double max)
sets range
Definition PhiRange.cxx:39
double max() const
Definition PhiRange.cxx:34
double m_min
Definition PhiRange.h:39
~PhiRange()=default
double centre() const
returns the centre of the two ranges.
Definition PhiRange.cxx:93
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
std::string number(const double &d, const std::string &s)
Definition utils.cxx:186