LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
PyG4ParticleList Class Reference

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

typedef std::vector<G4ParticleDefinition*> PyG4ParticleList::ParticleList

Definition at line 43 of file pyG4ParticleList.cc.

Member Function Documentation

p_iterator PyG4ParticleList::p_begin ( )
inline

Definition at line 48 of file pyG4ParticleList.cc.

References fhicl::detail::atom::value().

Referenced by export_PyG4ParticleList().

48  {
49  G4ParticleTable* particleTable= G4ParticleTable::GetParticleTable();
50  if(particleTableCache.size() != particleTable-> size() ) {
51  particleTableCache.clear();
52  G4ParticleTable::G4PTblDicIterator*
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 ParticleList particleTableCache
std::string value(boost::any const &)
p_iterator PyG4ParticleList::p_end ( )
inline

Definition at line 63 of file pyG4ParticleList.cc.

References particleTableCache, and fhicl::detail::atom::value().

Referenced by export_PyG4ParticleList().

63  {
64  G4ParticleTable* particleTable= G4ParticleTable::GetParticleTable();
65  if(particleTableCache.size() != particleTable-> size() ) {
66  particleTableCache.clear();
67  G4ParticleTable::G4PTblDicIterator*
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 ParticleList particleTableCache
std::string value(boost::any const &)

Member Data Documentation

PyG4ParticleList::ParticleList PyG4ParticleList::particleTableCache
static

Definition at line 46 of file pyG4ParticleList.cc.

Referenced by p_end().


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