Garfield++
v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
ParticleBank.cpp
Go to the documentation of this file.
1
#include "
heed++/code/ParticleBank.h
"
2
3
namespace
Heed
{
4
5
void
treat_particle_bank
(
int
s_erase) {
6
mfunname
(
"void treat_particle_bank(int s_erase)"
);
7
AbsListNode<ActivePtr<gparticle>
>* aln;
8
AbsListNode<ActivePtr<gparticle>
>* aln1;
9
10
aln =
particle_bank
.get_first_node();
11
while
(aln != NULL) {
12
aln->
el
->fly();
13
aln1 = aln->
get_next_node
();
14
if
(s_erase == 1)
particle_bank
.erase(aln);
15
aln = aln1;
16
}
17
}
18
19
}
mfunname
#define mfunname(string)
Definition:
FunNameStack.h:67
ParticleBank.h
AbsListNode
Definition:
AbsList.h:77
AbsListNode::get_next_node
AbsListNode< T > * get_next_node(void) const
Definition:
AbsList.h:98
AbsListNode::el
T el
Definition:
AbsList.h:95
Heed
Definition:
BGMesh.cpp:3
Heed::treat_particle_bank
void treat_particle_bank(int s_erase)
Definition:
ParticleBank.cpp:5
Heed::particle_bank
AbsList< ActivePtr< gparticle > > particle_bank
Definition:
TrackHeed.cc:42
garfieldpp-v1r0
Heed
heed++
code
ParticleBank.cpp
Generated by
1.9.6