This file is indexed.

/usr/include/CLHEP/Vector/BoostX.icc is in libclhep-dev 2.1.2.3-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
// -*- C++ -*-
// ---------------------------------------------------------------------------
//
// 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
// HepBoostX class
//

#include <cmath>

namespace CLHEP  {

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

inline HepBoostX::HepBoostX() : beta_(0.0), gamma_(1.0) {}

inline HepBoostX::HepBoostX(const HepBoostX & b) : 
	beta_ (b.beta_), 
	gamma_(b.gamma_) {}

inline HepBoostX & HepBoostX::operator = (const HepBoostX & b) { 
  beta_  = b.beta_; 
  gamma_ = b.gamma_;
  return *this;
}

inline HepBoostX::HepBoostX(double bbeta) { set(bbeta); }

// - Protected method:
inline HepBoostX::HepBoostX( double bbeta, double ggamma ) :
                                        beta_(bbeta), gamma_(ggamma) {}

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

inline double  HepBoostX::beta() const {   
  return beta_;
}

inline double  HepBoostX::gamma() const {
  return gamma_;
}

inline Hep3Vector HepBoostX::boostVector() const { 
  return  Hep3Vector( beta_, 0, 0 );
}

inline Hep3Vector HepBoostX::getDirection() const { 
  return  Hep3Vector(1.0, 0.0, 0.0);
}

inline double HepBoostX::xx() const { return gamma();}
inline double HepBoostX::xy() const { return 0.0;}
inline double HepBoostX::xz() const { return 0.0;}
inline double HepBoostX::xt() const { return beta()*gamma();}
inline double HepBoostX::yx() const { return 0.0;}
inline double HepBoostX::yy() const { return 1.0;}
inline double HepBoostX::yz() const { return 0.0;}
inline double HepBoostX::yt() const { return 0.0;}
inline double HepBoostX::zx() const { return 0.0;}
inline double HepBoostX::zy() const { return 0.0;}
inline double HepBoostX::zz() const { return 1.0;}
inline double HepBoostX::zt() const { return 0.0;}
inline double HepBoostX::tx() const { return beta()*gamma();}
inline double HepBoostX::ty() const { return 0.0;}
inline double HepBoostX::tz() const { return 0.0;}
inline double HepBoostX::tt() const { return gamma();}

inline HepLorentzVector HepBoostX::col1() const {
  return HepLorentzVector ( gamma(), 0, 0, beta()*gamma() );
}
inline HepLorentzVector HepBoostX::col2() const {
  return HepLorentzVector ( 0, 1, 0, 0 );
}
inline HepLorentzVector HepBoostX::col3() const {
  return HepLorentzVector ( 0, 0, 1, 0 );
}
inline HepLorentzVector HepBoostX::col4() const {
  return HepLorentzVector ( beta()*gamma(), 0, 0, gamma() );
}

inline HepLorentzVector HepBoostX::row1() const {
  return HepLorentzVector ( col1() );
}
inline HepLorentzVector HepBoostX::row2() const {
  return HepLorentzVector ( col2() );
}
inline HepLorentzVector HepBoostX::row3() const {
  return HepLorentzVector ( col3() );
}
inline HepLorentzVector HepBoostX::row4() const {
  return HepLorentzVector ( col4() );
}

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

inline int HepBoostX::compare( const HepBoostX & b ) const {
  if (beta() < b.beta()) {
    return -1;
  } else if (beta() > b.beta()) {
    return 1;
  } else {
    return 0;
  }
}

inline bool HepBoostX::operator == ( const HepBoostX & b ) const {
  return beta_ == b.beta_;
}
inline bool HepBoostX::operator != ( const HepBoostX & b ) const {
  return beta_ != b.beta_;
}
inline bool HepBoostX::operator <= ( const HepBoostX & b ) const {
  return beta_ <= b.beta_;
}
inline bool HepBoostX::operator >= ( const HepBoostX & b ) const {
  return beta_ >= b.beta_;
}
inline bool HepBoostX::operator <  ( const HepBoostX & b ) const {
  return beta_ <  b.beta_;
}
inline bool HepBoostX::operator >  ( const HepBoostX & b ) const {
  return beta_ >  b.beta_;
}

inline bool HepBoostX::isIdentity() const {
  return ( beta() == 0 );
}

inline double HepBoostX::distance2( const HepBoostX & b ) const {
  double d = beta()*gamma() - b.beta()*b.gamma();
  return d*d;
}

inline double HepBoostX::howNear(const HepBoostX & b) const {
  return std::sqrt(distance2(b)); }
inline double HepBoostX::howNear(const HepBoost  & b) const {
  return std::sqrt(distance2(b)); }
inline double HepBoostX::howNear(const HepRotation & r) const {
  return std::sqrt(distance2(r)); }
inline double HepBoostX::howNear(const HepLorentzRotation & lt) const {
  return std::sqrt(distance2(lt)); }

inline bool HepBoostX::isNear(const HepBoostX & b, 
					double epsilon) const {
  return (distance2(b) <= epsilon*epsilon);
}
inline bool HepBoostX::isNear(const HepBoost & b, 
					double epsilon) const {
  return (distance2(b) <= epsilon*epsilon);
}

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

inline double HepBoostX::norm2() const {
  register double bg = beta_*gamma_;
  return bg*bg;
}

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

inline HepLorentzVector
HepBoostX::operator * (const HepLorentzVector & p) const {
  double bg = beta_*gamma_;
  return HepLorentzVector(gamma_*p.x() + bg*p.t(),
				 p.y(),
				 p.z(),
			  gamma_*p.t() + bg*p.x());
}

inline HepLorentzVector 
HepBoostX::operator() (const HepLorentzVector & w) const {
  return operator*(w);
}

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

inline HepBoostX HepBoostX::inverse() const {
  return HepBoostX( -beta(), gamma() );
}

inline HepBoostX inverseOf ( const HepBoostX & b ) {
  return HepBoostX( -b.beta(), b.gamma());
}

inline HepBoostX & HepBoostX::invert() {
  beta_ = -beta_;
  return *this;
}

// ---------- Tolerance:

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

}  // namespace CLHEP