Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4ThreeVector.cc File Reference
#include <boost/python.hpp>
#include "G4ThreeVector.hh"
#include "G4RotationMatrix.hh"
Include dependency graph for pyG4ThreeVector.cc:

Go to the source code of this file.

Namespaces

 pyG4ThreeVector
 

Typedefs

typedef G4ThreeVector XXX
 

Functions

void export_G4ThreeVector ()
 

Variables

G4double(XXX::* pyG4ThreeVector::f1_theta )() const = &XXX::theta
 
G4double(XXX::* pyG4ThreeVector::f2_theta )(const XXX &) const = &XXX::theta
 
G4double(XXX::* pyG4ThreeVector::f1_cosTheta )() const = &XXX::cosTheta
 
G4double(XXX::* pyG4ThreeVector::f2_cosTheta )(const XXX &) const = &XXX::cosTheta
 
G4double(XXX::* pyG4ThreeVector::f1_cos2Theta )() const = &XXX::cos2Theta
 
G4double(XXX::* pyG4ThreeVector::f2_cos2Theta )(const XXX &) const = &XXX::cos2Theta
 
G4double(XXX::* pyG4ThreeVector::f1_perp2 )() const = &XXX::perp2
 
G4double(XXX::* pyG4ThreeVector::f2_perp2 )(const XXX &) const = &XXX::perp2
 
G4double(XXX::* pyG4ThreeVector::f1_perp )() const = &XXX::perp
 
G4double(XXX::* pyG4ThreeVector::f2_perp )(const XXX &) const = &XXX::perp
 
G4double(XXX::* pyG4ThreeVector::f1_angle )() const = &XXX::angle
 
G4double(XXX::* pyG4ThreeVector::f2_angle )(const XXX &) const = &XXX::angle
 
G4double(XXX::* pyG4ThreeVector::f1_eta )() const = &XXX::eta
 
G4double(XXX::* pyG4ThreeVector::f2_eta )(const XXX &) const = &XXX::eta
 
XXX(XXX::* pyG4ThreeVector::f1_project )() const = &XXX::project
 
XXX(XXX::* pyG4ThreeVector::f2_project )(const XXX &) const = &XXX::project
 
XXX(XXX::* pyG4ThreeVector::f1_perpPart )() const = &XXX::perpPart
 
XXX(XXX::* pyG4ThreeVector::f2_perpPart )(const XXX &) const = &XXX::perpPart
 
G4double(XXX::* pyG4ThreeVector::f1_rapidity )() const = &XXX::rapidity
 
G4double(XXX::* pyG4ThreeVector::f2_rapidity )(const XXX &) const = &XXX::rapidity
 
G4double(XXX::* pyG4ThreeVector::f1_polarAngle )(const XXX &) const = &XXX::polarAngle
 
G4double(XXX::* pyG4ThreeVector::f2_polarAngle )(const XXX &, const XXX &) const = &XXX::polarAngle
 
G4double(XXX::* pyG4ThreeVector::f1_azimAngle )(const XXX &) const = &XXX::azimAngle
 
G4double(XXX::* pyG4ThreeVector::f2_azimAngle )(const XXX &, const XXX &) const = &XXX::azimAngle
 
XXX &(XXX::* pyG4ThreeVector::f1_rotate )(G4double, const XXX &) = &XXX::rotate
 
XXX &(XXX::* pyG4ThreeVector::f2_rotate )(const XXX &, G4double) = &XXX::rotate
 
XXX &(XXX::* pyG4ThreeVector::f3_rotate )(const HepAxisAngle &) = &XXX::rotate
 
XXX &(XXX::* pyG4ThreeVector::f4_rotate )(const HepEulerAngles &) = &XXX::rotate
 
XXX &(XXX::* pyG4ThreeVector::f5_rotate )(G4double, G4double, G4double) = &XXX::rotate
 

Typedef Documentation

typedef G4ThreeVector XXX

Definition at line 39 of file pyG4ThreeVector.cc.

Function Documentation

void export_G4ThreeVector ( )

Definition at line 99 of file pyG4ThreeVector.cc.

