LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
pyG4TwistedTrd.cc File Reference
#include <boost/python.hpp>
#include "G4TwistedTrd.hh"

Go to the source code of this file.

Namespaces

 pyG4TwistedTrd
 

Functions

G4TwistedTrd * pyG4TwistedTrd::CreateTwistedTrd (const G4String &name, G4double pDx1, G4double pDx2, G4double pDy1, G4double pDy2, G4double pDz, G4double pPhiTwist)
 
void export_G4TwistedTrd ()
 

Function Documentation

void export_G4TwistedTrd ( )

Definition at line 57 of file pyG4TwistedTrd.cc.

References pyG4TwistedTrd::CreateTwistedTrd().

Referenced by BOOST_PYTHON_MODULE().

58 {
59  class_<G4TwistedTrd, G4TwistedTrd*, bases<G4VSolid> >
60  ("G4TwistedTrd", "twisted trapezoid solid class", no_init)
61  // constructors
62  .def(init<const G4String&, G4double, G4double, G4double,
63  G4double, G4double, G4double>())
64  // ---
65  .def("GetX1HalfLength", &G4TwistedTrd::GetX1HalfLength)
66  .def("GetX2HalfLength", &G4TwistedTrd::GetX2HalfLength)
67  .def("GetY1HalfLength", &G4TwistedTrd::GetY1HalfLength)
68  .def("GetY2HalfLength", &G4TwistedTrd::GetY2HalfLength)
69  .def("GetZHalfLength", &G4TwistedTrd::GetZHalfLength)
70  .def("GetPhiTwist", &G4TwistedTrd::GetPhiTwist)
71  // operators
72  .def(self_ns::str(self))
73  ;
74 
75  // Create solid
76  def("CreateTwistedTrd", CreateTwistedTrd,
77  return_value_policy<manage_new_object>());
78 
79 }
G4TwistedTrd * CreateTwistedTrd(const G4String &name, G4double pDx1, G4double pDx2, G4double pDy1, G4double pDy2, G4double pDz, G4double pPhiTwist)