Geant4-11
Namespaces | Functions
pyG4Trap.cc File Reference
#include <boost/python.hpp>
#include "G4Trap.hh"

Go to the source code of this file.

Namespaces

namespace  pyG4Trap
 

Functions

void export_G4Trap ()
 
G4TrappyG4Trap::f1_CreateTrap (const G4String &name)
 
G4TrappyG4Trap::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)
 
G4TrappyG4Trap::f3_CreateTrap (const G4String &name, const std::vector< G4ThreeVector > &pt)
 
G4TrappyG4Trap::f4_CreateTrap (const G4String &name, G4double pZ, G4double pY, G4double pX, G4double pLTX)
 
G4TrappyG4Trap::f5_CreateTrap (const G4String &name, G4double pDx1, G4double pDx2, G4double pDy1, G4double pDy2, G4double pDz)
 
G4TrappyG4Trap::f6_CreateTrap (const G4String &name, G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
 

Function Documentation

◆ export_G4Trap()

void export_G4Trap ( )

Definition at line 101 of file pyG4Trap.cc.

102{
103 class_<G4Trap, G4Trap*, bases<G4VSolid> >
104 ("G4Trap", "Generic trapezoild soild class", no_init)
105 // constructors
106 .def(init<const G4String&>())
107 .def(init<const G4String&, G4double, G4double, G4double, G4double>())
108 .def(init<const G4String&, G4double, G4double, G4double,
109 G4double, G4double>())
110 .def(init<const G4String&, G4double, G4double, G4double,
112 .def(init<const G4String&, G4double, G4double, G4double,
115 // ---
116 .def("GetZHalfLength", &G4Trap::GetZHalfLength)
117 .def("GetYHalfLength1", &G4Trap::GetYHalfLength1)
118 .def("GetXHalfLength1", &G4Trap::GetXHalfLength1)
119 .def("GetXHalfLength2", &G4Trap::GetXHalfLength2)
120 .def("GetTanAlpha1", &G4Trap::GetTanAlpha1)
121 .def("GetYHalfLength2", &G4Trap::GetYHalfLength2)
122 .def("GetXHalfLength3", &G4Trap::GetXHalfLength3)
123 .def("GetXHalfLength4", &G4Trap::GetXHalfLength4)
124 .def("GetTanAlpha2", &G4Trap::GetTanAlpha2)
125 .def("GetSidePlane", &G4Trap::GetSidePlane)
126 .def("GetSymAxis", &G4Trap::GetSymAxis)
127 .def("SetAllParameters", &G4Trap::SetAllParameters)
128 // operators
129 .def(self_ns::str(self))
130 ;
131
132 // Create solid
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>());
139
140}
double G4double
Definition: G4Types.hh:83
G4double GetYHalfLength1() const
void SetAllParameters(G4double pDz, G4double pTheta, G4double pPhi, G4double pDy1, G4double pDx1, G4double pDx2, G4double pAlp1, G4double pDy2, G4double pDx3, G4double pDx4, G4double pAlp2)
Definition: G4Trap.cc:282
G4double GetTanAlpha2() const
G4double GetXHalfLength2() const
G4ThreeVector GetSymAxis() const
G4double GetXHalfLength4() const
G4double GetZHalfLength() const
G4double GetYHalfLength2() const
G4double GetTanAlpha1() const
TrapSidePlane GetSidePlane(G4int n) const
G4double GetXHalfLength3() const
G4double GetXHalfLength1() const
G4Trap * f3_CreateTrap(const G4String &name, const std::vector< G4ThreeVector > &pt)
Definition: pyG4Trap.cc:61
G4Trap * f6_CreateTrap(const G4String &name, G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
Definition: pyG4Trap.cc:87
G4Trap * f5_CreateTrap(const G4String &name, G4double pDx1, G4double pDx2, G4double pDy1, G4double pDy2, G4double pDz)
Definition: pyG4Trap.cc:80
G4Trap * f4_CreateTrap(const G4String &name, G4double pZ, G4double pY, G4double pX, G4double pLTX)
Definition: pyG4Trap.cc:73
G4Trap * f1_CreateTrap(const G4String &name)
Definition: pyG4Trap.cc:41
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)
Definition: pyG4Trap.cc:47

References pyG4Trap::f1_CreateTrap(), pyG4Trap::f2_CreateTrap(), pyG4Trap::f3_CreateTrap(), pyG4Trap::f4_CreateTrap(), pyG4Trap::f5_CreateTrap(), pyG4Trap::f6_CreateTrap(), G4Trap::GetSidePlane(), G4Trap::GetSymAxis(), G4Trap::GetTanAlpha1(), G4Trap::GetTanAlpha2(), G4Trap::GetXHalfLength1(), G4Trap::GetXHalfLength2(), G4Trap::GetXHalfLength3(), G4Trap::GetXHalfLength4(), G4Trap::GetYHalfLength1(), G4Trap::GetYHalfLength2(), G4Trap::GetZHalfLength(), and G4Trap::SetAllParameters().

Referenced by BOOST_PYTHON_MODULE().