Belle II Software
development
Point2D.cc
1
/**************************************************************************
2
* basf2 (Belle II Analysis Software Framework) *
3
* Author: The Belle II Collaboration *
4
* *
5
* See git log for contributors and copyright holders. *
6
* This file is licensed under LGPL-3.0, see LICENSE.md. *
7
**************************************************************************/
8
9
#include "trg/trg/Point2D.h"
10
11
namespace
Belle2
{
16
17
TRGPoint2D::TRGPoint2D
()
18
{
19
_p
[0] = 0.;
20
_p
[1] = 0.;
21
}
22
23
TRGPoint2D::TRGPoint2D
(
double
x
,
double
y
)
24
{
25
_p
[0] =
x
;
26
_p
[1] =
y
;
27
}
28
29
TRGPoint2D::TRGPoint2D
(
const
HepGeom::Point3D<double>
& a)
30
{
31
_p
[0] = a.x();
32
_p
[1] = a.y();
33
}
34
35
TRGPoint2D::TRGPoint2D
(
const
HepGeom::Vector3D<double>& a)
36
{
37
_p
[0] = a.x();
38
_p
[1] = a.y();
39
}
40
41
TRGPoint2D::TRGPoint2D
(
const
CLHEP::Hep3Vector& a)
42
{
43
_p
[0] = a.x();
44
_p
[1] = a.y();
45
}
46
47
TRGPoint2D::~TRGPoint2D
()
48
{
49
}
50
51
std::ostream&
52
operator <<
(std::ostream& s,
const
TRGPoint2D
& a)
53
{
54
return
s <<
"("
<< a.x() <<
","
<< a.y() <<
")"
;
55
}
56
58
}
// namespace Belle2
59
Belle2::TRGPoint2D
A class to represent a point in 2D.
Definition
Point2D.h:27
Belle2::TRGPoint2D::_p
double _p[2]
vector
Definition
Point2D.h:81
HepGeom::Point3D
Definition
TRGCDC.h:27
Belle2::operator<<
std::ostream & operator<<(std::ostream &output, const IntervalOfValidity &iov)
Definition
IntervalOfValidity.cc:194
Belle2::TRGPoint2D::TRGPoint2D
TRGPoint2D()
Constructor.
Definition
Point2D.cc:17
Belle2::TRGPoint2D::y
double y(void) const
y of the point
Definition
Point2D.h:99
Belle2::TRGPoint2D::x
double x(void) const
x of the point
Definition
Point2D.h:92
Belle2::TRGPoint2D::~TRGPoint2D
virtual ~TRGPoint2D()
Destructor.
Definition
Point2D.cc:47
Belle2
Abstract base class for different kinds of events.
Definition
MillepedeAlgorithm.h:17
trg
trg
src
Point2D.cc
Generated on Mon Sep 1 2025 03:02:57 for Belle II Software by
1.13.2