File indexing completed on 2025-01-18 09:54:41
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #ifndef HEP_ROTATIONZ_H
0021 #define HEP_ROTATIONZ_H
0022
0023 #include "CLHEP/Vector/defs.h"
0024 #include "CLHEP/Vector/RotationInterfaces.h"
0025
0026 namespace CLHEP {
0027
0028 class HepRotationZ;
0029 class HepRotation;
0030 class HepBoost;
0031
0032 inline HepRotationZ inverseOf(const HepRotationZ & r);
0033
0034
0035
0036
0037
0038
0039 class HepRotationZ {
0040
0041 public:
0042
0043
0044
0045 inline HepRotationZ();
0046
0047
0048 HepRotationZ(double delta);
0049
0050
0051 inline HepRotationZ(const HepRotationZ & orig);
0052 inline HepRotationZ(HepRotationZ && orig) = default;
0053
0054
0055 inline HepRotationZ & operator = (const HepRotationZ & r);
0056 inline HepRotationZ & operator = (HepRotationZ && r) = default;
0057
0058
0059 HepRotationZ & set ( double delta );
0060
0061
0062 inline ~HepRotationZ();
0063
0064
0065
0066
0067 inline Hep3Vector colX() const;
0068 inline Hep3Vector colY() const;
0069 inline Hep3Vector colZ() const;
0070
0071
0072 inline Hep3Vector rowX() const;
0073 inline Hep3Vector rowY() const;
0074 inline Hep3Vector rowZ() const;
0075
0076
0077 inline double xx() const;
0078 inline double xy() const;
0079 inline double xz() const;
0080 inline double yx() const;
0081 inline double yy() const;
0082 inline double yz() const;
0083 inline double zx() const;
0084 inline double zy() const;
0085 inline double zz() const;
0086
0087
0088 inline HepRep3x3 rep3x3() const;
0089
0090
0091
0092 inline double getPhi () const;
0093 inline double getTheta() const;
0094 inline double getPsi () const;
0095 double phi () const;
0096 double theta() const;
0097 double psi () const;
0098 HepEulerAngles eulerAngles() const;
0099
0100
0101 inline double getDelta() const;
0102 inline Hep3Vector getAxis () const;
0103 inline double delta() const;
0104 inline Hep3Vector axis () const;
0105 inline HepAxisAngle axisAngle() const;
0106 inline void getAngleAxis(double & delta, Hep3Vector & axis) const;
0107
0108
0109
0110 double phiX() const;
0111 double phiY() const;
0112 double phiZ() const;
0113 double thetaX() const;
0114 double thetaY() const;
0115 double thetaZ() const;
0116
0117
0118
0119
0120 inline HepLorentzVector col1() const;
0121 inline HepLorentzVector col2() const;
0122 inline HepLorentzVector col3() const;
0123
0124
0125 inline HepLorentzVector col4() const;
0126
0127
0128 inline HepLorentzVector row1() const;
0129 inline HepLorentzVector row2() const;
0130 inline HepLorentzVector row3() const;
0131
0132
0133 inline HepLorentzVector row4() const;
0134
0135
0136 inline double xt() const;
0137 inline double yt() const;
0138 inline double zt() const;
0139 inline double tx() const;
0140 inline double ty() const;
0141 inline double tz() const;
0142
0143
0144 inline double tt() const;
0145
0146
0147 inline HepRep4x4 rep4x4() const;
0148
0149
0150
0151
0152 void setDelta (double delta);
0153
0154
0155
0156
0157 void decompose (HepAxisAngle & rotation, Hep3Vector & boost) const;
0158 void decompose (Hep3Vector & boost, HepAxisAngle & rotation) const;
0159 void decompose (HepRotation & rotation, HepBoost & boost) const;
0160 void decompose (HepBoost & boost, HepRotation & rotation) const;
0161
0162
0163
0164
0165 inline bool isIdentity() const;
0166
0167
0168 inline int compare( const HepRotationZ & r ) const;
0169
0170
0171
0172 inline bool operator== ( const HepRotationZ & r ) const;
0173 inline bool operator!= ( const HepRotationZ & r ) const;
0174 inline bool operator< ( const HepRotationZ & r ) const;
0175 inline bool operator> ( const HepRotationZ & r ) const;
0176 inline bool operator<= ( const HepRotationZ & r ) const;
0177 inline bool operator>= ( const HepRotationZ & r ) const;
0178
0179 double distance2( const HepRotationZ & r ) const;
0180
0181
0182 double distance2( const HepRotation & r ) const;
0183
0184
0185 double howNear( const HepRotationZ & r ) const;
0186 double howNear( const HepRotation & r ) const;
0187 bool isNear( const HepRotationZ & r,
0188 double epsilon=Hep4RotationInterface::tolerance) const;
0189 bool isNear( const HepRotation & r,
0190 double epsilon=Hep4RotationInterface::tolerance) const;
0191
0192 double distance2( const HepBoost & lt ) const;
0193
0194 double distance2( const HepLorentzRotation & lt ) const;
0195
0196
0197 double howNear( const HepBoost & lt ) const;
0198 double howNear( const HepLorentzRotation & lt ) const;
0199 bool isNear( const HepBoost & lt,
0200 double epsilon=Hep4RotationInterface::tolerance) const;
0201 bool isNear( const HepLorentzRotation & lt,
0202 double epsilon=Hep4RotationInterface::tolerance) const;
0203
0204
0205
0206 double norm2() const;
0207
0208
0209 inline void rectify();
0210
0211
0212
0213
0214 inline Hep3Vector operator() (const Hep3Vector & p) const;
0215
0216
0217 inline Hep3Vector operator * (const Hep3Vector & p) const;
0218
0219
0220 inline HepLorentzVector operator()( const HepLorentzVector & w ) const;
0221
0222
0223 inline HepLorentzVector operator* ( const HepLorentzVector & w ) const;
0224
0225
0226
0227
0228 inline HepRotationZ operator * (const HepRotationZ & rz) const;
0229
0230
0231
0232
0233 inline HepRotationZ & operator *= (const HepRotationZ & r);
0234 inline HepRotationZ & transform (const HepRotationZ & r);
0235
0236
0237
0238
0239 inline HepRotationZ inverse() const;
0240
0241
0242 friend HepRotationZ inverseOf(const HepRotationZ & r);
0243
0244
0245 inline HepRotationZ & invert();
0246
0247
0248
0249
0250 std::ostream & print( std::ostream & os ) const;
0251
0252
0253
0254
0255 static inline double getTolerance();
0256 static inline double setTolerance(double tol);
0257
0258 protected:
0259
0260 double its_d;
0261
0262
0263 double its_s;
0264 double its_c;
0265
0266
0267 inline HepRotationZ ( double dd, double ss, double cc );
0268
0269
0270 static inline double proper (double delta);
0271
0272
0273 };
0274
0275 inline
0276 std::ostream & operator <<
0277 ( std::ostream & os, const HepRotationZ & r ) {return r.print(os);}
0278
0279
0280
0281 }
0282
0283 #include "CLHEP/Vector/RotationZ.icc"
0284
0285 #ifdef ENABLE_BACKWARDS_COMPATIBILITY
0286
0287 using namespace CLHEP;
0288 #endif
0289
0290 #endif
0291