ATLAS Offline Software
FPTracker/FPTracker/TransversePoint.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef FPTRACKER_TRANSVERSEPOINT_H
6 #define FPTRACKER_TRANSVERSEPOINT_H
7 
8 #include <ostream>
9 #include <string>
10 namespace FPTracker{
11 
13  public:
15  TransversePoint(double, double);
18  double operator[](unsigned int) const;
19  double& operator[](unsigned int);
20  TransversePoint& operator*=(double);
21  std::string str() const;
22  double x() const;
23  double y() const;
24  double mag2() const;
25  double mag() const;
26  private:
27  double m_x;
28  double m_y;
29  };
30 
33  TransversePoint operator*(double, const TransversePoint& lhs);
34  std::ostream& operator<<(std::ostream&, const TransversePoint&);
35 }
36 #endif
FPTracker::TransversePoint::str
std::string str() const
Definition: FPTracker/src/TransversePoint.cxx:66
FPTracker::operator<<
std::ostream & operator<<(std::ostream &os, const Beamline &bl)
Definition: FPTracker/src/Beamline.cxx:163
FPTracker::TransversePoint::mag2
double mag2() const
Definition: FPTracker/src/TransversePoint.cxx:25
FPTracker::TransversePoint::mag
double mag() const
Definition: FPTracker/src/TransversePoint.cxx:27
FPTracker::TransversePoint::m_y
double m_y
Definition: FPTracker/FPTracker/TransversePoint.h:28
FPTracker::operator*
Point operator*(double, const Point &lhs)
Definition: FPTracker/src/Point.cxx:123
FPTracker::TransversePoint::TransversePoint
TransversePoint()
Definition: FPTracker/src/TransversePoint.cxx:11
FPTracker::operator+
Point operator+(const Point &lhs, const Point &rhs)
Definition: FPTracker/src/Point.cxx:98
FPTracker::TransversePoint::m_x
double m_x
Definition: FPTracker/FPTracker/TransversePoint.h:27
FPTracker::TransversePoint::operator-=
TransversePoint & operator-=(const TransversePoint &rhs)
Definition: FPTracker/src/TransversePoint.cxx:61
FPTracker::TransversePoint::operator+=
TransversePoint & operator+=(const TransversePoint &rhs)
Definition: FPTracker/src/TransversePoint.cxx:56
FPTracker::TransversePoint::operator*=
TransversePoint & operator*=(double)
Definition: FPTracker/src/TransversePoint.cxx:19
FPTracker::TransversePoint::x
double x() const
Definition: FPTracker/src/TransversePoint.cxx:16
FPTracker::operator-
Point operator-(const Point &lhs, const Point &rhs)
Definition: FPTracker/src/Point.cxx:103
FPTracker
Definition: FPTracker/FPTracker/Beamline.h:12
FPTracker::TransversePoint::y
double y() const
Definition: FPTracker/src/TransversePoint.cxx:17
FPTracker::TransversePoint::operator[]
double operator[](unsigned int) const
Definition: FPTracker/src/TransversePoint.cxx:32
FPTracker::TransversePoint
Definition: FPTracker/FPTracker/TransversePoint.h:12