41 void SetBeta(
const double beta);
72 virtual bool NewTrack(
const double x0,
const double y0,
const double z0,
73 const double t0,
const double dx0,
const double dy0,
74 const double dz0) = 0;
82 virtual bool GetCluster(
double& xcls,
double& ycls,
double& zcls,
83 double& tcls,
int& n,
double& e,
double& extra) = 0;
121 void PlotNewTrack(
const double x0,
const double y0,
const double z0);
122 void PlotCluster(
const double x0,
const double y0,
const double z0);
Abstract base class for track generation.
double GetMass() const
Get the mass [eV / c2] of the projectile.
double GetKineticEnergy() const
Return the kinetic energy of the projectile.
void DisablePlotting()
Switch off plotting.
double GetEnergy() const
Return the particle energy.
double GetBetaGamma() const
Return the of the projectile.
void EnablePlotting(ViewDrift *viewer)
Switch on plotting.
void SetBetaGamma(const double bg)
Set the relative momentum of the particle.
double GetBeta() const
Return the speed ( ) of the projectile.
double GetGamma() const
Return the Lorentz factor of the projectile.
double GetCharge() const
Get the charge of the projectile.
virtual double GetClusterDensity()
void SetSensor(Sensor *s)
Set the sensor through which to transport the particle.
void SetKineticEnergy(const double ekin)
Set the kinetic energy of the particle.
virtual ~Track()
Destructor.
void SetMomentum(const double p)
Set the particle momentum.
virtual void SetParticle(const std::string &part)
void EnableDebugging()
Switch on debugging messages.
std::string m_particleName
void PlotCluster(const double x0, const double y0, const double z0)
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
void SetEnergy(const double e)
Set the particle energy.
void SetGamma(const double gamma)
Set the Lorentz factor of the particle.
void SetBeta(const double beta)
Set the speed ( ) of the particle.
double GetMomentum() const
Return the particle momentum.
virtual double GetStoppingPower()
Get the stopping power (mean energy loss [eV] per cm).
void DisableDebugging()
Switch off debugging messages.
void PlotNewTrack(const double x0, const double y0, const double z0)
virtual bool GetCluster(double &xcls, double &ycls, double &zcls, double &tcls, int &n, double &e, double &extra)=0
Visualize drift lines and tracks.