Garfield++ v2r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
|
Generate tracks using Heed++. More...
#include <TrackHeed.hh>
Public Member Functions | |
TrackHeed () | |
Constructor. | |
virtual | ~TrackHeed () |
Destructor. | |
virtual bool | NewTrack (const double x0, const double y0, const double z0, const double t0, const double dx0, const double dy0, const double dz0) |
virtual bool | GetCluster (double &xcls, double &ycls, double &zcls, double &tcls, int &n, double &e, double &extra) |
bool | GetCluster (double &xcls, double &ycls, double &zcls, double &tcls, int &ne, int &ni, double &e, double &extra) |
bool | GetElectron (const unsigned int i, double &x, double &y, double &z, double &t, double &e, double &dx, double &dy, double &dz) |
bool | GetIon (const unsigned int i, double &x, double &y, double &z, double &t) const |
virtual double | GetClusterDensity () |
virtual double | GetStoppingPower () |
Get the stopping power (mean energy loss [eV] per cm). | |
double | GetW () const |
double | GetFanoFactor () const |
void | TransportDeltaElectron (const double x0, const double y0, const double z0, const double t0, const double e0, const double dx0, const double dy0, const double dz0, int &nel, int &ni) |
void | TransportDeltaElectron (const double x0, const double y0, const double z0, const double t0, const double e0, const double dx0, const double dy0, const double dz0, int &nel) |
void | TransportPhoton (const double x0, const double y0, const double z0, const double t0, const double e0, const double dx0, const double dy0, const double dz0, int &nel, int &ni) |
void | TransportPhoton (const double x0, const double y0, const double z0, const double t0, const double e0, const double dx0, const double dy0, const double dz0, int &nel) |
void | EnableElectricField () |
void | DisableElectricField () |
void | EnableMagneticField () |
void | DisableMagneticField () |
void | EnableDeltaElectronTransport () |
void | DisableDeltaElectronTransport () |
void | EnablePhotonReabsorption () |
void | DisablePhotonReabsorption () |
void | EnablePhotoAbsorptionCrossSectionOutput () |
void | DisablePhotoAbsorptionCrossSectionOutput () |
void | SetEnergyMesh (const double e0, const double e1, const int nsteps) |
void | SetParticleUser (const double m, const double z) |
Public Member Functions inherited from Garfield::Track | |
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 () |
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) |
Protected Attributes inherited from Garfield::Track | |
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 |
Generate tracks using Heed++.
Definition at line 37 of file TrackHeed.hh.
Garfield::TrackHeed::TrackHeed | ( | ) |
Constructor.
Definition at line 60 of file TrackHeed.cc.
|
virtual |
Destructor.
Definition at line 95 of file TrackHeed.cc.
|
inline |
Definition at line 100 of file TrackHeed.hh.
void Garfield::TrackHeed::DisableElectricField | ( | ) |
Definition at line 848 of file TrackHeed.cc.
void Garfield::TrackHeed::DisableMagneticField | ( | ) |
Definition at line 850 of file TrackHeed.cc.
|
inline |
Definition at line 106 of file TrackHeed.hh.
|
inline |
Definition at line 103 of file TrackHeed.hh.
|
inline |
Definition at line 99 of file TrackHeed.hh.
Referenced by GarfieldPhysics::InitializePhysics().
void Garfield::TrackHeed::EnableElectricField | ( | ) |
Definition at line 847 of file TrackHeed.cc.
void Garfield::TrackHeed::EnableMagneticField | ( | ) |
Definition at line 849 of file TrackHeed.cc.
|
inline |
Definition at line 105 of file TrackHeed.hh.
|
inline |
Definition at line 102 of file TrackHeed.hh.
|
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) |
Implements Garfield::Track.
Definition at line 327 of file TrackHeed.cc.
Referenced by GarfieldPhysics::DoIt(), and GetCluster().
bool Garfield::TrackHeed::GetCluster | ( | double & | xcls, |
double & | ycls, | ||
double & | zcls, | ||
double & | tcls, | ||
int & | ne, | ||
int & | ni, | ||
double & | e, | ||
double & | extra | ||
) |
Definition at line 334 of file TrackHeed.cc.
|
virtual |
Get the cluster density (number of ionizing collisions per cm or inverse mean free path for ionization).
Reimplemented from Garfield::Track.
Definition at line 293 of file TrackHeed.cc.
bool Garfield::TrackHeed::GetElectron | ( | const unsigned int | i, |
double & | x, | ||
double & | y, | ||
double & | z, | ||
double & | t, | ||
double & | e, | ||
double & | dx, | ||
double & | dy, | ||
double & | dz | ||
) |
Retrieve the properties of a conduction or delta electron in the current cluster.
i | index of the electron |
x,y,z | coordinates of the electron |
t | time |
e | kinetic energy (only meaningful for delta-electrons) |
dx,dy,dz | direction vector (only meaningful for delta-electrons) |
Definition at line 465 of file TrackHeed.cc.
Referenced by GarfieldPhysics::DoIt().
double Garfield::TrackHeed::GetFanoFactor | ( | ) | const |
Definition at line 1271 of file TrackHeed.cc.
bool Garfield::TrackHeed::GetIon | ( | const unsigned int | i, |
double & | x, | ||
double & | y, | ||
double & | z, | ||
double & | t | ||
) | const |
Retrieve the properties of an ion in the current cluster.
i | index of the ion |
x,y,z | coordinates of the ion |
t | time |
Definition at line 510 of file TrackHeed.cc.
|
virtual |
Get the stopping power (mean energy loss [eV] per cm).
Reimplemented from Garfield::Track.
Definition at line 310 of file TrackHeed.cc.
double Garfield::TrackHeed::GetW | ( | ) | const |
|
virtual |
Calculate a new track starting from (x0, y0, z0) at time t0 in direction (dx0, dy0, dz0).
Implements Garfield::Track.
Definition at line 111 of file TrackHeed.cc.
Referenced by GarfieldPhysics::DoIt().
void Garfield::TrackHeed::SetEnergyMesh | ( | const double | e0, |
const double | e1, | ||
const int | nsteps | ||
) |
Definition at line 852 of file TrackHeed.cc.
void Garfield::TrackHeed::SetParticleUser | ( | const double | m, |
const double | z | ||
) |
Definition at line 875 of file TrackHeed.cc.
void Garfield::TrackHeed::TransportDeltaElectron | ( | const double | x0, |
const double | y0, | ||
const double | z0, | ||
const double | t0, | ||
const double | e0, | ||
const double | dx0, | ||
const double | dy0, | ||
const double | dz0, | ||
int & | nel | ||
) |
Definition at line 526 of file TrackHeed.cc.
void Garfield::TrackHeed::TransportDeltaElectron | ( | const double | x0, |
const double | y0, | ||
const double | z0, | ||
const double | t0, | ||
const double | e0, | ||
const double | dx0, | ||
const double | dy0, | ||
const double | dz0, | ||
int & | nel, | ||
int & | ni | ||
) |
Definition at line 535 of file TrackHeed.cc.
Referenced by GarfieldPhysics::DoIt(), and TransportDeltaElectron().
void Garfield::TrackHeed::TransportPhoton | ( | const double | x0, |
const double | y0, | ||
const double | z0, | ||
const double | t0, | ||
const double | e0, | ||
const double | dx0, | ||
const double | dy0, | ||
const double | dz0, | ||
int & | nel | ||
) |
Definition at line 668 of file TrackHeed.cc.
void Garfield::TrackHeed::TransportPhoton | ( | const double | x0, |
const double | y0, | ||
const double | z0, | ||
const double | t0, | ||
const double | e0, | ||
const double | dx0, | ||
const double | dy0, | ||
const double | dz0, | ||
int & | nel, | ||
int & | ni | ||
) |
Definition at line 676 of file TrackHeed.cc.
Referenced by GarfieldPhysics::DoIt(), and TransportPhoton().