31 #include <boost/python.hpp>
34 using namespace boost::python;
54 return new G4Trap(name, pDz, pTheta, pPhi,
55 pDy1, pDx1, pDx2, pAlp1,
56 pDy2, pDx3, pDx4, pAlp2);
62 const std::vector<G4ThreeVector>&
pt)
65 for (
G4int i=0; i<8; i++) {
69 return new G4Trap(name, ptlist);
76 return new G4Trap(name, pZ, pY, pX, pLTX);
83 return new G4Trap(name, pDx1, pDx2, pDy1, pDy2, pDz);
91 return new G4Trap(name, pDx, pDy, pDz, pAlpha, pTheta, pPhi);
96 using namespace pyG4Trap;
103 class_<G4Trap, G4Trap*, bases<G4VSolid> >
104 (
"G4Trap",
"Generic trapezoild soild class", no_init)
106 .def(init<const G4String&>())
107 .def(init<const G4String&, G4double, G4double, G4double, G4double>())
129 .def(self_ns::str(
self))
133 def(
"CreateTrap",
f1_CreateTrap, return_value_policy<manage_new_object>());
134 def(
"CreateTrap",
f2_CreateTrap, return_value_policy<manage_new_object>());
135 def(
"CreateTrap",
f3_CreateTrap, return_value_policy<manage_new_object>());
136 def(
"CreateTrap",
f4_CreateTrap, return_value_policy<manage_new_object>());
137 def(
"CreateTrap",
f5_CreateTrap, return_value_policy<manage_new_object>());
138 def(
"CreateTrap",
f6_CreateTrap, return_value_policy<manage_new_object>());