-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParticle.h
More file actions
73 lines (53 loc) · 1.13 KB
/
Copy pathParticle.h
File metadata and controls
73 lines (53 loc) · 1.13 KB
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
#ifndef PARTICLE_H_
#define PARTICLE_H_
class Particle {
public:
/**
* Constructors
*/
Particle ();
Particle( const float px,
const float py,
const float pz,
const float energy);
/**
* Constructor for specific particle ID
*/
Particle( const float px,
const float py,
const float pz);
/**
* Default destructor
*/
virtual ~Particle();
/**
* Main class members for 4 vector calculations
*/
float _px, _py, _pz, _energy;
/**
* Basic getter functions to obtain 4 vector information
*/
float get_phi();
float get_pseudorapidity();
float get_rapidity();
float get_pt();
float get_p();
float get_mass();
float get_px();
float get_py();
float get_pz();
float get_energy();
/**
* Basic setter functions for changing the 4 vector information
*/
void set_px ( float px );
void set_py ( float py );
void set_pz ( float pz );
void set_energy ( float energy );
/**
* Useful Particle to Particle comparisons
*/
float delta_phi ( Particle& part );
float deltaR ( Particle& part );
};
#endif /* PARTICLE_H_ */