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

Go to the source code of this file.

Namespaces

 pyG4Sphere
 

Functions

G4Sphere * pyG4Sphere::CreateSphere (const G4String &name, G4double pRmin, G4double pRmax, G4double pSPhi, G4double pDPhi, G4double pSTheta, G4double pDTheta)
 
void export_G4Sphere ()
 

Function Documentation

void export_G4Sphere ( )

Definition at line 57 of file pyG4Sphere.cc.

References pyG4Sphere::CreateSphere().

Referenced by BOOST_PYTHON_MODULE().

58 {
59  class_<G4Sphere, G4Sphere*, bases<G4VSolid> >
60  ("G4Sphere", "Sphere solid class", no_init)
61  // constructors
62  .def(init<const G4String&, G4double, G4double, G4double,
63  G4double, G4double, G4double>())
64  // ---
65  .def("GetInsideRadius", &G4Sphere::GetInsideRadius)
66  .def("GetOuterRadius", &G4Sphere::GetOuterRadius)
67  .def("GetStartPhiAngle", &G4Sphere::GetStartPhiAngle)
68  .def("GetDeltaPhiAngle", &G4Sphere::GetDeltaPhiAngle)
69  .def("GetStartThetaAngle", &G4Sphere::GetStartThetaAngle)
70  .def("GetDeltaThetaAngle", &G4Sphere::GetDeltaThetaAngle)
71  .def("SetInsideRadius", &G4Sphere::SetInsideRadius)
72  .def("SetOuterRadius", &G4Sphere::SetOuterRadius)
73  .def("SetStartPhiAngle", &G4Sphere::SetStartPhiAngle)
74  .def("SetDeltaPhiAngle", &G4Sphere::SetDeltaPhiAngle)
75  .def("SetStartThetaAngle", &G4Sphere::SetStartThetaAngle)
76  .def("SetDeltaThetaAngle", &G4Sphere::SetDeltaThetaAngle)
77  // operators
78  .def(self_ns::str(self))
79  ;
80 
81  // Create solid
82  def("CreateSphere", CreateSphere, return_value_policy<manage_new_object>());
83 
84 }
G4Sphere * CreateSphere(const G4String &name, G4double pRmin, G4double pRmax, G4double pSPhi, G4double pDPhi, G4double pSTheta, G4double pDTheta)
Definition: pyG4Sphere.cc:42