LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
pyG4EllipticalTube.cc File Reference
#include <boost/python.hpp>
#include "G4EllipticalTube.hh"

Go to the source code of this file.

Namespaces

 pyG4EllipticalTube
 

Functions

G4EllipticalTube * pyG4EllipticalTube::CreateEllipticalTube (const G4String &name, G4double theDx, G4double theDy, G4double theDz)
 
void export_G4EllipticalTube ()
 

Function Documentation

void export_G4EllipticalTube ( )

Definition at line 57 of file pyG4EllipticalTube.cc.

References pyG4EllipticalTube::CreateEllipticalTube().

Referenced by BOOST_PYTHON_MODULE().

58 {
59  class_<G4EllipticalTube, G4EllipticalTube*, bases<G4VSolid> >
60  ("G4EllipticalTube", "elliptical tube solid class", no_init)
61  // constructors
62  .def(init<const G4String&, G4double, G4double, G4double>())
63  // ---
64  .def("GetDx", &G4EllipticalTube::GetDx)
65  .def("GetDy", &G4EllipticalTube::GetDy)
66  .def("GetDz", &G4EllipticalTube::GetDz)
67  .def("SetDx", &G4EllipticalTube::SetDx)
68  .def("SetDy", &G4EllipticalTube::SetDy)
69  .def("SetDz", &G4EllipticalTube::SetDz)
70 
71  // operators
72  .def(self_ns::str(self))
73  ;
74 
75  // Create solid
76  def("CreateEllipticalTube", CreateEllipticalTube,
77  return_value_policy<manage_new_object>());
78 
79 }
G4EllipticalTube * CreateEllipticalTube(const G4String &name, G4double theDx, G4double theDy, G4double theDz)