1#ifndef G_TRACK_SIMPLE_H
2#define G_TRACK_SIMPLE_H
29 virtual bool NewTrack(
const double x0,
const double y0,
const double z0,
30 const double t0,
const double dx0,
const double dy0,
32 virtual bool GetCluster(
double& xcls,
double& ycls,
double& zcls,
33 double& tcls,
int& n,
double& e,
double& extra);
Generate tracks based on a cluster density given by the user.
void SetEqualSpacing()
Constant distance between clusters.
void SetStoppingPower(const double dedx)
Set the stopping power (dE/dx).
virtual ~TrackSimple()
Destructor.
virtual double GetClusterDensity()
void SetExponentialSpacing()
Exponentially distributed distance between clusters.
virtual bool GetCluster(double &xcls, double &ycls, double &zcls, double &tcls, int &n, double &e, double &extra)
virtual double GetStoppingPower()
Get the stopping power (mean energy loss [eV] per cm).
void SetClusterDensity(const double d)
Set the cluster density (inverse mean free path).
TrackSimple()
Constructor.
virtual bool NewTrack(const double x0, const double y0, const double z0, const double t0, const double dx0, const double dy0, const double dz0)
Abstract base class for track generation.