33 #include <boost/python.hpp>
36 using namespace boost::python;
56 return new G4Trap(name, pDz, pTheta, pPhi,
57 pDy1, pDx1, pDx2, pAlp1,
58 pDy2, pDx3, pDx4, pAlp2);
64 const std::vector<G4ThreeVector>&
pt)
67 for (
G4int i=0; i<8; i++) {
71 return new G4Trap(name, ptlist);
78 return new G4Trap(name, pZ, pY, pX, pLTX);
85 return new G4Trap(name, pDx1, pDx2, pDy1, pDy2, pDz);
93 return new G4Trap(name, pDx, pDy, pDz, pAlpha, pTheta, pPhi);
98 using namespace pyG4Trap;
105 class_<G4Trap, G4Trap*, bases<G4VSolid> >
106 (
"G4Trap",
"Generic trapezoild soild class", no_init)
108 .def(init<const G4String&>())
109 .def(init<const G4String&, G4double, G4double, G4double, G4double>())
131 .def(self_ns::str(
self))
135 def(
"CreateTrap",
f1_CreateTrap, return_value_policy<manage_new_object>());
136 def(
"CreateTrap",
f2_CreateTrap, return_value_policy<manage_new_object>());
137 def(
"CreateTrap",
f3_CreateTrap, return_value_policy<manage_new_object>());
138 def(
"CreateTrap",
f4_CreateTrap, return_value_policy<manage_new_object>());
139 def(
"CreateTrap",
f5_CreateTrap, return_value_policy<manage_new_object>());
140 def(
"CreateTrap",
f6_CreateTrap, return_value_policy<manage_new_object>());