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