Geant4  10.02.p03
PyG4ParticleList Class Reference
Collaboration diagram for PyG4ParticleList:

Public Types

typedef std::vector< G4ParticleDefinition * > ParticleList
 
typedef ParticleList::iterator p_iterator
 

Public Member Functions

p_iterator p_begin ()
 
p_iterator p_end ()
 

Static Public Attributes

static ParticleList particleTableCache
 

Detailed Description

Definition at line 41 of file pyG4ParticleList.cc.

Member Typedef Documentation

◆ p_iterator

typedef ParticleList::iterator PyG4ParticleList::p_iterator

Definition at line 44 of file pyG4ParticleList.cc.

◆ ParticleList

Definition at line 43 of file pyG4ParticleList.cc.

Member Function Documentation

◆ p_begin()

p_iterator PyG4ParticleList::p_begin ( )
inline

Definition at line 48 of file pyG4ParticleList.cc.

48  {
50  if(particleTableCache.size() != particleTable-> size() ) {
51  particleTableCache.clear();
53  theParticleIterator= particleTable-> GetIterator();
54  theParticleIterator-> reset();
55  while( (*theParticleIterator)() ){
56  G4ParticleDefinition* particle= theParticleIterator-> value();
57  particleTableCache.push_back(particle);
58  }
59  }
60  return particleTableCache.begin();
61  }
static G4ParticleTable * GetParticleTable()
static ParticleList particleTableCache
#define theParticleIterator
Here is the call graph for this function:
Here is the caller graph for this function:

◆ p_end()

p_iterator PyG4ParticleList::p_end ( )
inline

Definition at line 63 of file pyG4ParticleList.cc.

63  {
65  if(particleTableCache.size() != particleTable-> size() ) {
66  particleTableCache.clear();
68  theParticleIterator= particleTable-> GetIterator();
69  theParticleIterator-> reset();
70  while( (*theParticleIterator)() ){
71  G4ParticleDefinition* particle= theParticleIterator-> value();
72  particleTableCache.push_back(particle);
73  }
74  }
75  return particleTableCache.end();
76  }
static G4ParticleTable * GetParticleTable()
static ParticleList particleTableCache
#define theParticleIterator
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ particleTableCache

PyG4ParticleList::ParticleList PyG4ParticleList::particleTableCache
static

Definition at line 46 of file pyG4ParticleList.cc.


The documentation for this class was generated from the following file: