Garfield++ 4.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
|
Abstract base class for track generation. More...
#include <Track.hh>
Public Member Functions | |
Track () | |
Constructor. | |
virtual | ~Track () |
Destructor. | |
virtual void | SetParticle (const std::string &part) |
void | SetEnergy (const double e) |
Set the particle energy. | |
void | SetBetaGamma (const double bg) |
Set the relative momentum of the particle. | |
void | SetBeta (const double beta) |
Set the speed ( ) of the particle. | |
void | SetGamma (const double gamma) |
Set the Lorentz factor of the particle. | |
void | SetMomentum (const double p) |
Set the particle momentum. | |
void | SetKineticEnergy (const double ekin) |
Set the kinetic energy of the particle. | |
double | GetEnergy () const |
Return the particle energy. | |
double | GetBetaGamma () const |
Return the of the projectile. | |
double | GetBeta () const |
Return the speed ( ) of the projectile. | |
double | GetGamma () const |
Return the Lorentz factor of the projectile. | |
double | GetMomentum () const |
Return the particle momentum. | |
double | GetKineticEnergy () const |
Return the kinetic energy of the projectile. | |
double | GetCharge () const |
Get the charge of the projectile. | |
double | GetMass () const |
Get the mass [eV / c2] of the projectile. | |
void | SetSensor (Sensor *s) |
Set the sensor through which to transport the particle. | |
virtual bool | NewTrack (const double x0, const double y0, const double z0, const double t0, const double dx0, const double dy0, const double dz0)=0 |
virtual bool | GetCluster (double &xcls, double &ycls, double &zcls, double &tcls, int &n, double &e, double &extra)=0 |
virtual double | GetClusterDensity () |
virtual double | GetStoppingPower () |
Get the stopping power (mean energy loss [eV] per cm). | |
void | EnablePlotting (ViewDrift *viewer) |
Switch on plotting. | |
void | DisablePlotting () |
Switch off plotting. | |
void | EnableDebugging () |
Switch on debugging messages. | |
void | DisableDebugging () |
Switch off debugging messages. | |
Protected Member Functions | |
void | PlotNewTrack (const double x0, const double y0, const double z0) |
void | PlotCluster (const double x0, const double y0, const double z0) |
Protected Attributes | |
std::string | m_className = "Track" |
double | m_q = -1. |
int | m_spin = 1 |
double | m_mass |
double | m_energy = 0. |
double | m_beta2 |
bool | m_isElectron = false |
std::string | m_particleName = "mu-" |
Sensor * | m_sensor = nullptr |
bool | m_isChanged = true |
ViewDrift * | m_viewer = nullptr |
bool | m_debug = false |
size_t | m_plotId = 0 |
Garfield::Track::Track | ( | ) |
Constructor.
Definition at line 13 of file Track.cc.
|
inlinevirtual |
|
inline |
void Garfield::Track::DisablePlotting | ( | ) |
|
inline |
void Garfield::Track::EnablePlotting | ( | ViewDrift * | viewer | ) |
|
inline |
Return the speed ( ) of the projectile.
Definition at line 54 of file Track.hh.
Referenced by Garfield::TrackBichsel::NewTrack(), and Garfield::TrackHeed::NewTrack().
|
inline |
Return the of the projectile.
Definition at line 52 of file Track.hh.
Referenced by Garfield::TrackBichsel::GetClusterDensity(), Garfield::TrackBichsel::GetStoppingPower(), and Garfield::TrackBichsel::NewTrack().
|
inline |
|
pure virtual |
Get the next "cluster" (ionising collision of the charged particle).
xcls,ycls,zcls | coordinates of the collision |
tcls | time of the collision |
n | number of electrons produced |
e | deposited energy |
extra | additional information (not always implemented) |
Implemented in Garfield::TrackBichsel, Garfield::TrackSimple, Garfield::TrackHeed, Garfield::TrackSrim, Garfield::TrackTrim, Garfield::TrackElectron, and Garfield::TrackPAI.
|
inlinevirtual |
Get the cluster density (number of ionizing collisions per cm or inverse mean free path for ionization).
Reimplemented in Garfield::TrackBichsel, Garfield::TrackElectron, Garfield::TrackPAI, Garfield::TrackSimple, and Garfield::TrackHeed.
Definition at line 87 of file Track.hh.
|
inline |
|
inline |
Return the Lorentz factor of the projectile.
Definition at line 56 of file Track.hh.
Referenced by Garfield::TrackHeed::Initialise().
|
inline |
Return the kinetic energy of the projectile.
Definition at line 60 of file Track.hh.
Referenced by Garfield::TrackSrim::NewTrack().
|
inline |
|
inline |
|
inlinevirtual |
Get the stopping power (mean energy loss [eV] per cm).
Reimplemented in Garfield::TrackBichsel, Garfield::TrackElectron, Garfield::TrackPAI, Garfield::TrackSimple, and Garfield::TrackHeed.
Definition at line 89 of file Track.hh.
|
pure virtual |
Calculate a new track starting from (x0, y0, z0) at time t0 in direction (dx0, dy0, dz0).
Implemented in Garfield::TrackBichsel, Garfield::TrackElectron, Garfield::TrackPAI, Garfield::TrackSimple, Garfield::TrackHeed, Garfield::TrackSrim, and Garfield::TrackTrim.
|
protected |
Definition at line 192 of file Track.cc.
Referenced by Garfield::TrackHeed::GetCluster(), Garfield::TrackSrim::NewTrack(), and Garfield::TrackTrim::NewTrack().
|
protected |
Definition at line 187 of file Track.cc.
Referenced by Garfield::TrackHeed::NewTrack(), Garfield::TrackSrim::NewTrack(), and Garfield::TrackTrim::NewTrack().
void Garfield::Track::SetBeta | ( | const double | beta | ) |
void Garfield::Track::SetBetaGamma | ( | const double | bg | ) |
Set the relative momentum of the particle.
Definition at line 103 of file Track.cc.
Referenced by Track(), and Garfield::TrackElectron::TrackElectron().
void Garfield::Track::SetEnergy | ( | const double | e | ) |
void Garfield::Track::SetGamma | ( | const double | gamma | ) |
void Garfield::Track::SetKineticEnergy | ( | const double | ekin | ) |
Set the kinetic energy of the particle.
Definition at line 153 of file Track.cc.
Referenced by GarfieldPhysics::DoIt().
void Garfield::Track::SetMomentum | ( | const double | p | ) |
|
virtual |
Set the type of charged particle.
Reimplemented in Garfield::TrackElectron.
Definition at line 15 of file Track.cc.
Referenced by GarfieldPhysics::DoIt(), and main().
void Garfield::Track::SetSensor | ( | Sensor * | s | ) |
Set the sensor through which to transport the particle.
Definition at line 166 of file Track.cc.
Referenced by GarfieldPhysics::InitializePhysics(), and main().
|
protected |
Definition at line 108 of file Track.hh.
Referenced by GetBeta(), GetBetaGamma(), Garfield::TrackElectron::GetCluster(), GetGamma(), GetMomentum(), Garfield::TrackElectron::GetStoppingPower(), SetBeta(), SetBetaGamma(), SetEnergy(), SetGamma(), SetKineticEnergy(), and SetMomentum().
|
protected |
Definition at line 102 of file Track.hh.
Referenced by EnablePlotting(), Garfield::TrackSrim::EstimateRange(), Garfield::TrackBichsel::GetCluster(), Garfield::TrackSimple::GetCluster(), Garfield::TrackSrim::GetCluster(), Garfield::TrackTrim::GetCluster(), Garfield::TrackElectron::GetCluster(), Garfield::TrackPAI::GetCluster(), Garfield::TrackHeed::GetCluster(), Garfield::TrackBichsel::GetClusterDensity(), Garfield::TrackElectron::GetClusterDensity(), Garfield::TrackPAI::GetClusterDensity(), Garfield::TrackHeed::GetClusterDensity(), Garfield::TrackHeed::GetElectron(), Garfield::TrackHeed::GetIon(), Garfield::TrackBichsel::GetStoppingPower(), Garfield::TrackElectron::GetStoppingPower(), Garfield::TrackPAI::GetStoppingPower(), Garfield::TrackHeed::GetStoppingPower(), Garfield::TrackHeed::Initialise(), Garfield::TrackBichsel::NewTrack(), Garfield::TrackElectron::NewTrack(), Garfield::TrackPAI::NewTrack(), Garfield::TrackSimple::NewTrack(), Garfield::TrackHeed::NewTrack(), Garfield::TrackSrim::NewTrack(), Garfield::TrackTrim::NewTrack(), Garfield::TrackSrim::PreciseLoss(), Garfield::TrackTrim::Print(), Garfield::TrackSrim::ReadFile(), Garfield::TrackTrim::ReadFile(), SetBeta(), SetBetaGamma(), Garfield::TrackSimple::SetClusterDensity(), SetEnergy(), Garfield::TrackHeed::SetEnergyMesh(), SetGamma(), SetKineticEnergy(), SetMomentum(), SetParticle(), Garfield::TrackElectron::SetParticle(), Garfield::TrackHeed::SetParticleUser(), SetSensor(), Garfield::TrackSimple::SetStoppingPower(), Garfield::TrackSrim::SmallestStep(), Garfield::TrackBichsel::TrackBichsel(), Garfield::TrackElectron::TrackElectron(), Garfield::TrackHeed::TrackHeed(), Garfield::TrackPAI::TrackPAI(), Garfield::TrackSimple::TrackSimple(), Garfield::TrackSrim::TrackSrim(), Garfield::TrackTrim::TrackTrim(), Garfield::TrackHeed::TransportDeltaElectron(), and Garfield::TrackHeed::TransportPhoton().
|
protected |
Definition at line 118 of file Track.hh.
Referenced by DisableDebugging(), EnableDebugging(), Garfield::TrackSrim::EstimateRange(), Garfield::TrackBichsel::GetCluster(), Garfield::TrackSimple::GetCluster(), Garfield::TrackSrim::GetCluster(), Garfield::TrackTrim::GetCluster(), Garfield::TrackPAI::GetCluster(), Garfield::TrackBichsel::GetClusterDensity(), Garfield::TrackBichsel::GetStoppingPower(), Garfield::TrackHeed::Initialise(), Garfield::TrackElectron::NewTrack(), Garfield::TrackPAI::NewTrack(), Garfield::TrackHeed::NewTrack(), Garfield::TrackSrim::NewTrack(), Garfield::TrackTrim::NewTrack(), Garfield::TrackSrim::PreciseLoss(), Garfield::TrackSrim::ReadFile(), Garfield::TrackSrim::RndmEnergyLoss(), and Garfield::TrackSrim::SmallestStep().
|
protected |
Definition at line 107 of file Track.hh.
Referenced by GetEnergy(), GetKineticEnergy(), Garfield::TrackSrim::NewTrack(), SetBeta(), SetBetaGamma(), SetEnergy(), SetGamma(), SetKineticEnergy(), and SetMomentum().
|
protected |
Definition at line 114 of file Track.hh.
Referenced by Garfield::TrackPAI::GetCluster(), Garfield::TrackBichsel::GetClusterDensity(), Garfield::TrackPAI::GetClusterDensity(), Garfield::TrackBichsel::GetStoppingPower(), Garfield::TrackPAI::GetStoppingPower(), Garfield::TrackBichsel::NewTrack(), Garfield::TrackPAI::NewTrack(), Garfield::TrackHeed::NewTrack(), SetBeta(), SetBetaGamma(), SetEnergy(), SetGamma(), SetKineticEnergy(), SetMomentum(), Garfield::TrackHeed::TransportDeltaElectron(), and Garfield::TrackHeed::TransportPhoton().
|
protected |
Definition at line 109 of file Track.hh.
Referenced by Garfield::TrackHeed::Initialise(), SetParticle(), Garfield::TrackHeed::SetParticleUser(), and Garfield::TrackElectron::TrackElectron().
|
protected |
Definition at line 106 of file Track.hh.
Referenced by GetKineticEnergy(), GetMass(), GetMomentum(), Garfield::TrackHeed::Initialise(), Garfield::TrackHeed::NewTrack(), SetBeta(), SetBetaGamma(), SetEnergy(), SetGamma(), SetKineticEnergy(), SetMomentum(), SetParticle(), Garfield::TrackHeed::SetParticleUser(), and Garfield::TrackElectron::TrackElectron().
|
protected |
Definition at line 110 of file Track.hh.
Referenced by Garfield::TrackHeed::NewTrack(), Garfield::TrackTrim::Print(), Garfield::TrackTrim::ReadFile(), SetParticle(), Garfield::TrackHeed::SetParticleUser(), and Garfield::TrackElectron::TrackElectron().
|
protected |
Definition at line 120 of file Track.hh.
Referenced by PlotCluster(), and PlotNewTrack().
|
protected |
Definition at line 104 of file Track.hh.
Referenced by GetCharge(), Garfield::TrackHeed::Initialise(), Garfield::TrackHeed::NewTrack(), SetParticle(), Garfield::TrackHeed::SetParticleUser(), and Garfield::TrackElectron::TrackElectron().
|
protected |
Definition at line 112 of file Track.hh.
Referenced by Garfield::TrackBichsel::GetCluster(), Garfield::TrackSimple::GetCluster(), Garfield::TrackElectron::GetCluster(), Garfield::TrackPAI::GetCluster(), Garfield::TrackHeed::Initialise(), Garfield::TrackBichsel::NewTrack(), Garfield::TrackElectron::NewTrack(), Garfield::TrackPAI::NewTrack(), Garfield::TrackSimple::NewTrack(), Garfield::TrackHeed::NewTrack(), Garfield::TrackSrim::NewTrack(), Garfield::TrackTrim::NewTrack(), SetSensor(), Garfield::TrackHeed::TransportDeltaElectron(), and Garfield::TrackHeed::TransportPhoton().
|
protected |
Definition at line 105 of file Track.hh.
Referenced by SetParticle(), Garfield::TrackHeed::SetParticleUser(), and Garfield::TrackElectron::TrackElectron().
|
protected |
Definition at line 116 of file Track.hh.
Referenced by DisablePlotting(), EnablePlotting(), Garfield::TrackHeed::GetCluster(), Garfield::TrackHeed::NewTrack(), Garfield::TrackSrim::NewTrack(), Garfield::TrackTrim::NewTrack(), PlotCluster(), and PlotNewTrack().