LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 56 of file pyG4TwistedTrd.cc.

References pyG4TwistedTrd::CreateTwistedTrd().

Referenced by BOOST_PYTHON_MODULE().

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