Package org.jlab.clas.physics
Class PhysicsEvent
java.lang.Object
org.jlab.clas.physics.PhysicsEvent
- Author:
- gavalian
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
PhysicsEventpublic PhysicsEvent()
- 
PhysicsEventpublic PhysicsEvent(double be) 
 
- 
- 
Method Details- 
addProperty
- 
hasProperty
- 
mcreturns generated event- Returns:
 
- 
getParticleMatchByPidreturns particle from reconstructed event that matches particle selected from generated event.- Parameters:
- pid- pid of the particle in generated event
- skip- order of particle in generated event
- Returns:
- particle from reconstructed event
 
- 
getProperty
- 
clearpublic void clear()
- 
countpublic int count()
- 
countGeneratedpublic int countGenerated()
- 
countByChargepublic int countByCharge(int charge) 
- 
countByPidpublic 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:
 
- 
countByPidpublic int countByPid(int pid) 
- 
addGeneratedParticle
- 
addGeneratedParticlepublic void addGeneratedParticle(int pid, double px, double py, double pz, double vx, double vy, double vz) 
- 
addParticle
- 
addParticlepublic void addParticle(int pid, double px, double py, double pz, double vx, double vy, double vz) 
- 
setBeam
- 
setBeampublic void setBeam(double mom_z) 
- 
setBeamParticle
- 
setTargetParticle
- 
beamParticle
- 
targetParticle
- 
getParticleIndexpublic int getParticleIndex(int pid, int skip) 
- 
removeParticleByPidpublic void removeParticleByPid(int pid, int skip) 
- 
removeParticlepublic void removeParticle(int index) 
- 
getParticleByCharge
- 
getParticleByCharge
- 
getParticleByPid
- 
getGeneratedParticle
- 
getParticle
- 
getParticle
- 
toLundStringGenerated
- 
toLundString
- 
toString
- 
closestParticle
- 
- 
getParticleListByPid
- 
getParticlesByPid
 
-