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

Go to the source code of this file.

Functions

void export_G4ParticleDefinition ()
 

Function Documentation

void export_G4ParticleDefinition ( )

Definition at line 44 of file pyG4ParticleDefinition.cc.

45 {
46  class_<G4ParticleDefinition, G4ParticleDefinition*, boost::noncopyable>
47  ("G4ParticleDefinition", "particle definition", no_init)
48  // ---
49  .def("GetParticleName", &G4ParticleDefinition::GetParticleName,
50  return_value_policy<return_by_value>())
51  .def("GetPDGMass", &G4ParticleDefinition::GetPDGMass)
52  .def("GetPDGWidth", &G4ParticleDefinition::GetPDGWidth)
53  .def("GetPDGCharge", &G4ParticleDefinition::GetPDGCharge)
54  .def("GetPDGSpin", &G4ParticleDefinition::GetPDGSpin)
55  .def("GetPDGiSpin", &G4ParticleDefinition::GetPDGiSpin)
56  .def("GetPDGiParity", &G4ParticleDefinition::GetPDGiParity)
57  .def("GetPDGiConjugation", &G4ParticleDefinition::GetPDGiConjugation)
58  .def("GetPDGIsospin", &G4ParticleDefinition::GetPDGIsospin)
59  .def("GetPDGIsospin3", &G4ParticleDefinition::GetPDGIsospin3)
60  .def("GetPDGiIsospin", &G4ParticleDefinition::GetPDGiIsospin)
61  .def("GetPDGiIsospin3", &G4ParticleDefinition::GetPDGiIsospin3)
62  .def("GetPDGiGParity", &G4ParticleDefinition::GetPDGiGParity)
63  .def("GetParticleType", &G4ParticleDefinition::GetParticleType,
64  return_value_policy<return_by_value>())
65  .def("GetParticleSubType", &G4ParticleDefinition::GetParticleSubType,
66  return_value_policy<return_by_value>())
67  .def("GetLeptonNumber", &G4ParticleDefinition::GetLeptonNumber)
68  .def("GetBaryonNumber", &G4ParticleDefinition::GetBaryonNumber)
69  .def("GetPDGEncoding", &G4ParticleDefinition::GetPDGEncoding)
70  .def("GetAntiPDGEncoding", &G4ParticleDefinition::GetAntiPDGEncoding)
71  .def("GetQuarkContent", &G4ParticleDefinition::GetQuarkContent)
72  .def("GetAntiQuarkContent",&G4ParticleDefinition::GetAntiQuarkContent)
73  .def("IsShortLived", &G4ParticleDefinition::IsShortLived)
74  .def("GetPDGStable", &G4ParticleDefinition::GetPDGStable)
75  .def("SetPDGStable", &G4ParticleDefinition::SetPDGStable)
76  .def("GetPDGLifeTime", &G4ParticleDefinition::GetPDGLifeTime)
77  .def("SetPDGLifeTime", &G4ParticleDefinition::SetPDGLifeTime)
78  .def("GetDecayTable", &G4ParticleDefinition::GetDecayTable,
79  return_internal_reference<>())
80  .def("SetDecayTable", &G4ParticleDefinition::SetDecayTable)
81  .def("GetProcessManager", &G4ParticleDefinition::GetProcessManager,
82  return_internal_reference<>())
83  .def("SetProcessManager", &G4ParticleDefinition::SetProcessManager)
84  // cludge!! (G4ParticleTable object is sigleton!!)
85  .def("GetParticleTable", &G4ParticleDefinition::GetParticleTable,
86  return_value_policy<reference_existing_object>())
87  .def("DumpTable", &G4ParticleDefinition::DumpTable)
88 #if G4VERSION_NUMBER >= 701
89  .def("GetAtomicNumber", &G4ParticleDefinition::GetAtomicNumber)
90  .def("GetAtomicMass", &G4ParticleDefinition::GetAtomicMass)
91 #endif
92  .def("SetVerboseLevel", &G4ParticleDefinition::SetVerboseLevel)
93  .def("GetVerboseLevel", &G4ParticleDefinition::GetVerboseLevel)
94  .def("SetApplyCutsFlag", &G4ParticleDefinition::SetApplyCutsFlag)
95  .def("GetApplyCutsFlag", &G4ParticleDefinition::GetApplyCutsFlag)
96  ;
97 }
void SetDecayTable(G4DecayTable *aDecayTable)
void SetPDGStable(const G4bool aFlag)
void SetProcessManager(G4ProcessManager *aProcessManager)
G4double GetPDGIsospin3() const
G4double GetPDGIsospin() const
G4int GetVerboseLevel() const
G4bool GetPDGStable() const
void SetPDGLifeTime(G4double aLifeTime)
G4int GetAntiQuarkContent(G4int flavor) const
const G4String & GetParticleSubType() const
const G4String & GetParticleName() const
G4int GetAtomicNumber() const
G4int GetAntiPDGEncoding() const
G4ParticleTable * GetParticleTable() const
G4DecayTable * GetDecayTable() const
G4double GetPDGWidth() const
G4int GetQuarkContent(G4int flavor) const
const G4String & GetParticleType() const
void SetVerboseLevel(G4int value)
G4int GetAtomicMass() const
G4int GetPDGiConjugation() const
G4double GetPDGMass() const
G4ProcessManager * GetProcessManager() const
G4double GetPDGSpin() const
G4double GetPDGLifeTime() const
G4bool GetApplyCutsFlag() const
G4double GetPDGCharge() const

Here is the call graph for this function:

Here is the caller graph for this function: