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

Go to the source code of this file.

Namespaces

 pyG4RotationMatrix
 

Typedefs

typedef G4RotationMatrix XXX
 

Functions

void export_G4RotationMatrix ()
 

Variables

XXX &(XXX::* pyG4RotationMatrix::f1_rotate )(G4double, const G4ThreeVector &) = &XXX::rotate
 
XXX &(XXX::* pyG4RotationMatrix::f2_rotate )(G4double, const G4ThreeVector *) = &XXX::rotate
 

Typedef Documentation

typedef G4RotationMatrix XXX

Definition at line 36 of file pyG4RotationMatrix.cc.

Function Documentation

void export_G4RotationMatrix ( )

Definition at line 53 of file pyG4RotationMatrix.cc.

References pyG4RotationMatrix::f1_rotate, pyG4RotationMatrix::f2_rotate, trkf::invert(), xx, and zz.

Referenced by BOOST_PYTHON_MODULE().

54 {
55  class_<G4RotationMatrix>("G4RotationMatrix", "rotation matrix")
56  // constructors
57  .def(init<const XXX&>())
58 
59  // property
60  .add_property("xx", &XXX::xx)
61  .add_property("xy", &XXX::xy)
62  .add_property("xz", &XXX::xz)
63  .add_property("yx", &XXX::yx)
64  .add_property("yy", &XXX::yy)
65  .add_property("yz", &XXX::yz)
66  .add_property("zx", &XXX::zx)
67  .add_property("zy", &XXX::zy)
68  .add_property("zz", &XXX::zz)
69  .def_readonly("IDENTITY", &XXX::IDENTITY)
70 
71  // methods
72  .def("colX", &XXX::colX)
73  .def("colY", &XXX::colY)
74  .def("colZ", &XXX::colZ)
75  .def("rowX", &XXX::rowX)
76  .def("rowY", &XXX::rowY)
77  .def("rowZ", &XXX::rowZ)
78  .def("getPhi", &XXX::getPhi)
79  .def("getTheta", &XXX::getTheta)
80  .def("getPsi", &XXX::getPsi)
81  .def("phi", &XXX::phi)
82  .def("theta", &XXX::theta)
83  .def("psi", &XXX::psi)
84  .def("getDelta", &XXX::getDelta)
85  .def("getAxis", &XXX::getAxis)
86  .def("delta", &XXX::axis)
87  .def("axis", &XXX::delta)
88  .def("phiX", &XXX::phiX)
89  .def("phiY", &XXX::phiY)
90  .def("phiZ", &XXX::phiZ)
91  .def("thetaX", &XXX::thetaX)
92  .def("thetaY", &XXX::thetaY)
93  .def("thetaZ", &XXX::thetaZ)
94  .def("setPhi", &XXX::setPhi)
95  .def("setTheta", &XXX::setTheta)
96  .def("setPsi", &XXX::setPsi)
97  .def("setAxis", &XXX::setAxis)
98  .def("setDelta", &XXX::setDelta)
99  .def("isIdentity", &XXX::isIdentity)
100  .def("rotateX", &XXX::rotateX,
101  return_value_policy<reference_existing_object>())
102  .def("rotateY", &XXX::rotateY,
103  return_value_policy<reference_existing_object>())
104  .def("rotateZ", &XXX::rotateZ,
105  return_value_policy<reference_existing_object>())
106  .def("rotate", f1_rotate,
107  return_value_policy<reference_existing_object>())
108  .def("rotate", f2_rotate,
109  return_value_policy<reference_existing_object>())
110  .def("rotateAxes", &XXX::rotateAxes,
111  return_value_policy<reference_existing_object>())
112  .def("inverse", &XXX::inverse)
113  .def("invert", &XXX::invert,
114  return_value_policy<reference_existing_object>())
115 
116  // operators
117  .def(self_ns::str(self))
118  .def(self == self)
119  .def(self != self)
120  .def(self > self)
121  .def(self < self)
122  .def(self >= self)
123  .def(self <= self)
124  .def(self * self)
125  .def(self * G4ThreeVector())
126  .def(self *= self)
127  ;
128 }
Double_t xx
Definition: macro.C:12
XXX &(XXX::* f2_rotate)(G4double, const G4ThreeVector *)
Double_t zz
Definition: plot.C:276
XXX &(XXX::* f1_rotate)(G4double, const G4ThreeVector &)
bool invert(ublas::matrix< T, L, A > &m)