EIC Software
Reference for
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
FairTrackPar.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairTrackPar.h
1
#ifndef FAIRSTSTRACKPAR
2
#define FAIRSTSTRACKPAR 1
3
4
#include "TObject.h"
5
#include "TVector3.h"
6
7
class
FairLogger
;
8
9
class
FairTrackPar
:
public
TObject
10
{
11
12
public
:
13
15
FairTrackPar
();
16
18
FairTrackPar
(Double_t
x
, Double_t
y
, Double_t
z
,
19
Double_t fx, Double_t fy, Double_t fz, Int_t q);
20
22
virtual
~FairTrackPar
();
23
25
virtual
void
Print
(Option_t* option =
""
)
const
;
27
virtual
TVector3
GetPosition
()
const
{
return
TVector3(
fX
,
fY
,
fZ
); };
28
29
virtual
Double_t
GetX
() {
return
fX
; };
30
virtual
Double_t
GetY
() {
return
fY
; };
31
virtual
Double_t
GetZ
() {
return
fZ
; };
32
Int_t
GetQ
()
const
{
return
fq
; };
33
34
virtual
Double_t
GetDX
()
const
{
return
fDX
; };
35
virtual
Double_t
GetDY
()
const
{
return
fDY
; };
36
virtual
Double_t
GetDZ
()
const
{
return
fDZ
; };
37
38
virtual
TVector3
GetMomentum
()
const
{
return
TVector3(
fPx
,
fPy
,
fPz
); };
39
40
virtual
Double_t
GetPx
()
const
{
return
fPx
; };
41
virtual
Double_t
GetPy
()
const
{
return
fPy
; };
42
virtual
Double_t
GetPz
()
const
{
return
fPz
; };
43
virtual
Double_t
GetQp
()
const
{
return
fQp
; };
44
45
virtual
Double_t
GetDPx
()
const
{
return
fDPx
; };
46
virtual
Double_t
GetDPy
()
const
{
return
fDPy
; };
47
virtual
Double_t
GetDPz
()
const
{
return
fDPz
; };
48
virtual
Double_t
GetDQp
()
const
{
return
fDQp
; };
49
50
51
52
virtual
void
SetX
(Double_t x) {
fX
=
x
; };
53
virtual
void
SetY
(Double_t y) {
fY
=
y
; };
54
virtual
void
SetZ
(Double_t z) {
fZ
=
z
; };
55
56
virtual
void
SetDX
(Double_t
dx
) {
fDX
=
dx
; };
57
virtual
void
SetDY
(Double_t
dy
) {
fDY
=
dy
; };
58
virtual
void
SetDZ
(Double_t
dz
) {
fDZ
=
dz
; };
59
60
virtual
void
SetPx
(Double_t px) {
fPx
= px; };
61
virtual
void
SetPy
(Double_t py) {
fPy
= py; };
62
virtual
void
SetPz
(Double_t pz) {
fPz
= pz; };
63
64
virtual
void
SetDPx
(Double_t dpx) {
fDPx
= dpx; };
65
virtual
void
SetDPy
(Double_t dpy) {
fDPy
= dpy; };
66
virtual
void
SetDPz
(Double_t dpz) {
fDPz
= dpz; };
67
68
void
SetQp
(Double_t qp) {
fQp
= qp; };
69
70
71
protected
:
72
74
Double_t
fX
,
fY
,
fZ
;
75
77
Double_t
fDX
,
fDY
,
fDZ
;
78
80
Double_t
fPx
,
fPy
,
fPz
;
81
83
Double_t
fDPx
,
fDPy
,
fDPz
;
84
86
Double_t
fQp
;
87
89
Double_t
fDQp
;
90
92
Int_t
fq
;
93
94
FairLogger
*
fLogger
;
95
96
97
ClassDef
(
FairTrackPar
,1);
98
99
};
100
#endif
EicRoot
blob
master
trackbase
FairTrackPar.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:37
using
1.8.2 with
EIC GitHub integration