LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pyG4ParticleDefinition.cc File Reference
#include <boost/python.hpp>
#include "G4Version.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4DecayTable.hh"
#include "G4ProcessManager.hh"

Go to the source code of this file.

Functions

void export_G4ParticleDefinition ()
 

Function Documentation

void export_G4ParticleDefinition ( )

Definition at line 43 of file pyG4ParticleDefinition.cc.

Referenced by BOOST_PYTHON_MODULE().

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