LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 55 of file pyG4Torus.cc.

References pyG4Torus::CreateTorus().

Referenced by BOOST_PYTHON_MODULE().

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