32 #include <boost/python.hpp>
35 using namespace boost::python;
55 return new G4Trap(name, pDz, pTheta, pPhi,
56 pDy1, pDx1, pDx2, pAlp1,
57 pDy2, pDx3, pDx4, pAlp2);
63 const std::vector<G4ThreeVector>&
pt)
66 for (
G4int i=0; i<8; i++) {
70 return new G4Trap(name, ptlist);
77 return new G4Trap(name, pZ, pY, pX, pLTX);
84 return new G4Trap(name, pDx1, pDx2, pDy1, pDy2, pDz);
92 return new G4Trap(name, pDx, pDy, pDz, pAlpha, pTheta, pPhi);
97 using namespace pyG4Trap;
104 class_<G4Trap, G4Trap*, bases<G4VSolid> >
105 (
"G4Trap",
"Generic trapezoild soild class", no_init)
107 .def(init<const G4String&>())
108 .def(init<const G4String&, G4double, G4double, G4double, G4double>())
130 .def(self_ns::str(
self))
134 def(
"CreateTrap",
f1_CreateTrap, return_value_policy<manage_new_object>());
135 def(
"CreateTrap",
f2_CreateTrap, return_value_policy<manage_new_object>());
136 def(
"CreateTrap",
f3_CreateTrap, return_value_policy<manage_new_object>());
137 def(
"CreateTrap",
f4_CreateTrap, return_value_policy<manage_new_object>());
138 def(
"CreateTrap",
f5_CreateTrap, return_value_policy<manage_new_object>());
139 def(
"CreateTrap",
f6_CreateTrap, return_value_policy<manage_new_object>());
G4double GetTanAlpha1() const
G4Trap * f6_CreateTrap(const G4String &name, G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
void SetAllParameters(G4double pDz, G4double pTheta, G4double pPhi, G4double pDy1, G4double pDx1, G4double pDx2, G4double pAlp1, G4double pDy2, G4double pDx3, G4double pDx4, G4double pAlp2)
G4Trap * f1_CreateTrap(const G4String &name)
G4double GetXHalfLength1() const
G4double GetXHalfLength4() const
G4double GetZHalfLength() const
G4double GetYHalfLength2() const
G4ThreeVector GetSymAxis() const
G4double GetXHalfLength3() const
G4double GetXHalfLength2() const
G4Trap * f5_CreateTrap(const G4String &name, G4double pDx1, G4double pDx2, G4double pDy1, G4double pDy2, G4double pDz)
G4Trap * f4_CreateTrap(const G4String &name, G4double pZ, G4double pY, G4double pX, G4double pLTX)
G4Trap * f3_CreateTrap(const G4String &name, const std::vector< G4ThreeVector > &pt)
G4double GetTanAlpha2() const
G4double GetYHalfLength1() const
G4Trap * f2_CreateTrap(const G4String &name, G4double pDz, G4double pTheta, G4double pPhi, G4double pDy1, G4double pDx1, G4double pDx2, G4double pAlp1, G4double pDy2, G4double pDx3, G4double pDx4, G4double pAlp2)
TrapSidePlane GetSidePlane(G4int n) const