ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
LVL1::Range Class Reference

Range class declaration. More...

#include <Range.h>

Collaboration diagram for LVL1::Range:

Public Member Functions

 Range ()
 
 Range (double min, double max)
 
 ~Range ()=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...
 

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
 

Detailed Description

Range class declaration.

Definition at line 22 of file Trigger/TrigT1/TrigT1Interfaces/TrigT1Interfaces/Range.h.

Constructor & Destructor Documentation

◆ Range() [1/2]

Range::Range ( )

Definition at line 20 of file Trigger/TrigT1/TrigT1Interfaces/src/Range.cxx.

21  : m_min( min ), m_max( max ) {
22 
23  checkValues();

◆ Range() [2/2]

Range::Range ( double  min,
double  max 
)

Definition at line 25 of file Trigger/TrigT1/TrigT1Interfaces/src/Range.cxx.

26  {
27  return m_min;
28  }
29 

◆ ~Range()

LVL1::Range::~Range ( )
default

Member Function Documentation

◆ checkValues()

void Range::checkValues ( )
private

This function makes sure m_min really is less than m_max.

Definition at line 53 of file Trigger/TrigT1/TrigT1Interfaces/src/Range.cxx.

◆ contains()

bool Range::contains ( double  number) const

returns true if the range contains the number (i.e.

if min<=number<=max)

Definition at line 48 of file Trigger/TrigT1/TrigT1Interfaces/src/Range.cxx.

48  {
49  if ( m_min >= m_max ) {
50  double temp = m_max;

◆ max()

double Range::max ( ) const

Definition at line 35 of file Trigger/TrigT1/TrigT1Interfaces/src/Range.cxx.

35  {
36  m_min = min;
37  m_max = max;

◆ min()

double Range::min ( ) const

◆ setRange()

void Range::setRange ( double  min,
double  max 
)

sets range

Definition at line 40 of file Trigger/TrigT1/TrigT1Interfaces/src/Range.cxx.

43  {
44  return ( ( m_min <= number ) && ( number <= m_max ) );

Member Data Documentation

◆ m_max

double LVL1::Range::m_max
private

◆ m_min

double LVL1::Range::m_min
private

The documentation for this class was generated from the following files:
LVL1::Range::checkValues
void checkValues()
This function makes sure m_min really is less than m_max.
Definition: Trigger/TrigT1/TrigT1Interfaces/src/Range.cxx:53
LVL1::Range::min
double min() const
Definition: Trigger/TrigT1/TrigT1Interfaces/src/Range.cxx:31
LVL1::Range::m_max
double m_max
Definition: Trigger/TrigT1/TrigT1Interfaces/TrigT1Interfaces/Range.h:45
LVL1::Range::max
double max() const
Definition: Trigger/TrigT1/TrigT1Interfaces/src/Range.cxx:35
python.selection.number
number
Definition: selection.py:20
LVL1::Range::m_min
double m_min
Definition: Trigger/TrigT1/TrigT1Interfaces/TrigT1Interfaces/Range.h:44