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