Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4ParticleTable.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"
#include "G4ParticleTable.hh"
Include dependency graph for pyG4ParticleTable.cc:

Go to the source code of this file.

Namespaces

 pyG4ParticleTable
 

Functions

list pyG4ParticleTable::GetParticleList (G4ParticleTable *particleTable)
 
void export_G4ParticleTable ()
 

Variables

G4bool(G4ParticleTable::* pyG4ParticleTable::f1_contains )(const G4ParticleDefinition *) const = &G4ParticleTable::contains
 
G4bool(G4ParticleTable::* pyG4ParticleTable::f2_contains )(const G4String &) const = &G4ParticleTable::contains
 
G4ParticleDefinition
*(G4ParticleTable::* 
pyG4ParticleTable::f1_FindParticle )(G4int) = &G4ParticleTable::FindParticle
 
G4ParticleDefinition
*(G4ParticleTable::* 
pyG4ParticleTable::f2_FindParticle )(const G4String &) = &G4ParticleTable::FindParticle
 
G4ParticleDefinition
*(G4ParticleTable::* 
pyG4ParticleTable::f3_FindParticle )(const G4ParticleDefinition *) = &G4ParticleTable::FindParticle
 
G4ParticleDefinition
*(G4ParticleTable::* 
pyG4ParticleTable::f1_FindAntiParticle )(G4int) = &G4ParticleTable::FindAntiParticle
 
G4ParticleDefinition
*(G4ParticleTable::* 
pyG4ParticleTable::f2_FindAntiParticle )(const G4String &) = &G4ParticleTable::FindAntiParticle
 
G4ParticleDefinition
*(G4ParticleTable::* 
pyG4ParticleTable::f3_FindAntiParticle )(const G4ParticleDefinition *) = &G4ParticleTable::FindAntiParticle
 

Function Documentation

void export_G4ParticleTable ( )

Definition at line 98 of file pyG4ParticleTable.cc.

99 {
100  class_<G4ParticleTable, G4ParticleTable*, boost::noncopyable>
101  ("G4ParticleTable", "particle table", no_init)
102  // ---
103  .def("GetParticleTable", &G4ParticleTable::GetParticleTable,
104  return_value_policy<reference_existing_object>())
105  .staticmethod("GetParticleTable")
106  .def("contains", f1_contains)
107  .def("contains", f2_contains)
108  .def("entries", &G4ParticleTable::entries)
109  .def("size", &G4ParticleTable::size)
110  // ---
111  .def("GetParticle", &G4ParticleTable::GetParticle,
112  return_value_policy<reference_existing_object>())
113  .def("GetParticleName", &G4ParticleTable::GetParticleName,
114  return_value_policy<return_by_value>())
115  .def("FindParticle", f1_FindParticle,
116  return_value_policy<reference_existing_object>())
117  .def("FindParticle", f2_FindParticle,
118  return_value_policy<reference_existing_object>())
119  .def("FindParticle", f3_FindParticle,
120  return_value_policy<reference_existing_object>())
121  .def("FindAntiParticle", f1_FindAntiParticle,
122  return_value_policy<reference_existing_object>())
123  .def("FindAntiParticle", f2_FindAntiParticle,
124  return_value_policy<reference_existing_object>())
125  .def("FindAntiParticle", f3_FindAntiParticle,
126  return_value_policy<reference_existing_object>())
127  .def("DumpTable", &G4ParticleTable::DumpTable, f_DumpTable())
128  //.def("GetIonTable", &G4ParticleTable::GetIonTable,
129  //...)
130  //.def("GetShortLivedTable", &G4ParticleTable::GetShortLivedTable,
131  //...)
132  .def("SetVerboseLevel", &G4ParticleTable::SetVerboseLevel)
133  .def("GetVerboseLevel", &G4ParticleTable::GetVerboseLevel)
134  .def("SetReadiness", &G4ParticleTable::SetReadiness)
135  .def("GetReadiness", &G4ParticleTable::GetReadiness)
136  // ---
137  // additionals
138  .def("GetParticleList", GetParticleList)
139  ;
140 }
G4ParticleDefinition *(G4ParticleTable::* f2_FindAntiParticle)(const G4String &)
void DumpTable(const G4String &particle_name="ALL")
const G4String & GetParticleName(G4int index) const
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
list GetParticleList(G4ParticleTable *particleTable)
static G4ParticleTable * GetParticleTable()
G4bool(G4ParticleTable::* f1_contains)(const G4ParticleDefinition *) const
G4ParticleDefinition *(G4ParticleTable::* f3_FindAntiParticle)(const G4ParticleDefinition *)
G4ParticleDefinition *(G4ParticleTable::* f2_FindParticle)(const G4String &)
G4int size() const
G4int GetVerboseLevel() const
G4int entries() const
G4ParticleDefinition *(G4ParticleTable::* f3_FindParticle)(const G4ParticleDefinition *)
G4ParticleDefinition *(G4ParticleTable::* f1_FindAntiParticle)(G4int)

Here is the call graph for this function:

Here is the caller graph for this function: