Garfield++ v1r0
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
7/*
8Definition of the particle which can be traced through the
9geometry. Also the definition of cluster (energy transfer),
10and particle bank.
11
122003, I. Smirnov
13*/
14
15//#define SINGLE_TRANSFER // for debug
16#ifdef SINGLE_TRANSFER
18extern EnTransfCS* aetcs_single_transf;
19extern long na_single_transf;
20extern long ns_single_transf;
21extern double ener_single_transf;
22#endif
23
24namespace Heed {
25
26extern long last_particle_number; // for debug print
27// Each particle is identified by particle_number.
28// It is assigned by current last_particle_number which is then incremented
29
31 public:
34 HeedParticle_BGM(manip_absvol* primvol, const point& pt, const vec& vel,
35 vfloat time, particle_def* fpardef, int fs_loss_only = 0,
36 int fs_print_listing = 0);
37 // if fs_loss_only == 1 - only transfer energy and
38 // no othet physics: no deposition of clusters,
39 // no generation of virtual photons.
40 // Thus it is just a PAI without even clusters
41
42 virtual void physics(void);
44 virtual void print(std::ostream& file, int l) const;
46 virtual ~HeedParticle_BGM() { ; }
47 double transferred_energy_in_step; // internal units
48
54
55};
56
57}
58
59#endif
Definition: BlkArr.h:80
BlkArr< double > transferred_energy
virtual void physics(void)
virtual void print(std::ostream &file, int l) const
macro_copy_total(HeedParticle_BGM)
Definition: vec.h:477
Definition: vec.h:248
Definition: BGMesh.cpp:3
long last_particle_number
Definition: HeedParticle.h:26
double vfloat
Definition: vfloat.h:15