-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvent.cpp
More file actions
48 lines (40 loc) · 751 Bytes
/
Copy pathEvent.cpp
File metadata and controls
48 lines (40 loc) · 751 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include "Event.h"
/**
* Default constructor - just create an event with a default particle
*/
Event::Event()
{
_particles.push_back(Particle());
}
/**
* Default constructor. Sets _particles to the particles in this event
*/
Event::Event(const std::vector <Particle> & particles)
{
_particles = particles;
}
/**
* Default destructor
*/
Event::~Event () {}
/**
* Get a vector of particles for this event
*/
std::vector<Particle> Event::get_particles()
{
return _particles;
}
/**
* Set the particles for this event
*/
void Event::set_particles(std::vector<Particle> particles)
{
_particles = particles;
}
/**
* Return the number of particles in an event
*/
int Event::num_particles_in_event()
{
return _particles.size();
}