Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- addProperty(String, double)
- hasProperty(String)
- mc()
- getParticleMatchByPid(int, int)
- getProperty(String)
- clear()
- count()
- countGenerated()
- countByCharge(int)
- countByPid(int, boolean)
- countByPid(int)
- addGeneratedParticle(Particle)
- addGeneratedParticle(int, double, double, double, double, double, double)
- addParticle(Particle)
- addParticle(int, double, double, double, double, double, double)
- setBeam(String, double)
- setBeam(double)
- setBeamParticle(Particle)
- setTargetParticle(Particle)
- beamParticle()
- targetParticle()
- getParticleIndex(int, int)
- removeParticleByPid(int, int)
- removeParticle(int)
- getParticleByCharge(int, int)
- getParticleByCharge(int, int, int)
- getParticleByPid(int, int)
- getGeneratedParticle(int)
- getParticle(int)
- getParticle(String)
- toLundStringGenerated()
- toLundString()
- toString()
- closestParticle(Particle)
- primaryVertex()
- getParticleListByPid(int...)
- getParticlesByPid(int)
Class PhysicsEvent
java.lang.Object
org.jlab.clas.physics.PhysicsEvent
- Author:
- gavalian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addGeneratedParticle
(int pid, double px, double py, double pz, double vx, double vy, double vz) void
addGeneratedParticle
(Particle part) void
addParticle
(int pid, double px, double py, double pz, double vx, double vy, double vz) void
addParticle
(Particle part) void
addProperty
(String name, double value) void
clear()
closestParticle
(Particle child) int
count()
int
countByCharge
(int charge) int
countByPid
(int pid) 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.int
getGeneratedParticle
(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) int
getParticleIndex
(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) double
getProperty
(String name) boolean
hasProperty
(String name) mc()
returns generated eventvoid
removeParticle
(int index) void
removeParticleByPid
(int pid, int skip) void
setBeam
(double mom_z) void
void
void
toString()
-
Constructor Details
-
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
-
primaryVertex
-
getParticleListByPid
-
getParticlesByPid
-