added function for id of a particle

This commit is contained in:
2024-06-27 10:12:07 +02:00
parent 204b2817da
commit d08407c773
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -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_;
+4
View File
@@ -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