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()
MCParticlegetSpin in interface MCParticlepublic void setColorFlow(int[] cflow)
public int[] getColorFlow()
MCParticlegetColorFlow in interface MCParticlepublic void setCharge(float charge)
public float getCharge()
MCParticlegetCharge in interface MCParticlepublic MCParticle getDaughter(int i)
public void setEndpoint(double[] pos)
public double[] getEndpoint()
MCParticlegetEndpoint in interface MCParticlepublic double getEnergy()
MCParticlegetEnergy in interface MCParticlepublic void setGeneratorStatus(int status)
public int getGeneratorStatus()
MCParticlegetGeneratorStatus in interface MCParticlepublic void setMass(float mass)
public double getMass()
MCParticlegetMass in interface MCParticlepublic void setMomentum(float[] momentum)
public void setMomentum(double[] momentum)
public void setMomentum(double px,
double py,
double pz)
public double[] getMomentum()
MCParticlegetMomentum in interface MCParticlepublic double[] getMomentumAtEndpoint()
MCParticlegetMomentumAtEndpoint in interface MCParticlepublic void setMomentumAtEndpoint(float[] momemtum)
public void setMomentumAtEndpoint(double[] momemtum)
public int getNumberOfDaughters()
public int getNumberOfParents()
public void setPDG(int pdg)
public int getPDG()
MCParticlegetPDG in interface MCParticlepublic MCParticle getParent(int i)
public void setSimulatorStatus(int status)
public int getSimulatorStatus()
MCParticlegetSimulatorStatus in interface MCParticleMCParticle.isCreatedInSimulation(),
MCParticle.isBackscatter(),
MCParticle.vertexIsNotEndpointOfParent(),
MCParticle.isDecayedInTracker(),
MCParticle.isDecayedInCalorimeter(),
MCParticle.hasLeftDetector(),
MCParticle.isStopped(),
MCParticle.isOverlay()public void setVertex(double[] pos)
public double[] getVertex()
MCParticlegetVertex in interface MCParticlepublic void addDaughter(MCParticle daughter)
public void removeAllDaughters()
public void removeDaughter(MCParticle daughter)
public boolean hasLeftDetector()
MCParticlehasLeftDetector in interface MCParticlepublic boolean isBackscatter()
MCParticleisBackscatter in interface MCParticlepublic boolean isCreatedInSimulation()
MCParticleisCreatedInSimulation in interface MCParticlepublic boolean isDecayedInCalorimeter()
MCParticleisDecayedInCalorimeter in interface MCParticlepublic boolean isDecayedInTracker()
MCParticleisDecayedInTracker in interface MCParticlepublic boolean isStopped()
MCParticleisStopped in interface MCParticlepublic boolean isOverlay()
MCParticleisOverlay in interface MCParticlepublic 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()
MCParticlevertexIsNotEndpointOfParent in interface MCParticlepublic List getDaughters()
MCParticlegetDaughters in interface MCParticlepublic List getParents()
MCParticlegetParents in interface MCParticlepublic float getTime()
MCParticlegetTime in interface MCParticlepublic void setTime(float f)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics