|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.physics.particle.BasicParticle
Default implementation of Particle.
| Field Summary |
| Fields inherited from interface hep.physics.particle.Particle |
DOCUMENTATION, FINAL_STATE, INTERMEDIATE |
| Constructor Summary | |
BasicParticle(Hep3Vector origin,
HepLorentzVector p,
ParticleType ptype,
int status,
double time)
Create a new BasicParticle |
|
| Method Summary | |
void |
addDaughter(Particle child)
Adds a child to this particle. |
HepLorentzVector |
asFourVector()
Return this particles momentum and energy as a 4-vector |
double |
getCharge()
Returns the particle's charge |
List |
getDaughters()
Returns a list of the decay products of this particle |
double |
getEnergy()
Energy |
int |
getGeneratorStatus()
Status code, one of FINALSTATE, INTERMEDIATE or DOCUMENTATION |
double |
getMass()
Mass |
Hep3Vector |
getMomentum()
Momentum |
Hep3Vector |
getOrigin()
Point of origin |
double |
getOriginX()
|
double |
getOriginY()
|
double |
getOriginZ()
|
List |
getParents()
Returns a list of the parent(s) of this particle |
int |
getPDGID()
Convenience method for getting particles PDGID |
double |
getProductionTime()
Production time |
double |
getPX()
X component of momentum |
double |
getPY()
Y component of momentum |
double |
getPZ()
Z component of momentum |
ParticleType |
getType()
Particle Type |
void |
setMass(double mass)
Overrides the mass obtained from the particle type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicParticle(Hep3Vector origin,
HepLorentzVector p,
ParticleType ptype,
int status,
double time)
origin - The origin of this particlep - The momentum and energy of this particleptype - The type of this particlestatus - The status of this particletime - The production time of this particle| Method Detail |
public void addDaughter(Particle child)
child - The child particlepublic void setMass(double mass)
public double getPX()
Particle
getPX in interface Particlepublic double getPY()
Particle
getPY in interface Particlepublic double getPZ()
Particle
getPZ in interface Particlepublic double getEnergy()
Particle
getEnergy in interface Particlepublic double getMass()
Particle
getMass in interface Particlepublic double getOriginX()
getOriginX in interface Particlepublic double getOriginY()
getOriginY in interface Particlepublic double getOriginZ()
getOriginZ in interface Particlepublic double getProductionTime()
Particle
getProductionTime in interface Particlepublic int getGeneratorStatus()
Particle
getGeneratorStatus in interface Particlepublic Hep3Vector getMomentum()
Particle
getMomentum in interface Particlepublic Hep3Vector getOrigin()
Particle
getOrigin in interface Particlepublic List getDaughters()
Particle
getDaughters in interface Particlepublic List getParents()
Particle
getParents in interface Particlepublic ParticleType getType()
Particle
getType in interface Particlepublic double getCharge()
Particle
getCharge in interface Particlepublic int getPDGID()
Particle
getPDGID in interface Particlepublic HepLorentzVector asFourVector()
Particle
asFourVector in interface Particle
|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||