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

Go to the source code of this file.

Namespaces

 pyG4TwistedBox
 

Functions

G4TwistedBox * pyG4TwistedBox::CreateTwistedBox (const G4String &name, G4double pPhiTwist, G4double pDx, G4double pDy, G4double pDz)
 
void export_G4TwistedBox ()
 

Function Documentation

void export_G4TwistedBox ( )

Definition at line 57 of file pyG4TwistedBox.cc.

References pyG4TwistedBox::CreateTwistedBox().

Referenced by BOOST_PYTHON_MODULE().

58 {
59  class_<G4TwistedBox, G4TwistedBox*, bases<G4VSolid> >
60  ("G4TwistedBox", "twisted box solid class", no_init)
61  // constructors
62  .def(init<const G4String&, G4double, G4double, G4double, G4double>())
63  // ---
64  .def("GetXHalfLength", &G4TwistedBox::GetXHalfLength)
65  .def("GetYHalfLength", &G4TwistedBox::GetYHalfLength)
66  .def("GetZHalfLength", &G4TwistedBox::GetZHalfLength)
67  .def("GetPhiTwist", &G4TwistedBox::GetPhiTwist)
68  // operators
69  .def(self_ns::str(self))
70  ;
71 
72  // Create solid
73  def("CreateTwistedBox", CreateTwistedBox,
74  return_value_policy<manage_new_object>());
75 
76 }
G4TwistedBox * CreateTwistedBox(const G4String &name, G4double pPhiTwist, G4double pDx, G4double pDy, G4double pDz)