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

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

Referenced by BOOST_PYTHON_MODULE().

91 {
92  class_<G4Polycone, G4Polycone*, bases<G4VSolid> >
93  ("G4Polycone", "Polycone solid class", no_init)
94  // ---
95  .def("GetStartPhi", &G4Polycone::GetStartPhi)
96  .def("GetEndPhi", &G4Polycone::GetEndPhi)
97  .def("IsOpen", &G4Polycone::IsOpen)
98  .def("GetNumRZCorner", &G4Polycone::GetNumRZCorner)
99 
100  // operators
101  .def(self_ns::str(self))
102  ;
103 
104  // Create solid
105  def("CreatePolycone", f1_CreatePolycone,
106  return_value_policy<manage_new_object>());
107  def("CreatePolycone", f2_CreatePolycone,
108  return_value_policy<manage_new_object>());
109 
110 }
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:43
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:64