32 #include <boost/python.hpp> 33 #include "G4ParticleTable.hh" 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);
60 return particleTableCache.begin();
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);
75 return particleTableCache.end();
87 class_<PyG4ParticleList>(
"PyG4ParticleList",
"particle list")
std::vector< G4ParticleDefinition * > ParticleList
static ParticleList particleTableCache
ParticleList::iterator p_iterator
std::string value(boost::any const &)
void export_PyG4ParticleList()