![]() |
Garfield 0.3
Toolkit for the detailed simulation of particle detectors based on ionization measurement in gases and semiconductors
|
Abstract base class for track generation. More...
#include <Track.hh>
Public Member Functions | |
| Track ()=delete | |
| Default constructor. | |
| Track (const std::string &name) | |
| Constructor. | |
| virtual | ~Track () |
| Destructor. | |
| virtual void | SetParticle (const std::string &part) |
| Set the type of charged particle. | |
| 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 ( | |
| 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 | |
| double | GetBeta () const |
| Return the speed ( | |
| 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 |
| Calculate a new track starting from (x0, y0, z0) at time t0 in direction (dx0, dy0, dz0). | |
| virtual double | GetClusterDensity () |
| Get the cluster density (number of ionizing collisions per cm or inverse mean free path for ionization). | |
| 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) |
Static Protected Member Functions | |
| static std::array< double, 3 > | StepBfield (const double dt, const double qoverm, const double vmag, double bx, double by, double bz, std::array< double, 3 > &dir) |
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 = 1. |
| 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 |
|
delete |
Default constructor.
| Garfield::Track::Track | ( | const std::string & | name | ) |
Constructor.
|
inlinevirtual |
|
inline |
| void Garfield::Track::DisablePlotting | ( | ) |
Switch off plotting.
|
inline |
| void Garfield::Track::EnablePlotting | ( | ViewDrift * | viewer | ) |
Switch on plotting.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Get the cluster density (number of ionizing collisions per cm or inverse mean free path for ionization).
Reimplemented in Garfield::TrackBichsel, Garfield::TrackDegrade, Garfield::TrackElectron, Garfield::TrackHeed, Garfield::TrackPAI, and Garfield::TrackSimple.
Definition at line 81 of file Track.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Get the stopping power (mean energy loss [eV] per cm).
Reimplemented in Garfield::TrackBichsel, Garfield::TrackDegrade, Garfield::TrackElectron, Garfield::TrackHeed, Garfield::TrackPAI, and Garfield::TrackSimple.
Definition at line 83 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::TrackDegrade, Garfield::TrackElectron, Garfield::TrackHeed, Garfield::TrackPAI, Garfield::TrackSimple, Garfield::TrackSrim, and Garfield::TrackTrim.
|
protected |
|
protected |
| void Garfield::Track::SetBeta | ( | const double | beta | ) |
Set the speed ( 
| void Garfield::Track::SetBetaGamma | ( | const double | bg | ) |
Set the relative momentum of the particle.
| void Garfield::Track::SetEnergy | ( | const double | e | ) |
Set the particle energy.
| void Garfield::Track::SetGamma | ( | const double | gamma | ) |
Set the Lorentz factor of the particle.
| void Garfield::Track::SetKineticEnergy | ( | const double | ekin | ) |
Set the kinetic energy of the particle.
| void Garfield::Track::SetMomentum | ( | const double | p | ) |
Set the particle momentum.
|
virtual |
Set the type of charged particle.
Reimplemented in Garfield::TrackDegrade, Garfield::TrackElectron, and Garfield::TrackTrim.
| void Garfield::Track::SetSensor | ( | Sensor * | s | ) |
Set the sensor through which to transport the particle.
|
staticprotected |
|
protected |
|
protected |