ATLAS Offline Software
Loading...
Searching...
No Matches
TrigT1/TrigT1Interfaces/TrigT1Interfaces/Coordinate.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 Coordinate.h - description
7 -------------------
8 begin : 28/02/2002
9 email : e.moyse@qmul.ac.uk
10***************************************************************************/
11
12
13#ifndef TRIGT1INTERFACES_COORDINATE_H
14#define TRIGT1INTERFACES_COORDINATE_H
15
16// STL include(s):
17#include <iosfwd>
18
19// Gaudi/Athena include(s):
20#include "GaudiKernel/MsgStream.h"
21
31namespace LVL1 {
32
33 class Coordinate;
34 std::ostream& operator<< ( std::ostream& theStream, const Coordinate& theCoord );
35 MsgStream& operator<< ( MsgStream& theStream, const Coordinate& theCoord );
36
45 class Coordinate {
46
47 public:
48 Coordinate( double phi, double eta );
49 Coordinate();
50 virtual ~Coordinate() = default;
51
52 void setCoords( double phi, double eta );
53 double eta() const;
54 double phi() const;
55
58 friend std::ostream& operator<< ( std::ostream& theStream, const Coordinate& theCoord );
59 friend MsgStream& operator<< ( MsgStream& theStream, const Coordinate& theCoord );
60
61 protected:
62 void checkBounds();
63
64 private:
65 double m_phi;
66 double m_eta;
67 static const double m_twoPi;
68
69 }; // class Coordinate
70
71} // namespace LVL1
72
73#endif // TRIGT1INTERFACES_COORDINATE_H
Coordinate(double phi, double eta)
void checkBounds()
Ensure coords are sensible this could be done more intelligently, but at least it's readable!
void setCoords(double phi, double eta)
change coords of an existing Coordinate object
double phi() const
return phi
friend std::ostream & operator<<(std::ostream &theStream, const Coordinate &theCoord)
overload << operator so coordinate can be easily displayed... i.e.
virtual ~Coordinate()=default
double eta() const
return eta
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
std::ostream & operator<<(std::ostream &os, const TrigConf::IsolationLegacy &iso)