LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 56 of file pyG4EllipticalTube.cc.

References pyG4EllipticalTube::CreateEllipticalTube().

Referenced by BOOST_PYTHON_MODULE().

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