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
5#include "HeedFieldMap.h"
6
7// 1998 - 2004, I. Smirnov.
8
9namespace 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
15class eparticle : public mparticle, public particle_type {
16 public:
17 /// Default constructor
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:
34};
35}
36
37#endif
Retrieve electric and magnetic field from Sensor.
Definition: HeedFieldMap.h:15
virtual eparticle * copy() const
Definition: eparticle.h:25
virtual void print(std::ostream &file, int l) const
Definition: eparticle.cpp:26
eparticle()
Default constructor.
Definition: eparticle.h:18
HeedFieldMap * m_fieldMap
Definition: eparticle.h:33
virtual int force(const point &pt, vec &f, vec &f_perp, vfloat &mrange)
Calculate force components.
Definition: eparticle.cpp:13
virtual ~eparticle()
Destructor.
Definition: eparticle.h:23
Abstract base classs for volume "manipulators".
Definition: volume.h:178
Massive particle. A force can be applied.
Definition: mparticle.h:23
Point.
Definition: vec.h:374
Definition: vec.h:186
Definition: BGMesh.cpp:5
double vfloat
Definition: vfloat.h:16