Geant4-11
Namespaces | Typedefs | Functions | Variables
pyG4ThreeVector.cc File Reference
#include <boost/python.hpp>
#include "G4ThreeVector.hh"
#include "G4RotationMatrix.hh"

Go to the source code of this file.

Namespaces

namespace  pyG4ThreeVector
 

Typedefs

typedef G4ThreeVector XXX
 

Functions

void export_G4ThreeVector ()
 

Variables

G4double(XXX::* pyG4ThreeVector::f1_angle )() const = &XXX::angle
 
G4double(XXX::* pyG4ThreeVector::f1_azimAngle )(const XXX &) const = &XXX::azimAngle
 
G4double(XXX::* pyG4ThreeVector::f1_cos2Theta )() const = &XXX::cos2Theta
 
G4double(XXX::* pyG4ThreeVector::f1_cosTheta )() const = &XXX::cosTheta
 
G4double(XXX::* pyG4ThreeVector::f1_eta )() const = &XXX::eta
 
G4double(XXX::* pyG4ThreeVector::f1_perp )() const = &XXX::perp
 
G4double(XXX::* pyG4ThreeVector::f1_perp2 )() const = &XXX::perp2
 
XXX(XXX::* pyG4ThreeVector::f1_perpPart )() const = &XXX::perpPart
 
G4double(XXX::* pyG4ThreeVector::f1_polarAngle )(const XXX &) const = &XXX::polarAngle
 
XXX(XXX::* pyG4ThreeVector::f1_project )() const = &XXX::project
 
G4double(XXX::* pyG4ThreeVector::f1_rapidity )() const = &XXX::rapidity
 
XXX &(XXX::* pyG4ThreeVector::f1_rotate )(G4double, const XXX &) = &XXX::rotate
 
G4double(XXX::* pyG4ThreeVector::f1_theta )() const = &XXX::theta
 
G4double(XXX::* pyG4ThreeVector::f2_angle )(const XXX &) const = &XXX::angle
 
G4double(XXX::* pyG4ThreeVector::f2_azimAngle )(const XXX &, const XXX &) const = &XXX::azimAngle
 
G4double(XXX::* pyG4ThreeVector::f2_cos2Theta )(const XXX &) const = &XXX::cos2Theta
 
G4double(XXX::* pyG4ThreeVector::f2_cosTheta )(const XXX &) const = &XXX::cosTheta
 
G4double(XXX::* pyG4ThreeVector::f2_eta )(const XXX &) const = &XXX::eta
 
G4double(XXX::* pyG4ThreeVector::f2_perp )(const XXX &) const = &XXX::perp
 
G4double(XXX::* pyG4ThreeVector::f2_perp2 )(const XXX &) const = &XXX::perp2
 
XXX(XXX::* pyG4ThreeVector::f2_perpPart )(const XXX &) const = &XXX::perpPart
 
G4double(XXX::* pyG4ThreeVector::f2_polarAngle )(const XXX &, const XXX &) const = &XXX::polarAngle
 
XXX(XXX::* pyG4ThreeVector::f2_project )(const XXX &) const = &XXX::project
 
G4double(XXX::* pyG4ThreeVector::f2_rapidity )(const XXX &) const = &XXX::rapidity
 
XXX &(XXX::* pyG4ThreeVector::f2_rotate )(const XXX &, G4double) = &XXX::rotate
 
G4double(XXX::* pyG4ThreeVector::f2_theta )(const XXX &) const = &XXX::theta
 
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

◆ XXX

typedef G4ThreeVector XXX

Definition at line 38 of file pyG4ThreeVector.cc.

Function Documentation

◆ export_G4ThreeVector()

void export_G4ThreeVector ( )

Definition at line 98 of file pyG4ThreeVector.cc.

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

References anonymous_namespace{G4PionRadiativeDecayChannel.cc}::beta, CLHEP::HepRotation::compare(), pyG4ThreeVector::f1_angle, pyG4ThreeVector::f1_azimAngle, pyG4ThreeVector::f1_cos2Theta, pyG4ThreeVector::f1_cosTheta, pyG4ThreeVector::f1_eta, pyG4ThreeVector::f1_perp2, pyG4ThreeVector::f1_perpPart, pyG4ThreeVector::f1_polarAngle, pyG4ThreeVector::f1_project, pyG4ThreeVector::f1_rapidity, pyG4ThreeVector::f1_rotate, pyG4ThreeVector::f1_theta, pyG4ThreeVector::f2_angle, pyG4ThreeVector::f2_azimAngle, pyG4ThreeVector::f2_cos2Theta, pyG4ThreeVector::f2_cosTheta, pyG4ThreeVector::f2_eta, pyG4ThreeVector::f2_perp2, pyG4ThreeVector::f2_perpPart, pyG4ThreeVector::f2_polarAngle, pyG4ThreeVector::f2_project, pyG4ThreeVector::f2_rapidity, pyG4ThreeVector::f2_rotate, pyG4ThreeVector::f2_theta, pyG4ThreeVector::f5_rotate, CLHEP::HepRotation::getPhi(), CLHEP::HepRotation::getTheta(), CLHEP::HepRotation::getTolerance(), CLHEP::HepRotation::howNear(), CLHEP::HepRotation::isNear(), CLHEP::HepRotation::phi(), CLHEP::HepRotation::rotateX(), CLHEP::HepRotation::rotateY(), CLHEP::HepRotation::rotateZ(), CLHEP::HepRotation::set(), CLHEP::HepRotation::setPhi(), CLHEP::HepRotation::setTheta(), CLHEP::HepRotation::setTolerance(), and CLHEP::HepRotation::transform().

Referenced by BOOST_PYTHON_MODULE().