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

Go to the source code of this file.

Namespaces

 pyG4Para
 

Functions

G4Para * pyG4Para::CreatePara (const G4String &name, G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
 
void export_G4Para ()
 

Function Documentation

void export_G4Para ( )

Definition at line 55 of file pyG4Para.cc.

References pyG4Para::CreatePara().

Referenced by BOOST_PYTHON_MODULE().

56 {
57  class_<G4Para, G4Para*, bases<G4VSolid> >
58  ("G4Para", "Skewed box sold class", no_init)
59  // constructors
60  .def(init<const G4String&, G4double, G4double, G4double,
61  G4double, G4double, G4double>())
62  // ---
63  .def("GetZHalfLength", &G4Para::GetZHalfLength)
64  .def("GetSymAxis", &G4Para::GetSymAxis)
65  .def("GetYHalfLength", &G4Para::GetYHalfLength)
66  .def("GetXHalfLength", &G4Para::GetXHalfLength)
67  .def("GetTanAlpha", &G4Para::GetTanAlpha)
68  .def("SetXHalfLength", &G4Para::SetXHalfLength)
69  .def("SetYHalfLength", &G4Para::SetYHalfLength)
70  .def("SetZHalfLength", &G4Para::SetZHalfLength)
71  .def("SetAlpha", &G4Para::SetAlpha)
72  .def("SetTanAlpha", &G4Para::SetTanAlpha)
73  .def("SetThetaAndPhi", &G4Para::SetThetaAndPhi)
74  .def("SetAllParameters", &G4Para::SetAllParameters)
75  // operators
76  .def(self_ns::str(self))
77  ;
78 
79  // Create solid
80  def("CreatePara", CreatePara, return_value_policy<manage_new_object>());
81 }
G4Para * CreatePara(const G4String &name, G4double pDx, G4double pDy, G4double pDz, G4double pAlpha, G4double pTheta, G4double pPhi)
Definition: pyG4Para.cc:41