BOSS
7.0.6
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 :
[email protected]
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
42
std::ostream &
43
operator <<
(std::ostream &
s
,
const
TPoint2D
& a) {
44
return
s
<<
"("
<< a.
x
() <<
","
<< a.
y
() <<
")"
;
45
}
s
XmlRpcServer s
Definition:
HelloServer.cpp:11
operator<<
std::ostream & operator<<(std::ostream &s, const TPoint2D &a)
Definition:
TPoint2D.cxx:43
TPoint2D.h
HepGeom::Point3D< double >
HepGeom::Vector3D< double >
TPoint2D
A class to represent a point in 2D.
Definition:
TPoint2D.h:37
TPoint2D::y
double y(void) const
Definition:
TPoint2D.h:94
TPoint2D::~TPoint2D
virtual ~TPoint2D()
Destructor.
Definition:
TPoint2D.cxx:39
TPoint2D::x
double x(void) const
Definition:
TPoint2D.h:88
TPoint2D::TPoint2D
TPoint2D()
Constructors.
Definition:
TPoint2D.cxx:19
y
double y[1000]
Definition:
draw_charge_space_coarse_II.cxx:8
source
Reconstruction
TrkReco
TrkReco-00-08-59-patch4-slc6tag
src
TPoint2D.cxx
Generated by
1.9.6