31 #include <boost/python.hpp> 42 G4double pDz, G4double pSPhi, G4double pDPhi )
44 return new G4Tubs(name, pRMin, pRMax, pDz, pSPhi, pDPhi);
56 class_<G4Tubs, G4Tubs*, bases<G4VSolid> >
57 (
"G4Tubs",
"Tube solid class", no_init)
59 .def(init<
const G4String&, G4double, G4double, G4double,
60 G4double, G4double>())
62 .def(
"GetInnerRadius", &G4Tubs::GetInnerRadius)
63 .def(
"GetOuterRadius", &G4Tubs::GetOuterRadius)
64 .def(
"GetZHalfLength", &G4Tubs::GetZHalfLength)
65 .def(
"GetStartPhiAngle", &G4Tubs::GetStartPhiAngle)
66 .def(
"GetDeltaPhiAngle", &G4Tubs::GetDeltaPhiAngle)
67 .def(
"SetInnerRadius", &G4Tubs::SetInnerRadius)
68 .def(
"SetOuterRadius", &G4Tubs::SetOuterRadius)
69 .def(
"SetZHalfLength", &G4Tubs::SetZHalfLength)
70 .def(
"SetStartPhiAngle", &G4Tubs::SetStartPhiAngle)
71 .def(
"SetDeltaPhiAngle", &G4Tubs::SetDeltaPhiAngle)
72 .def(
"GetRMin", &G4Tubs::GetRMin)
73 .def(
"GetRMax", &G4Tubs::GetRMax)
74 .def(
"GetDz", &G4Tubs::GetDz)
75 .def(
"GetSPhi", &G4Tubs::GetSPhi)
76 .def(
"GetDPhi", &G4Tubs::GetDPhi)
78 .def(self_ns::str(
self))
82 def(
"CreateTubs",
CreateTubs, return_value_policy<manage_new_object>());
G4Tubs * CreateTubs(const G4String &name, G4double pRMin, G4double pRMax, G4double pDz, G4double pSPhi, G4double pDPhi)