BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TPoint2D.cxx
Go to the documentation of this file.
1
//-----------------------------------------------------------------------------
2
// $Id: TPoint2D.cxx,v 1.4 2010/03/31 09:58:59 liucy Exp $
3
//-----------------------------------------------------------------------------
4
// Filename : TPoint2D.cc
5
// Section : Tracking
6
// Owner : Yoshi Iwasaki
7
// Email : yoshihito.iwasaki@kek.jp
8
//-----------------------------------------------------------------------------
9
// Description : A class to represent a point in 2D.
10
// See http://bsunsrv1.kek.jp/~yiwasaki/tracking/
11
//-----------------------------------------------------------------------------
12
13
#define TPOINT2D_INLINE_DEFINE_HERE
14
15
#include <iostream>
16
17
#include "TrkReco/TPoint2D.h"
18
19
TPoint2D::TPoint2D
() {
20
_p[0] = 0.;
21
_p[1] = 0.;
22
}
23
24
TPoint2D::TPoint2D
(
double
x
,
double
y
) {
25
_p[0] =
x
;
26
_p[1] =
y
;
27
}
28
29
TPoint2D::TPoint2D
(
const
HepPoint3D
& a ) {
30
_p[0] = a.x();
31
_p[1] = a.y();
32
}
33
34
TPoint2D::TPoint2D
(
const
HepVector3D
& a ) {
35
_p[0] = a.x();
36
_p[1] = a.y();
37
}
38
39
TPoint2D::~TPoint2D
() {}
40
41
std::ostream&
operator<<
( std::ostream&
s
,
const
TPoint2D
& a ) {
42
return
s
<<
"("
<< a.
x
() <<
","
<< a.
y
() <<
")"
;
43
}
s
XmlRpcServer s
Definition
HelloServer.cpp:11
HepPoint3D
HepGeom::Point3D< double > HepPoint3D
Definition
Reconstruction/TrkReco/include/TrkReco/TPoint2D.h:31
HepVector3D
HepGeom::Vector3D< double > HepVector3D
Definition
Reconstruction/TrkReco/include/TrkReco/TPoint2D.h:25
operator<<
std::ostream & operator<<(std::ostream &s, const TPoint2D &a)
Definition
TPoint2D.cxx:41
TPoint2D
A class to represent a point in 2D.
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TPoint2D.h:37
TPoint2D::y
double y(void) const
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TPoint2D.h:87
TPoint2D::~TPoint2D
virtual ~TPoint2D()
Destructor.
Definition
TPoint2D.cxx:39
TPoint2D::x
double x(void) const
Definition
InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TPoint2D.h:85
TPoint2D::TPoint2D
TPoint2D()
Constructors.
Definition
TPoint2D.cxx:19
8.0.0
BOSS_Source
Reconstruction
TrkReco
src
TPoint2D.cxx
Generated by
1.16.1