Class PhysicsEvent
java.lang.Object
org.jlab.clas.physics.PhysicsEvent
- Author:
- gavalian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGeneratedParticle(int pid, double px, double py, double pz, double vx, double vy, double vz) voidaddGeneratedParticle(Particle part) voidaddParticle(int pid, double px, double py, double pz, double vx, double vy, double vz) voidaddParticle(Particle part) voidaddProperty(String name, double value) voidclear()closestParticle(Particle child) intcount()intcountByCharge(int charge) intcountByPid(int pid) intcountByPid(int pid, boolean generated) returns number of particles with given PID (Lund id), if generated flag==true the count in generated particles is returned.intgetGeneratedParticle(int index) getParticle(int index) getParticle(String selector) getParticleByCharge(int charge, int skip) getParticleByCharge(int charge, int skip, int pid) getParticleByPid(int pid, int skip) intgetParticleIndex(int pid, int skip) getParticleListByPid(int... pids_order) getParticleMatchByPid(int pid, int skip) returns particle from reconstructed event that matches particle selected from generated event.getParticlesByPid(int pid) doublegetProperty(String name) booleanhasProperty(String name) mc()returns generated eventvoidremoveParticle(int index) voidremoveParticleByPid(int pid, int skip) voidsetBeam(double mom_z) voidvoidvoidtoString()
-
Constructor Details
-
PhysicsEvent
public PhysicsEvent() -
PhysicsEvent
public PhysicsEvent(double be)
-
-
Method Details
-
addProperty
-
hasProperty
-
mc
-
getParticleMatchByPid
returns particle from reconstructed event that matches particle selected from generated event.- Parameters:
pid- pid of the particle in generated eventskip- order of particle in generated event- Returns:
- particle from reconstructed event
-
getProperty
-
clear
public void clear() -
count
public int count() -
countGenerated
public int countGenerated() -
countByCharge
public int countByCharge(int charge) -
countByPid
public int countByPid(int pid, boolean generated) returns number of particles with given PID (Lund id), if generated flag==true the count in generated particles is returned.- Parameters:
pid-generated-- Returns:
-
countByPid
public int countByPid(int pid) -
addGeneratedParticle
-
addGeneratedParticle
public void addGeneratedParticle(int pid, double px, double py, double pz, double vx, double vy, double vz) -
addParticle
-
addParticle
public void addParticle(int pid, double px, double py, double pz, double vx, double vy, double vz) -
setBeam
-
setBeam
public void setBeam(double mom_z) -
setBeamParticle
-
setTargetParticle
-
beamParticle
-
targetParticle
-
getParticleIndex
public int getParticleIndex(int pid, int skip) -
removeParticleByPid
public void removeParticleByPid(int pid, int skip) -
removeParticle
public void removeParticle(int index) -
getParticleByCharge
-
getParticleByCharge
-
getParticleByPid
-
getGeneratedParticle
-
getParticle
-
getParticle
-
toLundStringGenerated
-
toLundString
-
toString
-
closestParticle
-
-
getParticleListByPid
-
getParticlesByPid
-