forked from altealorenzon/Cherenkov-Light-Detector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParticle.h
More file actions
33 lines (28 loc) · 756 Bytes
/
Particle.h
File metadata and controls
33 lines (28 loc) · 756 Bytes
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
#ifndef Particle_h
#define Particle_h
#include "Vector.h"
#include <vector>
class Particle {
public:
Particle( int id, Vector* x_0, double e, double theta_0, double phi_0 );
int getID();
double getMass();
double getCharge();
double getEnergy();
double getP();
void updatePosition();
Vector* getLastPosition();
vector<Vector*>* getPositionList();
private:
const int p_id;
const double mass;
const double charge;
double energy;
Vector* x;
double p;
const double step;
const double theta;
const double phi;
vector<Vector*>* position;
};
#endif