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

Go to the source code of this file.

Namespaces

 pyG4Polycone
 

Functions

G4Polycone * pyG4Polycone::f1_CreatePolycone (const G4String &name, G4double phiStart, G4double phiTotal, G4int numZPlanes, const std::vector< G4double > &zPlane, const std::vector< G4double > &rInner, const std::vector< G4double > &rOuter)
 
G4Polycone * pyG4Polycone::f2_CreatePolycone (const G4String &name, G4double phiStart, G4double phiTotal, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)
 
void export_G4Polycone ()
 

Function Documentation

void export_G4Polycone ( )

Definition at line 91 of file pyG4Polycone.cc.

References pyG4Polycone::f1_CreatePolycone(), and pyG4Polycone::f2_CreatePolycone().

Referenced by BOOST_PYTHON_MODULE().

92 {
93  class_<G4Polycone, G4Polycone*, bases<G4VSolid> >
94  ("G4Polycone", "Polycone solid class", no_init)
95  // ---
96  .def("GetStartPhi", &G4Polycone::GetStartPhi)
97  .def("GetEndPhi", &G4Polycone::GetEndPhi)
98  .def("IsOpen", &G4Polycone::IsOpen)
99  .def("GetNumRZCorner", &G4Polycone::GetNumRZCorner)
100 
101  // operators
102  .def(self_ns::str(self))
103  ;
104 
105  // Create solid
106  def("CreatePolycone", f1_CreatePolycone,
107  return_value_policy<manage_new_object>());
108  def("CreatePolycone", f2_CreatePolycone,
109  return_value_policy<manage_new_object>());
110 
111 }
G4Polycone * f1_CreatePolycone(const G4String &name, G4double phiStart, G4double phiTotal, G4int numZPlanes, const std::vector< G4double > &zPlane, const std::vector< G4double > &rInner, const std::vector< G4double > &rOuter)
Definition: pyG4Polycone.cc:44
G4Polycone * f2_CreatePolycone(const G4String &name, G4double phiStart, G4double phiTotal, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)
Definition: pyG4Polycone.cc:65