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

Go to the source code of this file.

Namespaces

namespace  pyG4Tubs
 

Functions

G4TubspyG4Tubs::CreateTubs (const G4String &name, G4double pRMin, G4double pRMax, G4double pDz, G4double pSPhi, G4double pDPhi)
 
void export_G4Tubs ()
 

Function Documentation

◆ export_G4Tubs()

void export_G4Tubs ( )

Definition at line 54 of file pyG4Tubs.cc.

55{
56 class_<G4Tubs, G4Tubs*, bases<G4VSolid> >
57 ("G4Tubs", "Tube solid class", no_init)
58 // constructors
59 .def(init<const G4String&, G4double, G4double, G4double,
61 // ---
62 .def("GetInnerRadius", &G4Tubs::GetInnerRadius)
63 .def("GetOuterRadius", &G4Tubs::GetOuterRadius)
64 .def("GetZHalfLength", &G4Tubs::GetZHalfLength)
65 .def("GetStartPhiAngle", &G4Tubs::GetStartPhiAngle)
66 .def("GetDeltaPhiAngle", &G4Tubs::GetDeltaPhiAngle)
67 .def("SetInnerRadius", &G4Tubs::SetInnerRadius)
68 .def("SetOuterRadius", &G4Tubs::SetOuterRadius)
69 .def("SetZHalfLength", &G4Tubs::SetZHalfLength)
70 .def("SetStartPhiAngle", &G4Tubs::SetStartPhiAngle)
71 .def("SetDeltaPhiAngle", &G4Tubs::SetDeltaPhiAngle)
72 // operators
73 .def(self_ns::str(self))
74 ;
75
76 // Create solid
77 def("CreateTubs", CreateTubs, return_value_policy<manage_new_object>());
78
79}
double G4double
Definition: G4Types.hh:83
G4double GetZHalfLength() const
void SetDeltaPhiAngle(G4double newDPhi)
void SetStartPhiAngle(G4double newSPhi, G4bool trig=true)
G4double GetInnerRadius() const
G4double GetOuterRadius() const
G4double GetStartPhiAngle() const
void SetInnerRadius(G4double newRMin)
void SetOuterRadius(G4double newRMax)
G4double GetDeltaPhiAngle() const
void SetZHalfLength(G4double newDz)
G4Tubs * CreateTubs(const G4String &name, G4double pRMin, G4double pRMax, G4double pDz, G4double pSPhi, G4double pDPhi)
Definition: pyG4Tubs.cc:41

References pyG4Tubs::CreateTubs(), G4Tubs::GetDeltaPhiAngle(), G4Tubs::GetInnerRadius(), G4Tubs::GetOuterRadius(), G4Tubs::GetStartPhiAngle(), G4Tubs::GetZHalfLength(), G4Tubs::SetDeltaPhiAngle(), G4Tubs::SetInnerRadius(), G4Tubs::SetOuterRadius(), G4Tubs::SetStartPhiAngle(), and G4Tubs::SetZHalfLength().

Referenced by BOOST_PYTHON_MODULE().