Garfield++ v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
TrackSimple.hh
Go to the documentation of this file.
1
2#ifndef G_TRACK_SIMPLE_H
3#define G_TRACK_SIMPLE_H
4
5#include "Track.hh"
6
7namespace Garfield {
8
9class TrackSimple : public Track {
10
11 public:
12 // Constructor
14 // Destructor
16
19
20 void SetClusterDensity(const double d);
21 double GetClusterDensity();
22 void SetStoppingPower(const double dedx);
23 double GetStoppingPower();
24
25 bool NewTrack(const double x0, const double y0, const double z0,
26 const double t0, const double dx0, const double dy0,
27 const double dz0);
28 bool GetCluster(double& xcls, double& ycls, double& zcls, double& tcls,
29 int& n, double& e, double& extra);
30
31 protected:
32 bool isReady;
33
34 // Particle position, time and direction
35 double x, y, z, t;
36 double dx, dy, dz;
37 // Mean free path (mean spacing between adjacent clusters)
38 double mfp;
39 // Average energy per cluster
40 double eloss;
41
43};
44}
45
46#endif
void SetStoppingPower(const double dedx)
Definition: TrackSimple.cc:41
double GetClusterDensity()
Definition: TrackSimple.cc:39
bool GetCluster(double &xcls, double &ycls, double &zcls, double &tcls, int &n, double &e, double &extra)
Definition: TrackSimple.cc:101
void SetClusterDensity(const double d)
Definition: TrackSimple.cc:27
bool NewTrack(const double x0, const double y0, const double z0, const double t0, const double dx0, const double dy0, const double dz0)
Definition: TrackSimple.cc:55