ATLAS Offline Software
Loading...
Searching...
No Matches
FPTracker/FPTracker/Point.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_POINT_H
6#define FPTRACKER_POINT_H
7
8#include <ostream>
9#include <string>
10namespace FPTracker{
11
12 class TransversePoint;
13
14 class Point{
15 public:
16 Point();
17 Point(double, double, double);
18 Point& operator+=(const Point& rhs);
19 Point& operator-=(const Point& rhs);
20 Point& operator+=(const TransversePoint& rhs);
21 Point& operator-=(const TransversePoint& rhs);
22 double operator[](unsigned int) const;
23 double& operator[](unsigned int);
24 Point& operator*=(double);
26 double perp2() const;
27 std::string str() const;
28 double x() const;
29 double y() const;
30 double z() const;
31 double mag2() const;
32 double mag() const;
33 private:
34 double m_x;
35 double m_y;
36 double m_z;
37 };
38
39 Point operator+(const Point& lhs, const Point& rhs);
40 Point operator-(const Point& lhs, const Point& rhs);
41 Point operator+(const Point& lhs, const TransversePoint& rhs);
42 Point operator-(const Point& lhs, const TransversePoint& rhs);
43 Point operator*(double, const Point& lhs);
44 std::ostream& operator<<(std::ostream&, const Point&);
45}
46#endif
Point & operator-=(const Point &rhs)
Point & operator*=(double)
double operator[](unsigned int) const
TransversePoint transverse() const
Point & operator+=(const Point &rhs)
std::string str() const
Point operator-(const Point &lhs, const Point &rhs)
Point operator+(const Point &lhs, const Point &rhs)
Point operator*(double, const Point &lhs)
std::ostream & operator<<(std::ostream &os, const Beamline &bl)