/usr/include/CLHEP/GenericFunctions/EllipticIntegral.hh 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 | // -*- C++ -*-
// $Id:
//---------------------EllipticIntegral---------------------------------------//
// //
// //
// Joe Boudreau, September 2001 //
// //
//-------------------------------------------------------------------------- //
#ifndef EllipticIntegral_h
#define EllipticIntegral_h 1
#include "CLHEP/GenericFunctions/AbsFunction.hh"
#include "CLHEP/GenericFunctions/Parameter.hh"
namespace Genfun {
namespace EllipticIntegral {
class FirstKind : public AbsFunction {
FUNCTION_OBJECT_DEF(FirstKind)
public:
// Constructor:
FirstKind ();
// Copy constructor
FirstKind(const FirstKind &right);
// Destructor
virtual ~FirstKind();
// Retreive function value
virtual double operator ()(double argument) const;
virtual double operator ()(const Argument & a) const {return operator() (a[0]);}
// Get the k-parameter. Default value = 1.0.
Parameter & k();
const Parameter & k() const;
private:
// It is illegal to assign an adjustable constant
const FirstKind & operator=(const FirstKind &right);
Parameter _k; // the k parameter
};
class SecondKind : public AbsFunction {
FUNCTION_OBJECT_DEF(SecondKind)
public:
// Constructor:
SecondKind ();
// Copy constructor
SecondKind(const SecondKind &right);
// Destructor
virtual ~SecondKind();
// Retreive function value
virtual double operator ()(double argument) const;
virtual double operator ()(const Argument & a) const {return operator() (a[0]);}
// Get the k-parameter. Default value = 1.0.
Parameter & k();
const Parameter & k() const;
private:
// It is illegal to assign an adjustable constant
const SecondKind & operator=(const SecondKind &right);
Parameter _k; // the k parameter
};
class ThirdKind : public AbsFunction {
FUNCTION_OBJECT_DEF(ThirdKind)
public:
// Constructor:
ThirdKind ();
// Copy constructor
ThirdKind(const ThirdKind &right);
// Destructor
virtual ~ThirdKind();
// Retreive function value
virtual double operator ()(double argument) const;
virtual double operator ()(const Argument & a) const {return operator() (a[0]);}
// Get the k-parameter. Default value = 1.0.
Parameter & k();
const Parameter & k() const;
// Get the n-parameter. Default value = 1.0.
Parameter & n();
const Parameter & n() const;
private:
// It is illegal to assign an adjustable constant
const ThirdKind & operator=(const ThirdKind &right);
Parameter _k; // the k parameter
Parameter _n; // the n parameter
};
} // end namespace EllipticIntegral
} // end namespace Genfun
#include "CLHEP/GenericFunctions/EllipticIntegral.icc"
#endif
|