added function for id of a particle
This commit is contained in:
@@ -47,6 +47,8 @@ class Particle {
|
||||
void resetTimeInBin();
|
||||
double timeInBin() const;
|
||||
|
||||
long int ID() const;
|
||||
|
||||
private:
|
||||
CartesianVector velocity_;
|
||||
CartesianCoordinate position_;
|
||||
|
||||
@@ -111,4 +111,8 @@ double Particle::timeInBin() const {
|
||||
return time_in_bin_s_;
|
||||
}
|
||||
|
||||
long int Particle::ID() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
} // namespace particle
|
||||
|
||||
Reference in New Issue
Block a user