31#include <boost/python.hpp>
35using namespace boost::python;
100 class_<G4ThreeVector>(
"G4ThreeVector",
"general 3-vector")
102 .def(init<G4double>())
103 .def(init<G4double, G4double>())
104 .def(init<G4double, G4double, G4double>())
105 .def(init<const XXX&>())
108 .add_property(
"x", &XXX::x, &XXX::setX)
109 .add_property(
"y", &XXX::y, &XXX::setY)
110 .add_property(
"z", &XXX::z, &XXX::setZ)
115 .def(
"mag", &XXX::mag)
116 .def(
"mag2", &XXX::mag2)
119 .def(
"setMag", &XXX::setMag)
120 .def(
"setPerp", &XXX::setPerp)
121 .def(
"setCylTheta", &XXX::setCylTheta)
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)
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)
148 .def(
"diff2", &XXX::diff2)
150 .staticmethod(
"setTolerance")
152 .staticmethod(
"getTolerance")
154 .def(
"isParallel", &XXX::isParallel, f_isParallel())
155 .def(
"isOrthogonal", &XXX::isOrthogonal, f_isOrthogonal())
156 .def(
"howParallel", &XXX::howParallel)
157 .def(
"howOrthogonal", &XXX::howOrthogonal)
159 .def(
"gamma", &XXX::gamma)
160 .def(
"deltaPhi", &XXX::deltaPhi)
161 .def(
"coLinearRapidity", &XXX::coLinearRapidity)
185 return_value_policy<reference_existing_object>())
187 return_value_policy<reference_existing_object>())
189 return_value_policy<reference_existing_object>())
190 .def(
"rotateUz", &XXX::rotateUz,
191 return_value_policy<reference_existing_object>())
193 return_value_policy<reference_existing_object>())
195 return_value_policy<reference_existing_object>())
197 return_value_policy<reference_existing_object>())
199 return_value_policy<reference_existing_object>())
202 .def(self_ns::str(self))
static const G4double angle[DIMMOTT]
static double getTolerance()
HepRotation & rotate(double delta, const Hep3Vector &axis)
static double setTolerance(double tol)
HepRotation & transform(const HepRotation &r)
HepRotation & set(const Hep3Vector &axis, double delta)
bool isNear(const HepRotation &r, double epsilon=Hep4RotationInterface::tolerance) const
double howNear(const HepRotation &r) const
HepRotation & rotateX(double delta)
HepRotation & rotateZ(double delta)
HepRotation & rotateY(double delta)
int compare(const HepRotation &r) const
void setTheta(double theta)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ClearWaitingStack, ClearWaitingStack, 0, 1) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetNWaitingTrack
G4double(XXX::* f2_perp)(const XXX &) const
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
XXX &(XXX::* f4_rotate)(const HepEulerAngles &)
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_perp)() 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
XXX &(XXX::* f3_rotate)(const HepAxisAngle &)
G4double(XXX::* f2_rapidity)(const XXX &) const
G4double(XXX::* f2_cos2Theta)(const XXX &) const
void export_G4ThreeVector()