public class BaseMCParticle extends BasicParticle implements MCParticle
Modifier and Type | Class and Description |
---|---|
protected class |
BaseMCParticle.Status |
MCParticle.SimulatorStatus
Modifier and Type | Field and Description |
---|---|
protected Hep3Vector |
_endPoint |
protected MCParticle.SimulatorStatus |
_status |
protected double |
charge |
protected int[] |
colorFlow |
protected float[] |
spin |
protected double |
time |
DOCUMENTATION, FINAL_STATE, INTERMEDIATE
Constructor and Description |
---|
BaseMCParticle(Hep3Vector origin,
HepLorentzVector p,
ParticleType ptype,
int status,
double time)
Creates a new instance of BaseMCParticle
|
Modifier and Type | Method and Description |
---|---|
double |
getCharge() |
int[] |
getColorFlow()
Get the color flow of particle.
|
Hep3Vector |
getEndPoint()
The endpoint of the simulated track.
|
double |
getProductionTime() |
MCParticle.SimulatorStatus |
getSimulatorStatus()
If this event has been simulated by Geant4 this method will return
the simulation status
|
float[] |
getSpin()
Get the X, Y, and Z spin components of this particle.
|
void |
setCharge(double charge)
Overrides the charge from the particle type.
|
void |
setEndPoint(Hep3Vector p)
If this point has interacted, set its end point.
|
void |
setProductionTime(double time) |
void |
setSimulatorStatus(int value) |
void |
setSimulatorStatus(MCParticle.SimulatorStatus status) |
String |
toString() |
addDaughter, asFourVector, getDaughters, getEnergy, getGeneratorStatus, getMass, getMomentum, getOrigin, getOriginX, getOriginY, getOriginZ, getParents, getPDGID, getPX, getPY, getPZ, getType, setMass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDaughters, getParents
asFourVector, getEnergy, getGeneratorStatus, getMass, getMomentum, getOrigin, getOriginX, getOriginY, getOriginZ, getPDGID, getPX, getPY, getPZ, getType
protected Hep3Vector _endPoint
protected MCParticle.SimulatorStatus _status
protected double charge
protected float[] spin
protected int[] colorFlow
protected double time
public BaseMCParticle(Hep3Vector origin, HepLorentzVector p, ParticleType ptype, int status, double time)
origin
- The (x,y,z) point of origin for this particle in mm.p
- The four momentum of this particle in GeV.ptype
- The particle type.status
- the integer status of this particle.time
- the time of creation of this particle in ns.public void setCharge(double charge)
public double getCharge()
getCharge
in interface Particle
getCharge
in class BasicParticle
public void setEndPoint(Hep3Vector p)
p
- The (x,y,z) end point in mm.public void setSimulatorStatus(MCParticle.SimulatorStatus status)
status
- The Geant4 status of the particlepublic void setSimulatorStatus(int value)
public void setProductionTime(double time)
public double getProductionTime()
getProductionTime
in interface Particle
getProductionTime
in class BasicParticle
public MCParticle.SimulatorStatus getSimulatorStatus()
getSimulatorStatus
in interface MCParticle
public Hep3Vector getEndPoint()
getEndPoint
in interface MCParticle
public float[] getSpin()
MCParticle
getSpin
in interface MCParticle
public int[] getColorFlow()
MCParticle
getColorFlow
in interface MCParticle
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.