LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 58 of file pyG4TwistedBox.cc.

References pyG4TwistedBox::CreateTwistedBox().

Referenced by BOOST_PYTHON_MODULE().

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