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

Go to the source code of this file.

Namespaces

namespace  pyG4Torus
 

Functions

G4ToruspyG4Torus::CreateTorus (const G4String &name, G4double pRmin, G4double pRmax, G4double pRtor, G4double pSPhi, G4double pDPhi)
 
void export_G4Torus ()
 

Function Documentation

◆ export_G4Torus()

void export_G4Torus ( )

Definition at line 54 of file pyG4Torus.cc.

55{
56 class_<G4Torus, G4Torus*, bases<G4VSolid> >
57 ("G4Torus", "Torus solid class", no_init)
58 // constructors
59 .def(init<const G4String&, G4double, G4double, G4double,
61 // ---
62 .def("GetRmin", &G4Torus::GetRmin)
63 .def("GetRmax", &G4Torus::GetRmax)
64 .def("GetRtor", &G4Torus::GetRtor)
65 .def("GetSPhi", &G4Torus::GetSPhi)
66 .def("GetDPhi", &G4Torus::GetDPhi)
67 // operators
68 .def(self_ns::str(self))
69 ;
70
71 // Create solid
72 def("CreateTorus", CreateTorus, return_value_policy<manage_new_object>());
73}
double G4double
Definition: G4Types.hh:83
G4double GetDPhi() const
G4double GetRmin() const
G4double GetRtor() const
G4double GetRmax() const
G4double GetSPhi() const
G4Torus * CreateTorus(const G4String &name, G4double pRmin, G4double pRmax, G4double pRtor, G4double pSPhi, G4double pDPhi)
Definition: pyG4Torus.cc:41

References pyG4Torus::CreateTorus(), G4Torus::GetDPhi(), G4Torus::GetRmax(), G4Torus::GetRmin(), G4Torus::GetRtor(), and G4Torus::GetSPhi().

Referenced by BOOST_PYTHON_MODULE().