This file is indexed.

/usr/include/CLHEP/Vector/LorentzRotation.icc is in libclhep-dev 2.1.4.1+dfsg-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
// -*- C++ -*-
// $Id: LorentzRotation.icc,v 1.2 2003/10/10 21:42:35 garren Exp $
// ---------------------------------------------------------------------------
//
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
// 
// This is the definitions of the inline member functions of the
// HepLorentzRotation class
//

namespace CLHEP {

// ----------  Constructors and Assignment:

inline HepLorentzRotation::HepLorentzRotation() :
    mxx(1.0), mxy(0.0), mxz(0.0), mxt(0.0),
    myx(0.0), myy(1.0), myz(0.0), myt(0.0),
    mzx(0.0), mzy(0.0), mzz(1.0), mzt(0.0),
    mtx(0.0), mty(0.0), mtz(0.0), mtt(1.0) {}

inline HepLorentzRotation::HepLorentzRotation(const HepLorentzRotation & r) :
    mxx(r.mxx), mxy(r.mxy), mxz(r.mxz), mxt(r.mxt),
    myx(r.myx), myy(r.myy), myz(r.myz), myt(r.myt),
    mzx(r.mzx), mzy(r.mzy), mzz(r.mzz), mzt(r.mzt),
    mtx(r.mtx), mty(r.mty), mtz(r.mtz), mtt(r.mtt) {}

inline HepLorentzRotation::HepLorentzRotation(const HepRotation & r) {
    set (r.rep4x4());
}
inline HepLorentzRotation::HepLorentzRotation(const HepRotationX & r) {
    set (r.rep4x4());
}
inline HepLorentzRotation::HepLorentzRotation(const HepRotationY & r) {
    set (r.rep4x4());
}
inline HepLorentzRotation::HepLorentzRotation(const HepRotationZ & r) {
    set (r.rep4x4());
}

inline HepLorentzRotation::HepLorentzRotation(const HepBoost & b) {
    set (b.rep4x4());
}
inline HepLorentzRotation::HepLorentzRotation(const HepBoostX & b) {
    set (b.rep4x4());
}
inline HepLorentzRotation::HepLorentzRotation(const HepBoostY & b) {
    set (b.rep4x4());
}
inline HepLorentzRotation::HepLorentzRotation(const HepBoostZ & b) {
    set (b.rep4x4());
}

inline HepLorentzRotation &
HepLorentzRotation::operator = (const HepLorentzRotation & r) {
  mxx = r.mxx; mxy = r.mxy; mxz = r.mxz; mxt = r.mxt;
  myx = r.myx; myy = r.myy; myz = r.myz; myt = r.myt;
  mzx = r.mzx; mzy = r.mzy; mzz = r.mzz; mzt = r.mzt;
  mtx = r.mtx; mty = r.mty; mtz = r.mtz; mtt = r.mtt;
  return *this;
}

inline HepLorentzRotation &
HepLorentzRotation::operator = (const HepRotation & m1) {
  return set (m1.rep4x4());
}

inline HepLorentzRotation &
HepLorentzRotation::operator = (const HepBoost & m1) {
  return set (m1.rep4x4());
}

HepLorentzRotation & HepLorentzRotation::set (const Hep3Vector & p) {
  return set (p.x(), p.y(), p.z());
}

inline HepLorentzRotation & HepLorentzRotation::set (const HepRotation & r) {
  return set (r.rep4x4());
}
inline HepLorentzRotation & HepLorentzRotation::set (const HepRotationX & r) {
  return set (r.rep4x4());
}
inline HepLorentzRotation & HepLorentzRotation::set (const HepRotationY & r) {
  return set (r.rep4x4());
}
inline HepLorentzRotation & HepLorentzRotation::set (const HepRotationZ & r) {
  return set (r.rep4x4());
}

inline HepLorentzRotation & HepLorentzRotation::set (const HepBoost & bboost) {
  return set (bboost.rep4x4());
}
inline HepLorentzRotation & HepLorentzRotation::set (const HepBoostX & bboost) {
  return set (bboost.rep4x4());
}
inline HepLorentzRotation & HepLorentzRotation::set (const HepBoostY & bboost) {
  return set (bboost.rep4x4());
}
inline HepLorentzRotation & HepLorentzRotation::set (const HepBoostZ & bboost) {
  return set (bboost.rep4x4());
}

inline HepLorentzRotation::HepLorentzRotation(double bx,
                                              double by,
                                              double bz) 
{
  set(bx, by, bz);
}

inline HepLorentzRotation::HepLorentzRotation(const Hep3Vector & p) 
{
  set(p.x(), p.y(), p.z());
}

inline HepLorentzRotation::HepLorentzRotation(
		const HepBoost & B, const HepRotation & R)
{
  set(B, R);
}

inline HepLorentzRotation::HepLorentzRotation( 
		const HepRotation & R, const HepBoost & B) 
{
  set(R, B);
}

inline HepLorentzRotation & HepLorentzRotation::set( const HepRep4x4 & rep ) {
  mxx=rep.xx_;  mxy=rep.xy_;  mxz=rep.xz_;  mxt=rep.xt_;
  myx=rep.yx_;  myy=rep.yy_;  myz=rep.yz_;  myt=rep.yt_;
  mzx=rep.zx_;  mzy=rep.zy_;  mzz=rep.zz_;  mzt=rep.zt_;
  mtx=rep.tx_;  mty=rep.ty_;  mtz=rep.tz_;  mtt=rep.tt_;
  return *this;
}

inline HepLorentzRotation ::HepLorentzRotation ( const HepRep4x4 & rep ) :
    mxx(rep.xx_), mxy(rep.xy_), mxz(rep.xz_), mxt(rep.xt_),
    myx(rep.yx_), myy(rep.yy_), myz(rep.yz_), myt(rep.yt_),
    mzx(rep.zx_), mzy(rep.zy_), mzz(rep.zz_), mzt(rep.zt_),
    mtx(rep.tx_), mty(rep.ty_), mtz(rep.tz_), mtt(rep.tt_) {}

// - Protected methods

inline HepLorentzRotation::HepLorentzRotation( 
  double rxx, double rxy, double rxz, double rxt,
  double ryx, double ryy, double ryz, double ryt,
  double rzx, double rzy, double rzz, double rzt,
  double rtx, double rty, double rtz, double rtt) : 
    mxx(rxx), mxy(rxy), mxz(rxz), mxt(rxt),
    myx(ryx), myy(ryy), myz(ryz), myt(ryt),
    mzx(rzx), mzy(rzy), mzz(rzz), mzt(rzt),
    mtx(rtx), mty(rty), mtz(rtz), mtt(rtt) {}

inline void HepLorentzRotation::setBoost
				(double bx, double by, double bz) {
  set(bx, by, bz);
}

// ----------  Accessors:

inline double HepLorentzRotation::xx() const { return mxx; }
inline double HepLorentzRotation::xy() const { return mxy; }
inline double HepLorentzRotation::xz() const { return mxz; }
inline double HepLorentzRotation::xt() const { return mxt; }
inline double HepLorentzRotation::yx() const { return myx; }
inline double HepLorentzRotation::yy() const { return myy; }
inline double HepLorentzRotation::yz() const { return myz; }
inline double HepLorentzRotation::yt() const { return myt; }
inline double HepLorentzRotation::zx() const { return mzx; }
inline double HepLorentzRotation::zy() const { return mzy; }
inline double HepLorentzRotation::zz() const { return mzz; }
inline double HepLorentzRotation::zt() const { return mzt; }
inline double HepLorentzRotation::tx() const { return mtx; }
inline double HepLorentzRotation::ty() const { return mty; }
inline double HepLorentzRotation::tz() const { return mtz; }
inline double HepLorentzRotation::tt() const { return mtt; }

inline HepLorentzVector HepLorentzRotation::col1() const {
  return HepLorentzVector ( mxx, myx, mzx, mtx );
}
inline HepLorentzVector HepLorentzRotation::col2() const {
  return HepLorentzVector ( mxy, myy, mzy, mty );
}
inline HepLorentzVector HepLorentzRotation::col3() const {
  return HepLorentzVector ( mxz, myz, mzz, mtz );
}
inline HepLorentzVector HepLorentzRotation::col4() const {
  return HepLorentzVector ( mxt, myt, mzt, mtt );
}

inline HepLorentzVector HepLorentzRotation::row1() const {
  return HepLorentzVector ( mxx, mxy, mxz, mxt );
}
inline HepLorentzVector HepLorentzRotation::row2() const {
  return HepLorentzVector ( myx, myy, myz, myt );
}
inline HepLorentzVector HepLorentzRotation::row3() const {
  return HepLorentzVector ( mzx, mzy, mzz, mzt );
}
inline HepLorentzVector HepLorentzRotation::row4() const {
  return HepLorentzVector ( mtx, mty, mtz, mtt );
}

inline HepRep4x4 HepLorentzRotation::rep4x4() const {
  return HepRep4x4( mxx, mxy, mxz, mxt, 
                    myx, myy, myz, myt,
                    mzx, mzy, mzz, mzt,
                    mtx, mty, mtz, mtt );
}


// ------------  Subscripting:

inline HepLorentzRotation::HepLorentzRotation_row::HepLorentzRotation_row
(const HepLorentzRotation & r, int i) : rr(r), ii(i) {}

inline double
HepLorentzRotation::HepLorentzRotation_row::operator [] (int jj) const {
  return rr(ii,jj);
}

inline const HepLorentzRotation::HepLorentzRotation_row
HepLorentzRotation::operator [] (int i) const {
  return HepLorentzRotation_row(*this, i);
}

// ----------  Comparisons:

inline bool
HepLorentzRotation::operator == (const HepLorentzRotation & r) const {
  return (mxx == r.xx() && mxy == r.xy() && mxz == r.xz() && mxt == r.xt() && 
          myx == r.yx() && myy == r.yy() && myz == r.yz() && myt == r.yt() && 
          mzx == r.zx() && mzy == r.zy() && mzz == r.zz() && mzt == r.zt() && 
          mtx == r.tx() && mty == r.ty() && mtz == r.tz() && mtt == r.tt());
}

inline bool
HepLorentzRotation::operator != (const HepLorentzRotation & r) const {
  return ! operator==(r);
}

inline bool 
HepLorentzRotation::operator < ( const HepLorentzRotation & r ) const
        { return compare(r)< 0; }
inline bool 
HepLorentzRotation::operator <= ( const HepLorentzRotation & r ) const
        { return compare(r)<=0; }

inline bool 
HepLorentzRotation::operator >= ( const HepLorentzRotation & r ) const
        { return compare(r)>=0; }
inline bool 
HepLorentzRotation::operator > ( const HepLorentzRotation & r ) const
        { return compare(r)> 0; }

inline bool HepLorentzRotation::isIdentity() const {
  return (mxx == 1.0 && mxy == 0.0 && mxz == 0.0 && mxt == 0.0 && 
          myx == 0.0 && myy == 1.0 && myz == 0.0 && myt == 0.0 && 
          mzx == 0.0 && mzy == 0.0 && mzz == 1.0 && mzt == 0.0 && 
          mtx == 0.0 && mty == 0.0 && mtz == 0.0 && mtt == 1.0);
}

// ----------  Properties:
                             
// ---------- Application:

inline HepLorentzVector
HepLorentzRotation::vectorMultiplication(const HepLorentzVector & p) const {
  register double x(p.x());
  register double y(p.y());
  register double z(p.z());
  register double t(p.t());
  return HepLorentzVector(mxx*x + mxy*y + mxz*z + mxt*t,
                	  myx*x + myy*y + myz*z + myt*t,
			  mzx*x + mzy*y + mzz*z + mzt*t,
			  mtx*x + mty*y + mtz*z + mtt*t);
}

inline HepLorentzVector 
HepLorentzRotation::operator() (const HepLorentzVector & w) const {
  return vectorMultiplication(w);
}

inline HepLorentzVector
HepLorentzRotation::operator * (const HepLorentzVector & p) const {
  return vectorMultiplication(p);
}

// ---------- Operations in the group of 4-Rotations

inline HepLorentzRotation 
HepLorentzRotation::operator * (const HepBoost & b) const {
  return matrixMultiplication(b.rep4x4());
}
inline HepLorentzRotation 
HepLorentzRotation::operator * (const HepRotation & r) const {
  return matrixMultiplication(r.rep4x4());
}
inline HepLorentzRotation 
HepLorentzRotation::operator * (const HepLorentzRotation & lt) const {
  return matrixMultiplication(lt.rep4x4());
}
 
inline HepLorentzRotation &
HepLorentzRotation::operator *= (const HepBoost & b) {
  return *this = matrixMultiplication(b.rep4x4());
}
inline HepLorentzRotation &
HepLorentzRotation::operator *= (const HepRotation & r) {
  return *this = matrixMultiplication(r.rep4x4());
}
inline HepLorentzRotation &
HepLorentzRotation::operator *= (const HepLorentzRotation & lt) {
  return *this = matrixMultiplication(lt.rep4x4());
}

inline HepLorentzRotation &
HepLorentzRotation::transform   (const HepBoost & b) {
  return *this = HepLorentzRotation(b).matrixMultiplication(rep4x4());
}
inline HepLorentzRotation &
HepLorentzRotation::transform   (const HepRotation & r) {
  return *this = HepLorentzRotation(r).matrixMultiplication(rep4x4());
}
inline HepLorentzRotation &
HepLorentzRotation::transform   (const HepLorentzRotation & lt) {
  return *this = lt.matrixMultiplication(rep4x4());
}






inline HepLorentzRotation &
HepLorentzRotation::rotate(double angle, const Hep3Vector & axis) {
  return transform(HepRotation().rotate(angle, axis));
}

inline HepLorentzRotation &
HepLorentzRotation::rotate(double angle, const Hep3Vector * axis) {
  return transform(HepRotation().rotate(angle, axis));
}

inline HepLorentzRotation &
HepLorentzRotation::boost(double bx, double by, double bz) {
  return transform(HepLorentzRotation(bx, by, bz));
}

inline HepLorentzRotation &
HepLorentzRotation::boost(const Hep3Vector & b) {
  return transform(HepLorentzRotation(b));
}

inline HepLorentzRotation HepLorentzRotation::inverse() const {
  return HepLorentzRotation( mxx,  myx,  mzx, -mtx,
                             mxy,  myy,  mzy, -mty,
                             mxz,  myz,  mzz, -mtz,
                            -mxt, -myt, -mzt,  mtt );
}

inline HepLorentzRotation & HepLorentzRotation::invert() {
  return *this = inverse();
}

inline HepLorentzRotation inverseOf ( const HepLorentzRotation & lt ) {
  return HepLorentzRotation( 
	 HepRep4x4(
			     lt.mxx,  lt.myx,  lt.mzx, -lt.mtx,
                             lt.mxy,  lt.myy,  lt.mzy, -lt.mty,
                             lt.mxz,  lt.myz,  lt.mzz, -lt.mtz,
                            -lt.mxt, -lt.myt, -lt.mzt,  lt.mtt )  );
}

inline double HepLorentzRotation::getTolerance() { 
  return Hep4RotationInterface::tolerance;
}
inline double HepLorentzRotation::setTolerance(double tol) { 
  return Hep4RotationInterface::setTolerance(tol);
}

}  // namespace CLHEP