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

References pyG4Ellipsoid::CreateEllipsoid().

Referenced by BOOST_PYTHON_MODULE().

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