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

Go to the source code of this file.

Typedefs

typedef G4Transform3D XXX
 

Functions

void export_G4Transform3D ()
 

Typedef Documentation

typedef G4Transform3D XXX

Definition at line 38 of file pyG4Transform3D.cc.

Function Documentation

void export_G4Transform3D ( )

Definition at line 43 of file pyG4Transform3D.cc.

References xx, and zz.

Referenced by BOOST_PYTHON_MODULE().

44 {
45  class_<G4Transform3D>("G4Transform3D", "geometrical 3D transformation")
46  // constructors
47  .def(init<const G4RotationMatrix&, const G4ThreeVector&>())
48  .def(init<const XXX&>())
49 
50  // property
51  .add_property("xx", &XXX::xx)
52  .add_property("xy", &XXX::xy)
53  .add_property("xz", &XXX::xz)
54  .add_property("yx", &XXX::yx)
55  .add_property("yy", &XXX::yy)
56  .add_property("yz", &XXX::yz)
57  .add_property("zx", &XXX::zx)
58  .add_property("zy", &XXX::zy)
59  .add_property("zz", &XXX::zz)
60  .add_property("dx", &XXX::dx)
61  .add_property("dy", &XXX::dy)
62  .add_property("dz", &XXX::dz)
63  .def_readonly("Identity", &XXX::Identity)
64 
65  // methods
66  .def("inverse", &XXX::inverse)
67  .def("getRotation" , &XXX::getRotation)
68  .def("getTranslation", &XXX::getTranslation)
69 
70  // operators
71  .def(self == self)
72  .def(self != self)
73  .def(self * self)
74  ;
75 }
Double_t xx
Definition: macro.C:12
Double_t zz
Definition: plot.C:276