32 #include <boost/python.hpp> 43 G4double pRtor, G4double pSPhi, G4double pDPhi)
45 return new G4Torus(name, pRmin, pRmax, pRtor, pSPhi, pDPhi);
57 class_<G4Torus, G4Torus*, bases<G4VSolid> >
58 (
"G4Torus",
"Torus solid class", no_init)
60 .def(init<
const G4String&, G4double, G4double, G4double,
61 G4double, G4double>())
63 .def(
"GetRmin", &G4Torus::GetRmin)
64 .def(
"GetRmax", &G4Torus::GetRmax)
65 .def(
"GetRtor", &G4Torus::GetRtor)
66 .def(
"GetSPhi", &G4Torus::GetSPhi)
67 .def(
"GetDPhi", &G4Torus::GetDPhi)
69 .def(self_ns::str(
self))
73 def(
"CreateTorus",
CreateTorus, return_value_policy<manage_new_object>());
G4Torus * CreateTorus(const G4String &name, G4double pRmin, G4double pRmax, G4double pRtor, G4double pSPhi, G4double pDPhi)