ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4VtxPointv1.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4VtxPointv1.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4MAIN_PHG4VTXPOINTV1_H
4
#define G4MAIN_PHG4VTXPOINTV1_H
5
6
#include "
PHG4VtxPoint.h
"
7
8
#include <climits>
// for INT_MIN
9
#include <cmath>
// def of NAN
10
#include <iostream>
// for cout, ostream
11
12
class
PHG4VtxPointv1
:
public
PHG4VtxPoint
13
{
14
public
:
15
PHG4VtxPointv1
():
16
vx
(NAN),
17
vy
(NAN),
18
vz
(NAN),
19
t0
(NAN),
20
id
(
INT_MIN
)
21
{}
22
23
PHG4VtxPointv1
(
const
PHG4VtxPoint
*vtx):
24
vx
(vtx->
get_x
()),
25
vy
(vtx->
get_y
()),
26
vz
(vtx->
get_z
()),
27
t0
(vtx->
get_t
()),
28
id
(vtx->
get_id
())
29
{}
30
31
PHG4VtxPointv1
(
const
double
x
,
const
double
y
,
const
double
z
,
const
double
t
,
const
int
id_value =
INT_MIN
):
32
vx
(x),
33
vy
(y),
34
vz
(z),
35
t0
(t),
36
id
(id_value)
37
{}
38
39
~PHG4VtxPointv1
()
override
{}
40
41
// from PHObject
42
void
identify
(std::ostream& os = std::cout)
const override
;
43
44
void
set_x
(
const
double
r
)
override
{
vx
=
r
;}
45
void
set_y
(
const
double
r
)
override
{
vy
=
r
;}
46
void
set_z
(
const
double
r
)
override
{
vz
=
r
;}
47
void
set_t
(
const
double
r
)
override
{
t0
=
r
;}
48
void
set_id
(
const
int
i)
override
{
id
= i;}
49
50
double
get_x
()
const override
{
return
vx
;}
51
double
get_y
()
const override
{
return
vy
;}
52
double
get_z
()
const override
{
return
vz
;}
53
double
get_t
()
const override
{
return
t0
;}
54
int
get_id
()
const override
{
return
id
;}
55
56
57
protected
:
58
59
double
vx
;
60
double
vy
;
61
double
vz
;
62
double
t0
;
63
65
int
id
;
66
67
ClassDefOverride(
PHG4VtxPointv1
,2)
68
};
69
70
71
72
73
#endif
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4VtxPointv1.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:44
using
1.8.2 with
ECCE GitHub integration