Garfield++ v2r0
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) |
Set the type of 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 ( ) 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 |
double | GetBetaGamma () const |
double | GetBeta () const |
double | GetGamma () const |
double | GetMomentum () const |
double | GetKineticEnergy () const |
double | GetCharge () const |
Get the charge of the projectile. | |
double | GetMass () const |
Get the mass [eV / c2] of the projectile. | |
void | SetSensor (Sensor *s) |
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) |
void | DisablePlotting () |
void | EnableDebugging () |
void | DisableDebugging () |
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 |
double | m_q |
int | m_spin |
double | m_mass |
double | m_energy |
double | m_beta2 |
bool | m_isElectron |
std::string | m_particleName |
Sensor * | m_sensor |
bool | m_isChanged |
bool | m_usePlotting |
ViewDrift * | m_viewer |
bool | m_debug |
int | m_plotId |
Garfield::Track::Track | ( | ) |
Constructor.
Definition at line 11 of file Track.cc.
|
inlinevirtual |
|
inline |
void Garfield::Track::DisablePlotting | ( | ) |
|
inline |
void Garfield::Track::EnablePlotting | ( | ViewDrift * | viewer | ) |
|
inline |
Definition at line 40 of file Track.hh.
Referenced by Garfield::TrackBichsel::NewTrack(), and Garfield::TrackHeed::NewTrack().
|
inline |
Definition at line 39 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::TrackHeed, Garfield::TrackSimple, Garfield::TrackSrim, 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::TrackHeed, Garfield::TrackPAI, and Garfield::TrackSimple.
Definition at line 69 of file Track.hh.
|
inline |
|
inline |
|
inline |
Definition at line 43 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::TrackHeed, Garfield::TrackPAI, and Garfield::TrackSimple.
Definition at line 71 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::TrackHeed, Garfield::TrackPAI, Garfield::TrackSimple, and Garfield::TrackSrim.
|
protected |
Definition at line 221 of file Track.cc.
Referenced by Garfield::TrackHeed::GetCluster().
|
protected |
Definition at line 214 of file Track.cc.
Referenced by Garfield::TrackHeed::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 116 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 171 of file Track.cc.
Referenced by GarfieldPhysics::DoIt().
void Garfield::Track::SetMomentum | ( | const double | p | ) |
|
virtual |
Set the type of particle.
Reimplemented in Garfield::TrackElectron.
Definition at line 29 of file Track.cc.
Referenced by GarfieldPhysics::DoIt().
void Garfield::Track::SetSensor | ( | Sensor * | s | ) |
Definition at line 185 of file Track.cc.
Referenced by GarfieldPhysics::InitializePhysics().
|
protected |
Definition at line 86 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 80 of file Track.hh.
Referenced by EnablePlotting(), Garfield::TrackSrim::EstimateRange(), Garfield::TrackBichsel::GetCluster(), Garfield::TrackSimple::GetCluster(), Garfield::TrackElectron::GetCluster(), Garfield::TrackPAI::GetCluster(), Garfield::TrackHeed::GetCluster(), Garfield::TrackBichsel::GetClusterDensity(), Garfield::TrackElectron::GetClusterDensity(), Garfield::TrackHeed::GetClusterDensity(), Garfield::TrackPAI::GetClusterDensity(), Garfield::TrackHeed::GetElectron(), Garfield::TrackHeed::GetIon(), Garfield::TrackBichsel::GetStoppingPower(), Garfield::TrackElectron::GetStoppingPower(), Garfield::TrackHeed::GetStoppingPower(), Garfield::TrackPAI::GetStoppingPower(), Garfield::TrackBichsel::NewTrack(), Garfield::TrackElectron::NewTrack(), Garfield::TrackHeed::NewTrack(), Garfield::TrackPAI::NewTrack(), Garfield::TrackSimple::NewTrack(), Garfield::TrackSrim::NewTrack(), PlotCluster(), Garfield::TrackSrim::PreciseLoss(), Garfield::TrackSrim::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::TrackHeed::TransportDeltaElectron(), and Garfield::TrackHeed::TransportPhoton().
|
protected |
Definition at line 97 of file Track.hh.
Referenced by DisableDebugging(), EnableDebugging(), Garfield::TrackSrim::EstimateRange(), Garfield::TrackBichsel::GetCluster(), Garfield::TrackSimple::GetCluster(), Garfield::TrackSrim::GetCluster(), Garfield::TrackPAI::GetCluster(), Garfield::TrackBichsel::GetClusterDensity(), Garfield::TrackBichsel::GetStoppingPower(), Garfield::TrackElectron::NewTrack(), Garfield::TrackHeed::NewTrack(), Garfield::TrackPAI::NewTrack(), Garfield::TrackSrim::NewTrack(), Garfield::TrackSrim::PreciseLoss(), Garfield::TrackSrim::ReadFile(), Garfield::TrackSrim::RndmEnergyLoss(), and Garfield::TrackSrim::SmallestStep().
|
protected |
Definition at line 85 of file Track.hh.
Referenced by GetEnergy(), GetKineticEnergy(), Garfield::TrackSrim::NewTrack(), SetBeta(), SetBetaGamma(), SetEnergy(), SetGamma(), SetKineticEnergy(), and SetMomentum().
|
protected |
Definition at line 92 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::TrackHeed::NewTrack(), Garfield::TrackPAI::NewTrack(), SetBeta(), SetBetaGamma(), SetEnergy(), SetGamma(), SetKineticEnergy(), SetMomentum(), Garfield::TrackHeed::TransportDeltaElectron(), and Garfield::TrackHeed::TransportPhoton().
|
protected |
Definition at line 87 of file Track.hh.
Referenced by SetParticle(), Garfield::TrackHeed::SetParticleUser(), and Garfield::TrackElectron::TrackElectron().
|
protected |
Definition at line 84 of file Track.hh.
Referenced by GetKineticEnergy(), GetMass(), GetMomentum(), Garfield::TrackHeed::NewTrack(), SetBeta(), SetBetaGamma(), SetEnergy(), SetGamma(), SetKineticEnergy(), SetMomentum(), SetParticle(), Garfield::TrackHeed::SetParticleUser(), and Garfield::TrackElectron::TrackElectron().
|
protected |
Definition at line 88 of file Track.hh.
Referenced by Garfield::TrackHeed::NewTrack(), SetParticle(), Garfield::TrackHeed::SetParticleUser(), and Garfield::TrackElectron::TrackElectron().
|
protected |
Definition at line 99 of file Track.hh.
Referenced by PlotCluster(), and PlotNewTrack().
|
protected |
Definition at line 82 of file Track.hh.
Referenced by GetCharge(), Garfield::TrackHeed::NewTrack(), SetParticle(), Garfield::TrackHeed::SetParticleUser(), and Garfield::TrackElectron::TrackElectron().
|
protected |
Definition at line 90 of file Track.hh.
Referenced by Garfield::TrackBichsel::GetCluster(), Garfield::TrackSimple::GetCluster(), Garfield::TrackElectron::GetCluster(), Garfield::TrackPAI::GetCluster(), Garfield::TrackBichsel::NewTrack(), Garfield::TrackElectron::NewTrack(), Garfield::TrackHeed::NewTrack(), Garfield::TrackPAI::NewTrack(), Garfield::TrackSimple::NewTrack(), Garfield::TrackSrim::NewTrack(), SetSensor(), Garfield::TrackHeed::TransportDeltaElectron(), and Garfield::TrackHeed::TransportPhoton().
|
protected |
Definition at line 83 of file Track.hh.
Referenced by SetParticle(), Garfield::TrackHeed::SetParticleUser(), and Garfield::TrackElectron::TrackElectron().
|
protected |
Definition at line 94 of file Track.hh.
Referenced by DisablePlotting(), EnablePlotting(), Garfield::TrackHeed::GetCluster(), Garfield::TrackHeed::NewTrack(), PlotCluster(), and PlotNewTrack().
|
protected |
Definition at line 95 of file Track.hh.
Referenced by DisablePlotting(), EnablePlotting(), PlotCluster(), and PlotNewTrack().