Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
added access to list of particles by pid to PhysicsEvent class
Browse files Browse the repository at this point in the history
  • Loading branch information
drewkenjo committed Jan 23, 2018
1 parent 882c3b7 commit fd6c2b2
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,4 +392,14 @@ public List getParticleListByPid(int... pids_order) {
}
return plist;
}

public List<Particle> getParticlesByPid(int pid){
List<Particle> plist = new ArrayList<Particle>();
for(Particle part: eventParticles){
if(part.pid()==pid){
plist.add(part);
}
}
return plist;
}
}

0 comments on commit fd6c2b2

Please sign in to comment.