Jpp
15.0.0-rc.2
the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
software
JCompass
JCompass/JHit.hh
Go to the documentation of this file.
1
#ifndef __JCOMPASS_JHIT__
2
#define __JCOMPASS_JHIT__
3
4
#include "
JLang/JObjectID.hh
"
5
#include "
JGeometry3D/JQuaternion3D.hh
"
6
7
/**
8
* \author mdejong
9
*/
10
namespace
JCOMPASS {}
11
namespace
JPP {
using namespace
JCOMPASS; }
12
13
namespace
JCOMPASS {
14
15
using
JLANG::JObjectID
;
16
using
JGEOMETRY3D::JQuaternion3D
;
17
18
19
/**
20
* %Hit.
21
*/
22
struct
JHit
:
23
public
JObjectID
,
24
public
JQuaternion3D
25
{
26
/**
27
* Default constructor.
28
*/
29
JHit
() :
30
JObjectID
(),
31
JQuaternion3D
(),
32
z
(0.0),
33
sigma
(0.0)
34
{}
35
36
37
/**
38
* Constructor.
39
*
40
* \param id identifier
41
* \param z z-position
42
* \param Q quaternion
43
* \param sigma resolution [deg]
44
*/
45
JHit
(
const
int
id
,
46
const
double
z
,
47
const
JQuaternion3D
&
Q
,
48
const
double
sigma
) :
49
JObjectID
(id),
50
JQuaternion3D
(Q),
51
z(z),
52
sigma(sigma)
53
{}
54
55
56
/**
57
* Get z-position.
58
*
59
* \return z-position
60
*/
61
double
getZ
()
const
62
{
63
return
z
;
64
}
65
66
67
/**
68
* Get resolution.
69
*
70
* \return sigma
71
*/
72
double
getSigma
()
const
73
{
74
return
sigma
;
75
}
76
77
protected
:
78
double
z
;
79
double
sigma
;
80
};
81
}
82
83
#endif
Q
Q(UTCMax_s-UTCMin_s)-livetime_s
JCOMPASS::JHit::JHit
JHit()
Default constructor.
Definition:
JCompass/JHit.hh:29
JCOMPASS::JHit::getZ
double getZ() const
Get z-position.
Definition:
JCompass/JHit.hh:61
JQuaternion3D.hh
JGEOMETRY3D::JQuaternion3D
Data structure for unit quaternion in three dimensions.
Definition:
JQuaternion3D.hh:303
JObjectID.hh
JCOMPASS::JHit
Hit.
Definition:
JCompass/JHit.hh:22
JLANG::JObjectID
Auxiliary class for object identification.
Definition:
JObjectID.hh:22
JCOMPASS::JHit::sigma
double sigma
Definition:
JCompass/JHit.hh:79
JCOMPASS::JHit::z
double z
Definition:
JCompass/JHit.hh:78
JCOMPASS::JHit::getSigma
double getSigma() const
Get resolution.
Definition:
JCompass/JHit.hh:72
JCOMPASS::JHit::JHit
JHit(const int id, const double z, const JQuaternion3D &Q, const double sigma)
Constructor.
Definition:
JCompass/JHit.hh:45
Generated by
1.8.5