|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.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 particleMethod Detail |
public void addDaughter(Particle child)
child
- The child particlepublic void setMass(double mass)
public double getPX()
Particle
getPX
in interface Particle
public double getPY()
Particle
getPY
in interface Particle
public double getPZ()
Particle
getPZ
in interface Particle
public double getEnergy()
Particle
getEnergy
in interface Particle
public double getMass()
Particle
getMass
in interface Particle
public double getOriginX()
getOriginX
in interface Particle
public double getOriginY()
getOriginY
in interface Particle
public double getOriginZ()
getOriginZ
in interface Particle
public double getProductionTime()
Particle
getProductionTime
in interface Particle
public int getGeneratorStatus()
Particle
getGeneratorStatus
in interface Particle
public Hep3Vector getMomentum()
Particle
getMomentum
in interface Particle
public Hep3Vector getOrigin()
Particle
getOrigin
in interface Particle
public List getDaughters()
Particle
getDaughters
in interface Particle
public List getParents()
Particle
getParents
in interface Particle
public ParticleType getType()
Particle
getType
in interface Particle
public double getCharge()
Particle
getCharge
in interface Particle
public int getPDGID()
Particle
getPDGID
in interface Particle
public 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 |