public class IMCParticle extends Object implements MCParticle
BITBackscatter, BITCreatedInSimulation, BITDecayedInCalorimeter, BITDecayedInTracker, BITEndpoint, BITLeftDetector, BITOverlay, BITStopped, BITVertexIsNotEndpointOfParent
Constructor and Description |
---|
IMCParticle() |
Modifier and Type | Method and Description |
---|---|
void |
addDaughter(MCParticle daughter) |
float |
getCharge()
Returns the particle's charge.
|
int[] |
getColorFlow()
Returns the color flow as defined by the generator.
|
MCParticle |
getDaughter(int i) |
List |
getDaughters()
Returns the daughters of this particle.
|
double[] |
getEndpoint()
Returns the endpoint of the particle in [mm] if
the endpoint has been set explicetly.
|
double |
getEnergy()
Returns the energy of the particle (at the vertex) in [GeV] computed from
the particle's momentum and mass - only float used in files.
|
int |
getGeneratorStatus()
Returns the status for particles as defined by the generator, typically
0 empty line 1 undecayed particle, stable in the generator 2 particle decayed in the generator 3 documentation line |
double |
getMass()
Returns the mass of the particle in [GeV] - only float used in files.
|
double[] |
getMomentum()
Returns the particle's 3-momentum at the production vertex in [GeV]
- only float used in files.
|
double[] |
getMomentumAtEndpoint()
Returns the particle's 3-momentum at the endpoint in [GeV]
Only float used in files.
|
int |
getNumberOfDaughters() |
int |
getNumberOfParents() |
MCParticle |
getParent(int i) |
List |
getParents()
Returns the parents of this particle.
|
int |
getPDG()
Returns the PDG code of the particle.
|
int |
getSimulatorStatus()
Returns the status for particles from the simulation, e.g.
|
float[] |
getSpin()
Returns the spin (helicity) vector of the particle.
|
float |
getTime()
The creation time of the particle in [ns] wrt.
|
double[] |
getVertex()
Returns the production vertex of the particle in [mm].
|
boolean |
hasLeftDetector()
True if the particle left the world volume undecayed.
|
boolean |
isBackscatter()
True if the particle was created by the simulator as a result of an interaction or decay in
non-tracking region, e.g.
|
boolean |
isCreatedInSimulation()
True if the particle has been created by the simulation program (rather than the generator).
|
boolean |
isDecayedInCalorimeter()
True if the particle decayed or interacted (non-continuous interaction, particle terminated)
in non-tracking region.
|
boolean |
isDecayedInTracker()
True if the particle decayed or interacted in a tracking region.
|
boolean |
isOverlay()
True if the particle has been overlayed by the simulation (or digitization) program.
|
boolean |
isStopped()
True if the particle lost all kinetic energy inside the world volume and did not decay
|
void |
removeAllDaughters() |
void |
removeDaughter(MCParticle daughter) |
void |
setBackscatter(boolean val) |
void |
setCharge(float charge) |
void |
setColorFlow(int[] cflow) |
void |
setCreatedInSimulation(boolean val) |
void |
setDecayedInCalorimeter(boolean val) |
void |
setDecayedInTracker(boolean val) |
void |
setEndpoint(double[] pos) |
void |
setGeneratorStatus(int status) |
void |
setHasLeftDetector(boolean val) |
void |
setMass(float mass) |
void |
setMomentum(double[] momentum) |
void |
setMomentum(double px,
double py,
double pz) |
void |
setMomentum(float[] momentum) |
void |
setMomentumAtEndpoint(double[] momemtum) |
void |
setMomentumAtEndpoint(float[] momemtum) |
void |
setOverlay(boolean val) |
void |
setPDG(int pdg) |
void |
setSimulatorStatus(int status) |
void |
setSpin(float[] spin) |
void |
setStopped(boolean val) |
void |
setTime(float f) |
void |
setVertex(double[] pos) |
void |
setVertexIsNotEndpointOfParent(boolean val) |
boolean |
vertexIsNotEndpointOfParent()
True if the particle was created as a result of a continuous process where the parent
particle continues, i.e.
|
public void setSpin(float[] spin)
public float[] getSpin()
MCParticle
getSpin
in interface MCParticle
public void setColorFlow(int[] cflow)
public int[] getColorFlow()
MCParticle
getColorFlow
in interface MCParticle
public void setCharge(float charge)
public float getCharge()
MCParticle
getCharge
in interface MCParticle
public MCParticle getDaughter(int i)
public void setEndpoint(double[] pos)
public double[] getEndpoint()
MCParticle
getEndpoint
in interface MCParticle
public double getEnergy()
MCParticle
getEnergy
in interface MCParticle
public void setGeneratorStatus(int status)
public int getGeneratorStatus()
MCParticle
getGeneratorStatus
in interface MCParticle
public void setMass(float mass)
public double getMass()
MCParticle
getMass
in interface MCParticle
public void setMomentum(float[] momentum)
public void setMomentum(double[] momentum)
public void setMomentum(double px, double py, double pz)
public double[] getMomentum()
MCParticle
getMomentum
in interface MCParticle
public double[] getMomentumAtEndpoint()
MCParticle
getMomentumAtEndpoint
in interface MCParticle
public void setMomentumAtEndpoint(float[] momemtum)
public void setMomentumAtEndpoint(double[] momemtum)
public int getNumberOfDaughters()
public int getNumberOfParents()
public void setPDG(int pdg)
public int getPDG()
MCParticle
getPDG
in interface MCParticle
public MCParticle getParent(int i)
public void setSimulatorStatus(int status)
public int getSimulatorStatus()
MCParticle
getSimulatorStatus
in interface MCParticle
MCParticle.isCreatedInSimulation()
,
MCParticle.isBackscatter()
,
MCParticle.vertexIsNotEndpointOfParent()
,
MCParticle.isDecayedInTracker()
,
MCParticle.isDecayedInCalorimeter()
,
MCParticle.hasLeftDetector()
,
MCParticle.isStopped()
,
MCParticle.isOverlay()
public void setVertex(double[] pos)
public double[] getVertex()
MCParticle
getVertex
in interface MCParticle
public void addDaughter(MCParticle daughter)
public void removeAllDaughters()
public void removeDaughter(MCParticle daughter)
public boolean hasLeftDetector()
MCParticle
hasLeftDetector
in interface MCParticle
public boolean isBackscatter()
MCParticle
isBackscatter
in interface MCParticle
public boolean isCreatedInSimulation()
MCParticle
isCreatedInSimulation
in interface MCParticle
public boolean isDecayedInCalorimeter()
MCParticle
isDecayedInCalorimeter
in interface MCParticle
public boolean isDecayedInTracker()
MCParticle
isDecayedInTracker
in interface MCParticle
public boolean isStopped()
MCParticle
isStopped
in interface MCParticle
public boolean isOverlay()
MCParticle
isOverlay
in interface MCParticle
public void setBackscatter(boolean val)
public void setCreatedInSimulation(boolean val)
public void setDecayedInCalorimeter(boolean val)
public void setDecayedInTracker(boolean val)
public void setHasLeftDetector(boolean val)
public void setStopped(boolean val)
public void setOverlay(boolean val)
public void setVertexIsNotEndpointOfParent(boolean val)
public boolean vertexIsNotEndpointOfParent()
MCParticle
vertexIsNotEndpointOfParent
in interface MCParticle
public List getDaughters()
MCParticle
getDaughters
in interface MCParticle
public List getParents()
MCParticle
getParents
in interface MCParticle
public float getTime()
MCParticle
getTime
in interface MCParticle
public void setTime(float f)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics