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
7
namespace
Garfield
{
8
9
class
TrackSimple
:
public
Track
{
10
11
public
:
12
// Constructor
13
TrackSimple
();
14
// Destructor
15
~TrackSimple
() {}
16
17
void
SetEqualSpacing
() {
useEqualSpacing
=
true
; }
18
void
SetExponentialSpacing
() {
useEqualSpacing
=
false
; }
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
42
bool
useEqualSpacing
;
43
};
44
}
45
46
#endif
Track.hh
Garfield::TrackSimple
Definition:
TrackSimple.hh:9
Garfield::TrackSimple::isReady
bool isReady
Definition:
TrackSimple.hh:32
Garfield::TrackSimple::dx
double dx
Definition:
TrackSimple.hh:36
Garfield::TrackSimple::SetEqualSpacing
void SetEqualSpacing()
Definition:
TrackSimple.hh:17
Garfield::TrackSimple::y
double y
Definition:
TrackSimple.hh:35
Garfield::TrackSimple::SetStoppingPower
void SetStoppingPower(const double dedx)
Definition:
TrackSimple.cc:41
Garfield::TrackSimple::dz
double dz
Definition:
TrackSimple.hh:36
Garfield::TrackSimple::~TrackSimple
~TrackSimple()
Definition:
TrackSimple.hh:15
Garfield::TrackSimple::useEqualSpacing
bool useEqualSpacing
Definition:
TrackSimple.hh:42
Garfield::TrackSimple::GetClusterDensity
double GetClusterDensity()
Definition:
TrackSimple.cc:39
Garfield::TrackSimple::t
double t
Definition:
TrackSimple.hh:35
Garfield::TrackSimple::eloss
double eloss
Definition:
TrackSimple.hh:40
Garfield::TrackSimple::x
double x
Definition:
TrackSimple.hh:35
Garfield::TrackSimple::SetExponentialSpacing
void SetExponentialSpacing()
Definition:
TrackSimple.hh:18
Garfield::TrackSimple::GetCluster
bool GetCluster(double &xcls, double &ycls, double &zcls, double &tcls, int &n, double &e, double &extra)
Definition:
TrackSimple.cc:101
Garfield::TrackSimple::GetStoppingPower
double GetStoppingPower()
Definition:
TrackSimple.cc:53
Garfield::TrackSimple::SetClusterDensity
void SetClusterDensity(const double d)
Definition:
TrackSimple.cc:27
Garfield::TrackSimple::dy
double dy
Definition:
TrackSimple.hh:36
Garfield::TrackSimple::z
double z
Definition:
TrackSimple.hh:35
Garfield::TrackSimple::mfp
double mfp
Definition:
TrackSimple.hh:38
Garfield::TrackSimple::TrackSimple
TrackSimple()
Definition:
TrackSimple.cc:11
Garfield::TrackSimple::NewTrack
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
Garfield::Track
Definition:
Track.hh:14
Garfield
Definition:
HeedChamber.hh:10
garfieldpp-v1r0
Include
TrackSimple.hh
Generated by
1.9.6