/usr/include/root/Math/GenVector/etaMax.h is in libroot-math-genvector-dev 5.34.30-0ubuntu8.
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 | // @(#)root/mathcore:$Id$
// Authors: W. Brown, M. Fischler, L. Moneta 2005
/**********************************************************************
* *
* Copyright (c) 2005 , FNAL MathLib Team *
* *
* *
**********************************************************************/
// Header source file for function etaMax
//
// Created by: Mark Fischler at Thu Jun 2 2005
#ifndef ROOT_Math_GenVector_etaMax
#define ROOT_Math_GenVector_etaMax 1
#include <limits>
#include <cmath>
namespace ROOT {
namespace Math {
/**
The following function could be called to provide the maximum possible
value of pseudorapidity for a non-zero rho. This is log ( max/min )
where max and min are the extrema of positive values for type
long double.
*/
inline
long double etaMax_impl() {
return std::log ( std::numeric_limits<long double>::max()/256.0l ) -
std::log ( std::numeric_limits<long double>::denorm_min()*256.0l )
+ 16.0 * std::log(2.0);
// Actual usage of etaMax() simply returns the number 22756, which is
// the answer this would supply, rounded to a higher integer.
}
/**
Function providing the maximum possible value of pseudorapidity for
a non-zero rho, in the Scalar type with the largest dynamic range.
*/
template <class T>
inline
T etaMax() {
return static_cast<T>(22756.0);
}
} // namespace Math
} // namespace ROOT
#endif /* ROOT_Math_GenVector_etaMax */
|