ATLAS Offline Software
CoordinateRange.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 /*
3  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
4 */
5 /***************************************************************************
6  CoordinateRange.h - description
7  -------------------
8  begin : 28/02/2002
9  email : e.moyse@qmul.ac.uk
10 ***************************************************************************/
11 
12 
13 #ifndef TRIGT1INTERFACES_COORDINATERANGE_H
14 #define TRIGT1INTERFACES_COORDINATERANGE_H
15 
16 // Local include(s):
18 #include "TrigT1Interfaces/Range.h"
20 
21 namespace LVL1 {
22 
31 class CoordinateRange : public Coordinate {
32  public:
33  CoordinateRange(double phiMin, double phiMax, double etaMin, double etaMax);
35  virtual ~CoordinateRange() = default;
36 
37  void setRanges(double phiMin, double phiMax, double etaMin, double etaMax);
38  PhiRange phiRange() const;
39  Range etaRange() const;
41  bool contains(Coordinate& coord) const;
42 
43  private:
45  void setCentre();
46 
49 
50 }; // class CoordinateRange
51 
52 } // namespace LVL1
53 
54 #endif // TRIGT1INTERFACES_COORDINATERANGE_H
LVL1::Range
Range class declaration.
Definition: Trigger/TrigT1/TrigT1Interfaces/TrigT1Interfaces/Range.h:22
LVL1::CoordinateRange::phiRange
PhiRange phiRange() const
Definition: CoordinateRange.cxx:40
LVL1::CoordinateRange::m_phiRange
PhiRange m_phiRange
Definition: CoordinateRange.h:57
LVL1::CoordinateRange::setCentre
void setCentre()
calculates the centre of the ranges and sets the phi,eta coords to that
Definition: CoordinateRange.cxx:51
xAOD::etaMax
etaMax
Definition: HIEventShape_v2.cxx:46
Range.h
LVL1::CoordinateRange::setRanges
void setRanges(double phiMin, double phiMax, double etaMin, double etaMax)
change coords of an existing CoordinateRange object
Definition: CoordinateRange.cxx:31
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::Coordinate
Coordinate class declaration.
Definition: TrigT1/TrigT1Interfaces/TrigT1Interfaces/Coordinate.h:50
LVL1::CoordinateRange::contains
bool contains(Coordinate &coord) const
returns true if the coordinate falls inside the coordinate range
Definition: CoordinateRange.cxx:45
LVL1::CoordinateRange::~CoordinateRange
virtual ~CoordinateRange()=default
LVL1::PhiRange
Range class declaration.
Definition: PhiRange.h:22
LVL1::CoordinateRange::etaRange
Range etaRange() const
Definition: CoordinateRange.cxx:42
Coordinate.h
JetVoronoiDiagramHelpers::coord
double coord
Definition: JetVoronoiDiagramHelpers.h:45
PhiRange.h
LArCellBinning.etaMin
etaMin
Definition: LArCellBinning.py:84
LVL1::CoordinateRange::CoordinateRange
CoordinateRange()
Definition: CoordinateRange.cxx:27
LVL1::CoordinateRange::m_etaRange
Range m_etaRange
Definition: CoordinateRange.h:58