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

Go to the source code of this file.

Namespaces

 pyG4Polyhedra
 

Functions

G4Polyhedra * pyG4Polyhedra::f1_CreatePolyhedra (const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numZPlanes, const std::vector< G4double > &zPlane, const std::vector< G4double > &rInner, const std::vector< G4double > &rOuter)
 
G4Polyhedra * pyG4Polyhedra::f2_CreatePolyhedra (const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)
 
void export_G4Polyhedra ()
 

Function Documentation

void export_G4Polyhedra ( )

Definition at line 92 of file pyG4Polyhedra.cc.

References pyG4Polyhedra::f1_CreatePolyhedra(), and pyG4Polyhedra::f2_CreatePolyhedra().

Referenced by BOOST_PYTHON_MODULE().

93 {
94  class_<G4Polyhedra, G4Polyhedra*, bases<G4VSolid> >
95  ("G4Polyhedra", "Polyhedra solid class", no_init)
96  // ---
97  .def("GetStartPhi", &G4Polyhedra::GetStartPhi)
98  .def("GetEndPhi", &G4Polyhedra::GetEndPhi)
99  .def("GetNumSide", &G4Polyhedra::GetNumSide)
100  .def("GetNumRZCorner", &G4Polyhedra::GetNumRZCorner)
101  .def("IsOpen", &G4Polyhedra::IsOpen)
102  .def("IsGeneric", &G4Polyhedra::IsGeneric)
103 
104  // operators
105  .def(self_ns::str(self))
106  ;
107 
108  // Create solid
109  def("CreatePolyhedra", f1_CreatePolyhedra,
110  return_value_policy<manage_new_object>());
111  def("CreatePolyhedra", f2_CreatePolyhedra,
112  return_value_policy<manage_new_object>());
113 }
G4Polyhedra * f1_CreatePolyhedra(const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numZPlanes, const std::vector< G4double > &zPlane, const std::vector< G4double > &rInner, const std::vector< G4double > &rOuter)
G4Polyhedra * f2_CreatePolyhedra(const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)