Garfield++
v2r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
eparticle.h
Go to the documentation of this file.
1
#ifndef EPARTICLE_H
2
#define EPARTICLE_H
3
#include "
wcpplib/geometry/mparticle.h
"
4
#include "
wcpplib/particle/particle_def.h
"
5
#include "
HeedFieldMap.h
"
6
7
// 1998 - 2004, I. Smirnov.
8
9
namespace
Heed
{
10
11
/// Charged particle. Combination of features of massive geometrical
12
/// particle and specification of concrete particle as one of types
13
/// known by science.
14
15
class
eparticle
:
public
mparticle
,
public
particle_type
{
16
public
:
17
/// Default constructor
18
eparticle
() :
mparticle
(),
particle_type
(),
m_fieldMap
(NULL) {}
19
/// Constructor using velocity vector.
20
eparticle
(
manip_absvol
* primvol,
const
point
& pt,
const
vec
& vel,
vfloat
time,
21
particle_def
* fpardef,
HeedFieldMap
* fieldmap);
22
/// Destructor
23
virtual
~eparticle
() {}
24
25
virtual
eparticle
*
copy
()
const
{
return
new
eparticle
(*
this
); }
26
virtual
void
print
(std::ostream& file,
int
l)
const
;
27
28
/// Calculate force components.
29
virtual
int
force
(
const
point
& pt,
vec
& f,
vec
& f_perp,
vfloat
& mrange);
30
// mrange - distance at which the force should not change much
31
32
protected
:
33
HeedFieldMap
*
m_fieldMap
;
34
};
35
}
36
37
#endif
HeedFieldMap.h
Heed::HeedFieldMap
Retrieve electric and magnetic field from Sensor.
Definition:
HeedFieldMap.h:15
Heed::eparticle
Definition:
eparticle.h:15
Heed::eparticle::copy
virtual eparticle * copy() const
Definition:
eparticle.h:25
Heed::eparticle::print
virtual void print(std::ostream &file, int l) const
Definition:
eparticle.cpp:26
Heed::eparticle::eparticle
eparticle()
Default constructor.
Definition:
eparticle.h:18
Heed::eparticle::m_fieldMap
HeedFieldMap * m_fieldMap
Definition:
eparticle.h:33
Heed::eparticle::force
virtual int force(const point &pt, vec &f, vec &f_perp, vfloat &mrange)
Calculate force components.
Definition:
eparticle.cpp:13
Heed::eparticle::~eparticle
virtual ~eparticle()
Destructor.
Definition:
eparticle.h:23
Heed::manip_absvol
Abstract base classs for volume "manipulators".
Definition:
volume.h:178
Heed::mparticle
Massive particle. A force can be applied.
Definition:
mparticle.h:23
Heed::particle_def
Definition:
particle_def.h:45
Heed::particle_type
Definition:
particle_def.h:146
Heed::point
Point.
Definition:
vec.h:374
Heed::vec
Definition:
vec.h:186
mparticle.h
Heed
Definition:
BGMesh.cpp:5
Heed::vfloat
double vfloat
Definition:
vfloat.h:16
particle_def.h
garfieldpp-v2r0
Heed
wcpplib
particle
eparticle.h
Generated by
1.9.6