Geant4-11
Namespaces | Functions
pyG4Polycone.cc File Reference
#include <boost/python.hpp>
#include <memory>
#include "G4Polycone.hh"

Go to the source code of this file.

Namespaces

namespace  pyG4Polycone
 

Functions

void export_G4Polycone ()
 
G4PolyconepyG4Polycone::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)
 
G4PolyconepyG4Polycone::f2_CreatePolycone (const G4String &name, G4double phiStart, G4double phiTotal, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)
 

Function Documentation

◆ export_G4Polycone()

void export_G4Polycone ( )

Definition at line 91 of file pyG4Polycone.cc.

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}
G4double GetEndPhi() const
G4double GetStartPhi() const
G4bool IsOpen() const
G4int GetNumRZCorner() const
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

References pyG4Polycone::f1_CreatePolycone(), pyG4Polycone::f2_CreatePolycone(), G4Polycone::GetEndPhi(), G4Polycone::GetNumRZCorner(), G4Polycone::GetStartPhi(), and G4Polycone::IsOpen().

Referenced by BOOST_PYTHON_MODULE().