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