32 #include <boost/python.hpp> 33 #include "G4Polycone.hh" 45 G4double phiTotal, G4int numZPlanes,
46 const std::vector<G4double>& zPlane,
47 const std::vector<G4double>& rInner,
48 const std::vector<G4double>& rOuter)
50 G4double zlist[numZPlanes];
51 G4double r0list[numZPlanes];
52 G4double r1list[numZPlanes];
54 for (G4int i=0; i< numZPlanes; i++) {
60 return new G4Polycone(name, phiStart, phiTotal, numZPlanes,
61 zlist, r0list, r1list);
66 G4double phiTotal, G4int numRZ,
67 const std::vector<G4double>& r,
68 const std::vector<G4double>&
z)
70 G4double zlist[numRZ];
71 G4double rlist[numRZ];
73 for (G4int i=0; i< numRZ; i++) {
78 return new G4Polycone(name, phiStart, phiTotal, numRZ,
93 class_<G4Polycone, G4Polycone*, bases<G4VSolid> >
94 (
"G4Polycone",
"Polycone solid class", no_init)
96 .def(
"GetStartPhi", &G4Polycone::GetStartPhi)
97 .def(
"GetEndPhi", &G4Polycone::GetEndPhi)
98 .def(
"IsOpen", &G4Polycone::IsOpen)
99 .def(
"GetNumRZCorner", &G4Polycone::GetNumRZCorner)
102 .def(self_ns::str(
self))
107 return_value_policy<manage_new_object>());
109 return_value_policy<manage_new_object>());
G4Polycone * f1_CreatePolycone(const G4String &name, G4double phiStart, G4double phiTotal, G4int numZPlanes, const std::vector< G4double > &zPlane, const std::vector< G4double > &rInner, const std::vector< G4double > &rOuter)
G4Polycone * f2_CreatePolycone(const G4String &name, G4double phiStart, G4double phiTotal, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)