31 #include <boost/python.hpp> 32 #include "G4Polycone.hh" 44 G4double phiTotal, G4int numZPlanes,
45 const std::vector<G4double>& zPlane,
46 const std::vector<G4double>& rInner,
47 const std::vector<G4double>& rOuter)
49 G4double zlist[numZPlanes];
50 G4double r0list[numZPlanes];
51 G4double r1list[numZPlanes];
53 for (G4int i=0; i< numZPlanes; i++) {
59 return new G4Polycone(name, phiStart, phiTotal, numZPlanes,
60 zlist, r0list, r1list);
65 G4double phiTotal, G4int numRZ,
66 const std::vector<G4double>&
r,
67 const std::vector<G4double>&
z)
69 G4double zlist[numRZ];
70 G4double rlist[numRZ];
72 for (G4int i=0; i< numRZ; i++) {
77 return new G4Polycone(name, phiStart, phiTotal, numRZ,
92 class_<G4Polycone, G4Polycone*, bases<G4VSolid> >
93 (
"G4Polycone",
"Polycone solid class", no_init)
95 .def(
"GetStartPhi", &G4Polycone::GetStartPhi)
96 .def(
"GetEndPhi", &G4Polycone::GetEndPhi)
97 .def(
"IsOpen", &G4Polycone::IsOpen)
98 .def(
"GetNumRZCorner", &G4Polycone::GetNumRZCorner)
101 .def(self_ns::str(
self))
106 return_value_policy<manage_new_object>());
108 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)