32 #include <boost/python.hpp>
35 using namespace boost::python;
40 namespace pyG4PrimaryVertex {
46 using namespace pyG4PrimaryVertex;
53 class_<G4PrimaryVertex, G4PrimaryVertex*>
54 (
"G4PrimaryVertex",
"primary vertex")
56 .def(init<G4double, G4double, G4double, G4double>())
57 .def(init<G4ThreeVector, G4double>())
65 return_value_policy<return_by_value>())
72 return_internal_reference<>(), f_GetPrimary())
G4int GetNumberOfParticle() const
G4ThreeVector GetPosition() const
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume, CreateTubeVolume, 4, 6) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume
void SetWeight(G4double w)
G4double GetWeight() const
G4PrimaryParticle * GetPrimary(G4int i=0) const
void SetPrimary(G4PrimaryParticle *pp)
void export_G4PrimaryVertex()