ATLAS Offline Software
Loading...
Searching...
No Matches
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):
20
21namespace LVL1 {
22
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
double coord
Type of coordination system.
virtual ~CoordinateRange()=default
void setRanges(double phiMin, double phiMax, double etaMin, double etaMax)
change coords of an existing CoordinateRange object
void setCentre()
calculates the centre of the ranges and sets the phi,eta coords to that
CoordinateRange(double phiMin, double phiMax, double etaMin, double etaMax)
PhiRange phiRange() const
bool contains(Coordinate &coord) const
returns true if the coordinate falls inside the coordinate range
Coordinate(double phi, double eta)
Range class declaration.
Definition PhiRange.h:17
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...