LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 56 of file pyG4Para.cc.

References pyG4Para::CreatePara().

Referenced by BOOST_PYTHON_MODULE().

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