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

Go to the source code of this file.

Namespaces

 pyG4Box
 

Functions

G4Box * pyG4Box::CreateBox (const G4String &name, G4double pX, G4double pY, G4double pZ)
 
void export_G4Box ()
 

Function Documentation

void export_G4Box ( )

Definition at line 55 of file pyG4Box.cc.

References pyG4Box::CreateBox().

Referenced by BOOST_PYTHON_MODULE().

56 {
57  class_<G4Box, G4Box*, bases<G4VSolid> >
58  ("G4Box", "box solid class", no_init)
59  // constructors
60  .def(init<const G4String&, G4double, G4double, G4double>())
61  // ---
62  .def("GetXHalfLength", &G4Box::GetXHalfLength)
63  .def("GetYHalfLength", &G4Box::GetYHalfLength)
64  .def("GetZHalfLength", &G4Box::GetZHalfLength)
65  .def("SetXHalfLength", &G4Box::SetXHalfLength)
66  .def("SetYHalfLength", &G4Box::SetYHalfLength)
67  .def("SetZHalfLength", &G4Box::SetZHalfLength)
68  // operators
69  .def(self_ns::str(self))
70  ;
71 
72  // Create solid
73  def("CreateBox", CreateBox, return_value_policy<manage_new_object>());
74 
75 }
G4Box * CreateBox(const G4String &name, G4double pX, G4double pY, G4double pZ)
Definition: pyG4Box.cc:42