32 #include <boost/python.hpp> 33 #include "G4Version.hh" 34 #include "G4DynamicParticle.hh" 35 #include "G4PrimaryParticle.hh" 44 class_<G4DynamicParticle, G4DynamicParticle*>
45 (
"G4DynamicParticle",
"dynamic particle")
47 .def(
"GetMomentumDirection", &G4DynamicParticle::GetMomentumDirection,
48 return_value_policy<return_by_value>())
49 .def(
"GetMomentum", &G4DynamicParticle::GetMomentum,
50 return_value_policy<return_by_value>())
53 .def(
"GetTotalMomentum", &G4DynamicParticle::GetTotalMomentum)
54 .def(
"GetTotalEnergy", &G4DynamicParticle::GetTotalEnergy)
55 .def(
"GetKineticEnergy", &G4DynamicParticle::GetKineticEnergy)
56 .def(
"GetProperTime", &G4DynamicParticle::GetProperTime)
57 .def(
"GetPolarization", &G4DynamicParticle::GetPolarization,
58 return_value_policy<return_by_value>())
59 .def(
"GetMass", &G4DynamicParticle::GetMass)
60 .def(
"GetCharge", &G4DynamicParticle::GetCharge)
63 .def(
"GetTotalOccupancy", &G4DynamicParticle::GetTotalOccupancy)
64 .def(
"GetOccupancy", &G4DynamicParticle::GetOccupancy)
65 .def(
"GetDefinition", &G4DynamicParticle::GetDefinition,
66 return_internal_reference<>())
67 .def(
"GetPreAssignedDecayProperTime",
68 &G4DynamicParticle::GetPreAssignedDecayProperTime)
69 .def(
"DumpInfo", &G4DynamicParticle::DumpInfo)
70 .def(
"SetVerboseLevel", &G4DynamicParticle::SetVerboseLevel)
71 .def(
"GetVerboseLevel", &G4DynamicParticle::GetVerboseLevel)
72 .def(
"GetPrimaryParticle", &G4DynamicParticle::GetPrimaryParticle,
73 return_internal_reference<>())
74 .def(
"GetPDGcode", &G4DynamicParticle::GetPDGcode)
void export_G4DynamicParticle()