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

Go to the source code of this file.

Namespaces

 pyG4Ellipsoid
 

Functions

G4Ellipsoid * pyG4Ellipsoid::CreateEllipsoid (const G4String &name, G4double pxSemiAxis, G4double pySemiAxis, G4double pzSemiAxis, G4double pzBottomCut=0, G4double pzTopCut=0)
 
void export_G4Ellipsoid ()
 

Function Documentation

void export_G4Ellipsoid ( )

Definition at line 62 of file pyG4Ellipsoid.cc.

References pyG4Ellipsoid::CreateEllipsoid().

Referenced by BOOST_PYTHON_MODULE().

63 {
64  class_<G4Ellipsoid, G4Ellipsoid*, bases<G4VSolid> >
65  ("G4Ellipsoid", "ellipsoid class", no_init)
66  // constructors
67  .def(init<const G4String&, G4double, G4double, G4double>())
68  .def(init<const G4String&, G4double, G4double, G4double, G4double>())
69  .def(init<const G4String&, G4double, G4double, G4double, G4double,
70  G4double>())
71  // ---
72  .def("GetSemiAxisMax", &G4Ellipsoid::GetSemiAxisMax)
73  .def("GetZBottomCut", &G4Ellipsoid::GetZBottomCut)
74  .def("GetZTopCut", &G4Ellipsoid::GetZTopCut)
75  .def("SetSemiAxis", &G4Ellipsoid::SetSemiAxis)
76  .def("SetZCuts", &G4Ellipsoid::SetZCuts)
77  // operators
78  .def(self_ns::str(self))
79  ;
80 
81  // Create solid
82  def("CreateEllipsoid", CreateEllipsoid,
83  f_CreateEllipsoid()[return_value_policy<manage_new_object>()]);
84 }
G4Ellipsoid * CreateEllipsoid(const G4String &name, G4double pxSemiAxis, G4double pySemiAxis, G4double pzSemiAxis, G4double pzBottomCut=0, G4double pzTopCut=0)