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

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

Referenced by BOOST_PYTHON_MODULE().

92 {
93  class_<G4Polyhedra, G4Polyhedra*, bases<G4VSolid> >
94  ("G4Polyhedra", "Polyhedra solid class", no_init)
95  // ---
96  .def("GetStartPhi", &G4Polyhedra::GetStartPhi)
97  .def("GetEndPhi", &G4Polyhedra::GetEndPhi)
98  .def("GetNumSide", &G4Polyhedra::GetNumSide)
99  .def("GetNumRZCorner", &G4Polyhedra::GetNumRZCorner)
100  .def("IsOpen", &G4Polyhedra::IsOpen)
101  .def("IsGeneric", &G4Polyhedra::IsGeneric)
102 
103  // operators
104  .def(self_ns::str(self))
105  ;
106 
107  // Create solid
108  def("CreatePolyhedra", f1_CreatePolyhedra,
109  return_value_policy<manage_new_object>());
110  def("CreatePolyhedra", f2_CreatePolyhedra,
111  return_value_policy<manage_new_object>());
112 }
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)