100 {
101  class_<G4ThreeVector>("G4ThreeVector", "general 3-vector")
102  // constructors
103  .def(init<G4double>())
104  .def(init<G4double, G4double>())
105  .def(init<G4double, G4double, G4double>())
106  .def(init<const XXX&>())
107 
108  // property
109  .add_property("x", &XXX::x, &XXX::setX)
110  .add_property("y", &XXX::y, &XXX::setY)
111  .add_property("z", &XXX::z, &XXX::setZ)
112 
113  // methods
114  .def("set", &XXX::set)
115  .def("phi", &XXX::phi)
116  .def("mag", &XXX::mag)
117  .def("mag2", &XXX::mag2)
118  .def("setPhi", &XXX::setPhi)
119  .def("setTheta", &XXX::setTheta)
120  .def("setMag", &XXX::setMag)
121  .def("setPerp", &XXX::setPerp)
122  .def("setCylTheta", &XXX::setCylTheta)
123  .def("howNear", &XXX::howNear)
124  .def("deltaR", &XXX::deltaR)
125  .def("unit", &XXX::unit)
126  .def("orthogonal", &XXX::orthogonal)
127  .def("dot", &XXX::dot)
128  .def("cross", &XXX::cross)
129  .def("pseudoRapidity", &XXX::pseudoRapidity)
130  .def("setEta", &XXX::setEta)
131  .def("setCylEta",&XXX::setCylEta)
132  .def("setRThetaPhi", &XXX::setRThetaPhi)
133  .def("setREtaPhi", &XXX::setREtaPhi)
134  .def("setRhoPhiZ", &XXX::setRhoPhiZ)
135  .def("setRhoPhiEta", &XXX::setRhoPhiEta)
136  .def("getX", &XXX::getX)
137  .def("getY", &XXX::getY)
138  .def("getZ", &XXX::getZ)
139  .def("getR", &XXX::getR)
140  .def("getTheta", &XXX::getTheta)
141  .def("getPhi", &XXX::getPhi)
142  .def("r", &XXX::r)
143  .def("rho", &XXX::rho)
144  .def("getRho", &XXX::getRho)
145  .def("getEta", &XXX::getEta)
146  .def("setR", &XXX::setR)
147  .def("setRho", &XXX::setRho)
148  .def("compare", &XXX::compare)
149  .def("diff2", &XXX::diff2)
150  .def("setTolerance", &XXX::setTolerance)
151  .staticmethod("setTolerance")
152  .def("getTolerance", &XXX::getTolerance)
153  .staticmethod("getTolerance")
154  .def("isNear", &XXX::isNear, f_isNear())
155  .def("isParallel", &XXX::isParallel, f_isParallel())
156  .def("isOrthogonal", &XXX::isOrthogonal, f_isOrthogonal())
157  .def("howParallel", &XXX::howParallel)
158  .def("howOrthogonal", &XXX::howOrthogonal)
159  .def("beta", &XXX::beta)
160  .def("gamma", &XXX::gamma)
161  .def("deltaPhi", &XXX::deltaPhi)
162  .def("coLinearRapidity", &XXX::coLinearRapidity)
163  .def("theta", f1_theta)
164  .def("theta", f2_theta)
165  .def("cosTheta", f1_cosTheta)
166  .def("cosTheta", f2_cosTheta)
167  .def("cos2Theta", f1_cos2Theta)
168  .def("cos2Theta", f2_cos2Theta)
169  .def("perp2", f1_perp2)
170  .def("perp2", f2_perp2)
171  .def("angle", f1_angle)
172  .def("angle", f2_angle)
173  .def("eta", f1_eta)
174  .def("eta", f2_eta)
175  .def("project", f1_project)
176  .def("project", f2_project)
177  .def("perpPart", f1_perpPart)
178  .def("perpPart", f2_perpPart)
179  .def("rapidity", f1_rapidity)
180  .def("rapidity", f2_rapidity)
181  .def("polarAngle",f1_polarAngle)
182  .def("polarAngle",f2_polarAngle)
183  .def("azimAngle", f1_azimAngle)
184  .def("azimAngle", f2_azimAngle)
185  .def("rotateX", &XXX::rotateX,
186  return_value_policy<reference_existing_object>())
187  .def("rotateY", &XXX::rotateY,
188  return_value_policy<reference_existing_object>())
189  .def("rotateZ", &XXX::rotateZ,
190  return_value_policy<reference_existing_object>())
191  .def("rotateUz", &XXX::rotateUz,
192  return_value_policy<reference_existing_object>())
193  .def("transform",&XXX::transform,
194  return_value_policy<reference_existing_object>())
195  .def("rotate", f1_rotate,
196  return_value_policy<reference_existing_object>())
197  .def("rotate", f2_rotate,
198  return_value_policy<reference_existing_object>())
199  .def("rotate", f5_rotate,
200  return_value_policy<reference_existing_object>())
201 
202  // operators
203  .def(self_ns::str(self))
204  .def(self == self)
205  .def(self != self)
206  .def(self += self)
207  .def(self -= self)
208  .def(self - self)
209  .def(self + self)
210  .def(self * self)
211  .def(self * G4double())
212  .def(self / G4double())
213  .def(G4double() * self)
214  .def(self *= G4double())
215  .def(self /= G4double())
216  .def(self > self)
217  .def(self < self)
218  .def(self >= self)
219  .def(self <= self)
220  ;
221 }
XXX(XXX::* f1_project)() const
G4double(XXX::* f1_angle)() const
G4double(XXX::* f2_azimAngle)(const XXX &, const XXX &) const
G4double(XXX::* f2_theta)(const XXX &) const
G4double(XXX::* f2_angle)(const XXX &) const
XXX &(XXX::* f2_rotate)(G4double, const G4ThreeVector *)
G4double(XXX::* f1_theta)() const
tuple x
Definition: test.py:50
XXX(XXX::* f1_perpPart)() const
XXX &(XXX::* f5_rotate)(G4double, G4double, G4double)
G4double(XXX::* f1_eta)() const
XXX(XXX::* f2_perpPart)(const XXX &) const
G4double(XXX::* f2_eta)(const XXX &) const
G4double(XXX::* f2_polarAngle)(const XXX &, const XXX &) const
XXX(XXX::* f2_project)(const XXX &) const
G4double(XXX::* f1_cosTheta)() const
G4double(XXX::* f2_cos2Theta)(const XXX &) const
G4double(XXX::* f2_perp2)(const XXX &) const
XXX &(XXX::* f1_rotate)(G4double, const G4ThreeVector &)
G4double(XXX::* f1_perp2)() const
G4double(XXX::* f2_cosTheta)(const XXX &) const
G4double(XXX::* f1_cos2Theta)() const
tuple z
Definition: test.py:28
G4double(XXX::* f1_polarAngle)(const XXX &) const
G4double(XXX::* f1_rapidity)() const
G4double(XXX::* f2_rapidity)(const XXX &) const
double G4double
Definition: G4Types.hh:76
G4double(XXX::* f1_azimAngle)(const XXX &) const

Here is the caller graph for this function: