Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
duneanaobj
duneanaobj
StandardRecord
SRVector3D.cxx
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
// \file SRLorentzVector.cxx
3
// \author Christopher Backhouse - c.backhouse@ucl.ac.uk
4
////////////////////////////////////////////////////////////////////////
5
6
#include "
duneanaobj/StandardRecord/SRVector3D.h
"
7
8
#include <cmath>
9
#include <limits>
10
11
namespace
caf
12
{
13
SRVector3D::SRVector3D
() :
14
x
(
std
::numeric_limits<
float
>::signaling_NaN()),
15
y
(
std
::numeric_limits<
float
>::signaling_NaN()),
16
z
(
std
::numeric_limits<
float
>::signaling_NaN())
17
{}
18
19
SRVector3D::SRVector3D
(
float
_x,
float
_y,
float
_z) :
20
x
(_x),
y
(_y),
z
(_z)
21
{}
22
23
SRVector3D::SRVector3D
(
const
TVector3& v) :
24
x
(v.
X
()),
y
(v.
Y
()),
z
(v.
Z
())
25
{}
26
27
void
SRVector3D::SetXYZ
(
float
_x,
float
_y,
float
_z)
28
{
29
x
= _x;
30
y
= _y;
31
z
= _z;
32
}
33
34
SRVector3D::operator TVector3()
const
35
{
36
return
TVector3(
x
,
y
,
z
);
37
}
38
39
}
40
41
std::ostream &
operator<<
(std::ostream &
stream
,
const
caf::SRVector3D
&vec)
42
{
43
stream <<
"("
<< vec.
x
<<
","
<< vec.
y
<<
","
<< vec.
z
<<
")"
;
44
return
stream
;
45
}
caf::SRVector3D
A 3-vector with more efficient storage than TVector3.
Definition:
SRVector3D.h:25
caf::SRVector3D::SetXYZ
void SetXYZ(float x, float y, float z)
Definition:
SRVector3D.cxx:27
reco_momentum_tuples.float
float
Definition:
reco_momentum_tuples.py:12
caf::SRVector3D::Y
float Y() const
Definition:
SRVector3D.h:49
std
STL namespace.
operator<<
std::ostream & operator<<(std::ostream &stream, const caf::SRVector3D &vec)
Definition:
SRVector3D.cxx:41
makePolycone.z
z
Definition:
makePolycone.py:153
caf::SRVector3D::X
float X() const
Definition:
SRVector3D.h:48
caf::SRVector3D::z
float z
Definition:
SRVector3D.h:73
SRVector3D.h
generate_datataset.stream
stream
Definition:
generate_datataset.py:30
wirecell.validate.cmaps.y
y
Definition:
cmaps.py:73
caf::SRVector3D::Z
float Z() const
Definition:
SRVector3D.h:50
caf::SRVector3D::y
float y
Definition:
SRVector3D.h:72
caf::SRVector3D::x
float x
Definition:
SRVector3D.h:71
train.x
list x
Definition:
train.py:276
caf
Common Analysis Files.
Definition:
SRGAr.h:13
caf::SRVector3D::SRVector3D
SRVector3D()
Definition:
SRVector3D.cxx:13
Generated by
1.8.11