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

References pyG4Box::CreateBox().

Referenced by BOOST_PYTHON_MODULE().

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