/
VirtualParticle.h
128 lines (101 loc) · 2.55 KB
/
VirtualParticle.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/**
\file
Declaration of class erhic::VirtualParticle.
\author Thomas Burton
\date 2011-08-19
\copyright 2011 Brookhaven National Lab
*/
#ifndef INCLUDE_EICSMEAR_ERHIC_VIRTUALPARTICLE_H_
#define INCLUDE_EICSMEAR_ERHIC_VIRTUALPARTICLE_H_
#include <TLorentzVector.h>
#include <TVector3.h>
#include "eicsmear/erhic/Pid.h"
namespace erhic {
/**
\brief Abstract base class for a general particle.
*/
class VirtualParticle : public TObject {
public:
/**
Destructor
*/
virtual ~VirtualParticle() { }
/**
Returns identity information for the Particle species.
*/
virtual Pid Id() const = 0;
/**
Returns the momentum-energy four-vector (px, py, pz, E).
*/
virtual TLorentzVector Get4Vector() const = 0;
/**
Returns the x component of 3-momentum.
*/
virtual Double_t GetPx() const = 0;
/**
Returns the y component of 3-momentum.
*/
virtual Double_t GetPy() const = 0;
/**
Returns the z component of 3-momentum.
*/
virtual Double_t GetPz() const = 0;
/**
Returns total energy.
*/
virtual Double_t GetE() const = 0;
/**
Returns the magnitude of 3-momentum (GeV).
*/
virtual Double_t GetP() const = 0;
/**
Returns invariant mass (GeV/c<sup>2</sup>).
*/
virtual Double_t GetM() const = 0;
/**
Returns momentum perpendicular to the beam direction.
*/
virtual Double_t GetPt() const = 0;
/**
Returns the polar angle in the range [0, pi] radians.
*/
virtual Double_t GetTheta() const = 0;
/**
Returns the polar angle in the range [0, 2pi] radians.
*/
virtual Double_t GetPhi() const = 0;
/**
Returns the rapidity.
*/
virtual Double_t GetRapidity() const = 0;
/**
Returns the pseudorapidity.
*/
virtual Double_t GetEta() const = 0;
/**
Returns the origin point of the particle in cm.
(0,0,0) indicates a particle originating in the collision.
*/
virtual TVector3 GetVertex() const = 0;
/**
A general "status" code for the particle
(definition depends on implementation).
*/
virtual UShort_t GetStatus() const = 0;
/**
Returns the index of the parent particle
*/
virtual UShort_t GetParentIndex() const = 0;
/**
Sets the origin coordinates
*/
virtual void SetVertex(const TVector3& /* (x, y, z) */) = 0;
/**
Sets the four-momentum of the particle.
Changes are propagated to derived quantities.
*/
virtual void Set4Vector(const TLorentzVector& /* (px, py, pz, E) */) = 0;
ClassDef(erhic::VirtualParticle, 1)
};
} // namespace erhic
#endif // INCLUDE_EICSMEAR_ERHIC_VIRTUALPARTICLE_H_