32 #include <boost/python.hpp>
36 using namespace boost::python;
41 namespace pyG4ParticleTable {
82 theParticleIterator-> reset();
83 while( (*theParticleIterator)() ){
85 particleList.append(&particle);
93 using namespace pyG4ParticleTable;
100 class_<G4ParticleTable, G4ParticleTable*, boost::noncopyable>
101 (
"G4ParticleTable",
"particle table", no_init)
104 return_value_policy<reference_existing_object>())
105 .staticmethod(
"GetParticleTable")
112 return_value_policy<reference_existing_object>())
114 return_value_policy<return_by_value>())
116 return_value_policy<reference_existing_object>())
118 return_value_policy<reference_existing_object>())
120 return_value_policy<reference_existing_object>())
122 return_value_policy<reference_existing_object>())
124 return_value_policy<reference_existing_object>())
126 return_value_policy<reference_existing_object>())
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void DumpTable(const G4String &particle_name="ALL")
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
void export_G4ParticleTable()
static G4ParticleTable * GetParticleTable()
G4bool contains(const G4ParticleDefinition *particle) const
#define theParticleIterator
G4ParticleDefinition *(G4ParticleTable::* f2_FindAntiParticle)(const G4String &)
G4ParticleDefinition *(G4ParticleTable::* f1_FindAntiParticle)(G4int)
G4ParticleDefinition *(G4ParticleTable::* f3_FindParticle)(const G4ParticleDefinition *)
G4ParticleDefinition *(G4ParticleTable::* f2_FindParticle)(const G4String &)
G4ParticleDefinition * GetParticle(G4int index) const
const XML_Char int const XML_Char * value
G4int GetVerboseLevel() const
G4ParticleDefinition *(G4ParticleTable::* f3_FindAntiParticle)(const G4ParticleDefinition *)
G4bool(G4ParticleTable::* f2_contains)(const G4String &) const
static MCGIDI_particle * particleList
G4ParticleDefinition *(G4ParticleTable::* f1_FindParticle)(G4int)
void SetReadiness(G4bool val=true)
G4ParticleDefinition * FindAntiParticle(G4int PDGEncoding)
const G4String & GetParticleName(G4int index) const
G4bool GetReadiness() const
G4bool(G4ParticleTable::* f1_contains)(const G4ParticleDefinition *) const
void SetVerboseLevel(G4int value)
list GetParticleList(G4ParticleTable *particleTable)