hep.physics.particle
Class BasicParticle
- java.lang.Object
-
- hep.physics.particle.BasicParticle
-
-
Field Summary
-
Fields inherited from interface hep.physics.particle.Particle
DOCUMENTATION, FINAL_STATE, INTERMEDIATE
-
-
Constructor Summary
Constructors Constructor and Description BasicParticle(Hep3Vector origin, HepLorentzVector p, ParticleType ptype, int status, double time)Create a new BasicParticle
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddDaughter(Particle child)Adds a child to this particle.HepLorentzVectorasFourVector()Return this particles momentum and energy as a 4-vectordoublegetCharge()Returns the particle's chargejava.util.ListgetDaughters()Returns a list of the decay products of this particledoublegetEnergy()EnergyintgetGeneratorStatus()Status code, one of FINALSTATE, INTERMEDIATE or DOCUMENTATIONdoublegetMass()MassHep3VectorgetMomentum()MomentumHep3VectorgetOrigin()Point of origindoublegetOriginX()doublegetOriginY()doublegetOriginZ()java.util.ListgetParents()Returns a list of the parent(s) of this particleintgetPDGID()Convenience method for getting particles PDGIDdoublegetProductionTime()Production timedoublegetPX()X component of momentumdoublegetPY()Y component of momentumdoublegetPZ()Z component of momentumParticleTypegetType()Particle TypevoidsetMass(double mass)Overrides the mass obtained from the particle type.
-
-
-
Constructor Detail
-
BasicParticle
public BasicParticle(Hep3Vector origin, HepLorentzVector p, ParticleType ptype, int status, double time)
Create a new BasicParticle- Parameters:
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
-
addDaughter
public void addDaughter(Particle child)
Adds a child to this particle. If the child is also an instance of this class this particle will also be added as its parent.- Parameters:
child- The child particle
-
setMass
public void setMass(double mass)
Overrides the mass obtained from the particle type.
-
getPX
public double getPX()
Description copied from interface:ParticleX component of momentum
-
getPY
public double getPY()
Description copied from interface:ParticleY component of momentum
-
getPZ
public double getPZ()
Description copied from interface:ParticleZ component of momentum
-
getEnergy
public double getEnergy()
Description copied from interface:ParticleEnergy
-
getMass
public double getMass()
Description copied from interface:ParticleMass
-
getOriginX
public double getOriginX()
- Specified by:
getOriginXin interfaceParticle
-
getOriginY
public double getOriginY()
- Specified by:
getOriginYin interfaceParticle
-
getOriginZ
public double getOriginZ()
- Specified by:
getOriginZin interfaceParticle
-
getProductionTime
public double getProductionTime()
Description copied from interface:ParticleProduction time- Specified by:
getProductionTimein interfaceParticle
-
getGeneratorStatus
public int getGeneratorStatus()
Description copied from interface:ParticleStatus code, one of FINALSTATE, INTERMEDIATE or DOCUMENTATION- Specified by:
getGeneratorStatusin interfaceParticle
-
getMomentum
public Hep3Vector getMomentum()
Description copied from interface:ParticleMomentum- Specified by:
getMomentumin interfaceParticle
-
getOrigin
public Hep3Vector getOrigin()
Description copied from interface:ParticlePoint of origin
-
getDaughters
public java.util.List getDaughters()
Description copied from interface:ParticleReturns a list of the decay products of this particle- Specified by:
getDaughtersin interfaceParticle
-
getParents
public java.util.List getParents()
Description copied from interface:ParticleReturns a list of the parent(s) of this particle- Specified by:
getParentsin interfaceParticle
-
getType
public ParticleType getType()
Description copied from interface:ParticleParticle Type
-
getCharge
public double getCharge()
Description copied from interface:ParticleReturns the particle's charge
-
getPDGID
public int getPDGID()
Description copied from interface:ParticleConvenience method for getting particles PDGID
-
asFourVector
public HepLorentzVector asFourVector()
Description copied from interface:ParticleReturn this particles momentum and energy as a 4-vector- Specified by:
asFourVectorin interfaceParticle
-
-
DMelt 3.0 © DataMelt by jWork.ORG