LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pyG4Tubs.cc File Reference
#include <boost/python.hpp>
#include "G4Tubs.hh"

Go to the source code of this file.

Namespaces

 pyG4Tubs
 

Functions

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

Function Documentation

void export_G4Tubs ( )

Definition at line 54 of file pyG4Tubs.cc.

References pyG4Tubs::CreateTubs().

Referenced by BOOST_PYTHON_MODULE().

55 {
56  class_<G4Tubs, G4Tubs*, bases<G4VSolid> >
57  ("G4Tubs", "Tube solid class", no_init)
58  // constructors
59  .def(init<const G4String&, G4double, G4double, G4double,
60  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  .def("GetRMin", &G4Tubs::GetRMin)
73  .def("GetRMax", &G4Tubs::GetRMax)
74  .def("GetDz", &G4Tubs::GetDz)
75  .def("GetSPhi", &G4Tubs::GetSPhi)
76  .def("GetDPhi", &G4Tubs::GetDPhi)
77  // operators
78  .def(self_ns::str(self))
79  ;
80 
81  // Create solid
82  def("CreateTubs", CreateTubs, return_value_policy<manage_new_object>());
83 
84 }
G4Tubs * CreateTubs(const G4String &name, G4double pRMin, G4double pRMax, G4double pDz, G4double pSPhi, G4double pDPhi)
Definition: pyG4Tubs.cc:41