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

Go to the source code of this file.

Namespaces

 pyG4Orb
 

Functions

G4Orb * pyG4Orb::CreateOrb (const G4String &name, G4double pRmax)
 
void export_G4Orb ()
 

Function Documentation

void export_G4Orb ( )

Definition at line 54 of file pyG4Orb.cc.

References pyG4Orb::CreateOrb().

Referenced by BOOST_PYTHON_MODULE().

55 {
56  class_<G4Orb, G4Orb*, bases<G4VSolid> >
57  ("G4Orb", "Orb solid class", no_init)
58  // constructors
59  .def(init<const G4String&, G4double>())
60  // ---
61  .def("GetRadius", &G4Orb::GetRadius)
62  .def("SetRadius", &G4Orb::SetRadius)
63  // operators
64  .def(self_ns::str(self))
65  ;
66 
67  // Create solid
68  def("CreateOrb", CreateOrb, return_value_policy<manage_new_object>());
69 
70 }
G4Orb * CreateOrb(const G4String &name, G4double pRmax)
Definition: pyG4Orb.cc:42