32 #include <boost/python.hpp> 33 #include "G4PrimaryVertex.hh" 53 class_<G4PrimaryVertex, G4PrimaryVertex*>
54 (
"G4PrimaryVertex",
"primary vertex")
56 .def(init<G4double, G4double, G4double, G4double>())
57 .def(init<G4ThreeVector, G4double>())
59 .add_property(
"X0", &G4PrimaryVertex::GetX0)
60 .add_property(
"Y0", &G4PrimaryVertex::GetY0)
61 .add_property(
"Z0", &G4PrimaryVertex::GetZ0)
62 .add_property(
"T0", &G4PrimaryVertex::GetT0)
64 .def(
"GetPosition", &G4PrimaryVertex::GetPosition,
65 return_value_policy<return_by_value>())
66 .def(
"GetX0", &G4PrimaryVertex::GetX0)
67 .def(
"GetY0", &G4PrimaryVertex::GetY0)
68 .def(
"GetZ0", &G4PrimaryVertex::GetZ0)
69 .def(
"GetT0", &G4PrimaryVertex::GetT0)
70 .def(
"GetNumberOfParticle", &G4PrimaryVertex::GetNumberOfParticle)
71 .def(
"GetPrimary", &G4PrimaryVertex::GetPrimary,
72 return_internal_reference<>(), f_GetPrimary())
73 .def(
"SetPrimary", &G4PrimaryVertex::SetPrimary)
74 .def(
"GetWeight", &G4PrimaryVertex::GetWeight)
75 .def(
"SetWeight", &G4PrimaryVertex::SetWeight)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
void export_G4PrimaryVertex()
void Print(G4Element &ele)