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

References pyG4Orb::CreateOrb().

Referenced by BOOST_PYTHON_MODULE().

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