32 #include <boost/python.hpp>
36 using namespace boost::python;
41 namespace pyG4ParticleTable {
77 #if G4VERSION_NUMBER >= 910
82 #if G4VERSION_NUMBER >= 910
103 theParticleIterator-> reset();
104 while( (*theParticleIterator)() ){
106 particleList.append(&particle);
114 using namespace pyG4ParticleTable;
121 class_<G4ParticleTable, G4ParticleTable*, boost::noncopyable>
122 (
"G4ParticleTable",
"particle table", no_init)
125 return_value_policy<reference_existing_object>())
126 .staticmethod(
"GetParticleTable")
133 return_value_policy<reference_existing_object>())
135 return_value_policy<return_by_value>())
137 return_value_policy<reference_existing_object>())
139 return_value_policy<reference_existing_object>())
141 return_value_policy<reference_existing_object>())
143 return_value_policy<reference_existing_object>())
145 return_value_policy<reference_existing_object>())
147 return_value_policy<reference_existing_object>())
149 return_value_policy<reference_existing_object>())
151 return_value_policy<reference_existing_object>())
152 #if G4VERSION_NUMBER >= 910
153 .def(
"FindIon", f3_FindIon,
154 return_value_policy<reference_existing_object>())
156 #if G4VERSION_NUMBER >= 910
157 .def(
"GetIon", f1_GetIon,
158 return_value_policy<reference_existing_object>())
159 .def(
"GetIon", f2_GetIon,
160 return_value_policy<reference_existing_object>())
163 return_value_policy<reference_existing_object>())
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
G4ParticleDefinition * FindAntiParticle(G4int PDGEncoding)
G4ParticleDefinition *(G4ParticleTable::* f2_FindAntiParticle)(const G4String &)
void DumpTable(const G4String &particle_name="ALL")
G4ParticleDefinition * GetIon(G4int atomicNumber, G4int atomicMass, G4double excitationEnergy)
const G4String & GetParticleName(G4int index) const
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
G4ParticleDefinition *(G4ParticleTable::* f1_FindParticle)(G4int)
void SetVerboseLevel(G4int value)
void SetReadiness(G4bool val=true)
G4bool GetReadiness() const
G4bool(G4ParticleTable::* f2_contains)(const G4String &) const
G4ParticleDefinition * GetParticle(G4int index) const
G4ParticleDefinition * FindIon(G4int atomicNumber, G4int atomicMass, G4double excitationEnergy)
list GetParticleList(G4ParticleTable *particleTable)
G4bool contains(const G4ParticleDefinition *particle) const
static G4ParticleTable * GetParticleTable()
G4bool(G4ParticleTable::* f1_contains)(const G4ParticleDefinition *) const
G4ParticleDefinition *(G4ParticleTable::* f3_FindAntiParticle)(const G4ParticleDefinition *)
G4ParticleDefinition *(G4ParticleTable::* f1_FindIon)(G4int, G4int, G4double)
const XML_Char int const XML_Char * value
G4ParticleDefinition *(G4ParticleTable::* f2_FindParticle)(const G4String &)
G4ParticleDefinition *(G4ParticleTable::* f2_FindIon)(G4int, G4int, G4int, G4int)
G4int GetVerboseLevel() const
G4ParticleDefinition *(G4ParticleTable::* f3_FindParticle)(const G4ParticleDefinition *)
#define theParticleIterator
G4ParticleDefinition *(G4ParticleTable::* f1_FindAntiParticle)(G4int)
void export_G4ParticleTable()