Garfield++ 3.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
HeedParticle.h
Go to the documentation of this file.
1#ifndef HEEDPARTICLE_H
2#define HEEDPARTICLE_H
3
4#include <vector>
6#include "HeedCluster.h"
7
8namespace Heed {
10
11/// Charged particle which can be traced through the geometry.
12///
13/// 2003, I. Smirnov
14
15class HeedParticle : public eparticle {
16 public:
17 /// Default constructor
19 /// Constructor.
20 /// If fs_loss_only == false only transferred energy
21 /// is simulated: no deposition of clusters,
22 /// no generation of virtual photons.
23 HeedParticle(manip_absvol* primvol, const point& pt, const vec& vel,
24 vfloat time, particle_def* fpardef, HeedFieldMap* fieldmap,
25 const bool fs_loss_only = false,
26 const bool fs_print_listing = false);
27 /// Destructor
28 virtual ~HeedParticle() {}
29
30 HeedParticle* copy() const override { return new HeedParticle(*this); }
31 void print(std::ostream& file, int l) const override;
32
33 protected:
34 void physics(std::vector<gparticle*>& secondaries) override;
35
36 private:
37 bool m_print_listing = false;
38 long m_particle_number;
39
40 bool m_loss_only = false;
41 std::vector<double> m_etransf;
42 std::vector<long> m_natom;
43 std::vector<long> m_nshell;
44
45 bool m_store_clusters = false;
46 std::vector<HeedCluster> m_clusterBank;
47};
48}
49
50#endif
Retrieve electric and magnetic field from Sensor.
Definition: HeedFieldMap.h:15
void print(std::ostream &file, int l) const override
Print-out.
HeedParticle * copy() const override
Clone the particle.
Definition: HeedParticle.h:30
void physics(std::vector< gparticle * > &secondaries) override
Apply any other processes (turn the trajectory, kill the particle, ...).
HeedParticle()
Default constructor.
Definition: HeedParticle.h:18
virtual ~HeedParticle()
Destructor.
Definition: HeedParticle.h:28
vfloat time() const
Get the current time of the particle.
Definition: gparticle.h:176
Abstract base classs for volume "manipulators".
Definition: volume.h:128
Point.
Definition: vec.h:366
Definition: vec.h:177
Definition: BGMesh.cpp:6
long last_particle_number
Definition: HeedParticle.h:9
double vfloat
Definition: vfloat.h:16