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

Go to the source code of this file.

Namespaces

 pyG4Torus
 

Functions

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

Function Documentation

void export_G4Torus ( )

Definition at line 54 of file pyG4Torus.cc.

References pyG4Torus::CreateTorus().

Referenced by BOOST_PYTHON_MODULE().

55 {
56  class_<G4Torus, G4Torus*, bases<G4VSolid> >
57  ("G4Torus", "Torus solid class", no_init)
58  // constructors
59  .def(init<const G4String&, G4double, G4double, G4double,
60  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 }
G4Torus * CreateTorus(const G4String &name, G4double pRmin, G4double pRmax, G4double pRtor, G4double pSPhi, G4double pDPhi)
Definition: pyG4Torus.cc:41