LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pyG4Cons.cc File Reference
#include <boost/python.hpp>
#include "G4Cons.hh"

Go to the source code of this file.

Namespaces

 pyG4Cons
 

Functions

G4Cons * pyG4Cons::CreateCons (const G4String &name, G4double pRmin1, G4double pRmax1, G4double pRmin2, G4double pRmax2, G4double pDz, G4double pSPhi, G4double pDPhi)
 
void export_G4Cons ()
 

Function Documentation

void export_G4Cons ( )

Definition at line 55 of file pyG4Cons.cc.

References pyG4Cons::CreateCons().

Referenced by BOOST_PYTHON_MODULE().

56 {
57  class_<G4Cons, G4Cons*, bases<G4VSolid> >
58  ("G4Cons", "Cone solid class", no_init)
59  // constructors
60  .def(init<const G4String&, G4double, G4double, G4double,
61  G4double, G4double, G4double, G4double>())
62  // ---
63  .def("GetInnerRadiusMinusZ", &G4Cons::GetInnerRadiusMinusZ)
64  .def("GetOuterRadiusMinusZ", &G4Cons::GetOuterRadiusMinusZ)
65  .def("GetInnerRadiusPlusZ", &G4Cons::GetInnerRadiusPlusZ)
66  .def("GetOuterRadiusPlusZ", &G4Cons::GetOuterRadiusPlusZ)
67  .def("GetZHalfLength", &G4Cons::GetZHalfLength)
68  .def("GetStartPhiAngle", &G4Cons::GetStartPhiAngle)
69  .def("GetDeltaPhiAngle", &G4Cons::GetDeltaPhiAngle)
70  .def("SetInnerRadiusMinusZ", &G4Cons::SetInnerRadiusMinusZ)
71  .def("SetOuterRadiusMinusZ", &G4Cons::SetOuterRadiusMinusZ)
72  .def("SetInnerRadiusPlusZ", &G4Cons::SetInnerRadiusPlusZ)
73  .def("SetOuterRadiusPlusZ", &G4Cons::SetOuterRadiusPlusZ)
74  .def("SetZHalfLength", &G4Cons::SetZHalfLength)
75  .def("SetStartPhiAngle", &G4Cons::SetStartPhiAngle)
76  .def("SetDeltaPhiAngle", &G4Cons::SetDeltaPhiAngle)
77  // operators
78  .def(self_ns::str(self))
79  ;
80 
81  // Create solid
82  def("CreateCons", CreateCons, return_value_policy<manage_new_object>());
83 
84 }
G4Cons * CreateCons(const G4String &name, G4double pRmin1, G4double pRmax1, G4double pRmin2, G4double pRmax2, G4double pDz, G4double pSPhi, G4double pDPhi)
Definition: pyG4Cons.cc:41