![]() |
Garfield 0.3
Toolkit for the detailed simulation of particle detectors based on ionization measurement in gases and semiconductors
|
#include <TrackPAI.hh>
Classes | |
struct | Cluster |
Public Member Functions | |
TrackPAI () | |
virtual | ~TrackPAI () |
bool | NewTrack (const double x0, const double y0, const double z0, const double t0, const double dx0, const double dy0, const double dz0) override |
Calculate a new track starting from (x0, y0, z0) at time t0 in direction (dx0, dy0, dz0). | |
const std::vector< Cluster > & | GetClusters () const |
double | GetClusterDensity () override |
Get the cluster density (number of ionizing collisions per cm or inverse mean free path for ionization). | |
double | GetStoppingPower () override |
Get the stopping power (mean energy loss [eV] per cm). | |
Public Member Functions inherited from Garfield::Track | |
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. | |
void | EnablePlotting (ViewDrift *viewer) |
Switch on plotting. | |
void | DisablePlotting () |
Switch off plotting. | |
void | EnableDebugging () |
Switch on debugging messages. | |
void | DisableDebugging () |
Switch off debugging messages. |
Private Member Functions | |
bool | SetupMedium (Medium *medium) |
bool | SetupCrossSectionTable () |
double | ComputeMaxTransfer () const |
double | ComputeCsTail (const double emin, const double emax) |
double | ComputeDeDxTail (const double emin, const double emax) |
std::pair< double, double > | SampleEnergyDeposit (const double u) const |
double | SampleAsymptoticCs (double u) const |
double | SampleAsymptoticCsSpinZero (const double emin, double u) const |
double | SampleAsymptoticCsSpinHalf (const double emin, double u) const |
double | SampleAsymptoticCsSpinOne (const double emin, double u) const |
double | SampleAsymptoticCsElectron (const double emin, double u) const |
double | SampleAsymptoticCsPositron (const double emin, double u) const |
double | LossFunction (const double eps1, const double eps2) const |
Private Attributes | |
double | m_speed = 0. |
double | m_emax = 0. |
double | m_imfp = 0. |
double | m_dedx = 0. |
std::array< double, m_nSteps > | m_eps1 |
std::array< double, m_nSteps > | m_eps2 |
std::array< double, m_nSteps > | m_epsInt |
std::array< double, m_nSteps > | m_energies |
std::array< double, m_nSteps > | m_cdf |
std::array< double, m_nSteps > | m_rutherford |
std::vector< Cluster > | m_clusters |
std::string | m_mediumName = "" |
double | m_mediumDensity = 0. |
double | m_electronDensity = 0. |
Static Private Attributes | |
static constexpr size_t | m_nSteps = 1000 |
Additional Inherited Members | |
Protected Member Functions inherited from Garfield::Track | |
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 inherited from Garfield::Track | |
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 inherited from Garfield::Track | |
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 |
Definition at line 14 of file TrackPAI.hh.
Garfield::TrackPAI::TrackPAI | ( | ) |
|
inlinevirtual |
Definition at line 24 of file TrackPAI.hh.
|
private |
|
private |
|
private |
|
overridevirtual |
Get the cluster density (number of ionizing collisions per cm or inverse mean free path for ionization).
Reimplemented from Garfield::Track.
|
inline |
Definition at line 30 of file TrackPAI.hh.
|
overridevirtual |
Get the stopping power (mean energy loss [eV] per cm).
Reimplemented from Garfield::Track.
|
inlineprivate |
Definition at line 80 of file TrackPAI.hh.
|
overridevirtual |
Calculate a new track starting from (x0, y0, z0) at time t0 in direction (dx0, dy0, dz0).
Implements Garfield::Track.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 54 of file TrackPAI.hh.
|
private |
Definition at line 57 of file TrackPAI.hh.
|
private |
Definition at line 44 of file TrackPAI.hh.
|
private |
Definition at line 62 of file TrackPAI.hh.
|
private |
Definition at line 39 of file TrackPAI.hh.
|
private |
Definition at line 53 of file TrackPAI.hh.
|
private |
Definition at line 48 of file TrackPAI.hh.
|
private |
Definition at line 49 of file TrackPAI.hh.
|
private |
Definition at line 50 of file TrackPAI.hh.
|
private |
Definition at line 42 of file TrackPAI.hh.
|
private |
Definition at line 61 of file TrackPAI.hh.
|
private |
Definition at line 60 of file TrackPAI.hh.
|
staticconstexprprivate |
Definition at line 47 of file TrackPAI.hh.
|
private |
Definition at line 55 of file TrackPAI.hh.
|
private |
Definition at line 37 of file TrackPAI.hh.