CLHEP
2.4.7.1
C++ Class Library for High Energy Physics
CLHEP
GenericFunctions
Cos.hh
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id: Cos.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3
//---------------------Cos--------------------------------------------------//
4
// //
5
// Class Cos //
6
// Joe Boudreau, Petar Maksimovic, November 1999 //
7
// //
8
//--------------------------------------------------------------------------//
9
#ifndef Cos_h
10
#define Cos_h 1
11
#include "
CLHEP/GenericFunctions/AbsFunction.hh
"
12
13
namespace
Genfun
{
14
19
class
Cos
:
public
AbsFunction
{
20
21
FUNCTION_OBJECT_DEF
(
Cos
)
22
23
public
:
24
25
// Constructor
26
Cos
();
27
28
// Destructor
29
virtual
~Cos
();
30
31
// Copy constructor
32
Cos
(
const
Cos
&right);
33
34
// Retreive function value
35
virtual
double
operator ()
(
double
argument)
const override
;
36
virtual
double
operator ()
(
const
Argument
& a)
const override
{
return
operator()
(a[0]);}
37
38
// Derivative.
39
Derivative
partial
(
unsigned
int
)
const override
;
40
41
// Does this function have an analytic derivative?
42
virtual
bool
hasAnalyticDerivative
()
const override
{
return
true
;}
43
44
private
:
45
46
// It is illegal to assign a Cosine
47
const
Cos
& operator=(
const
Cos
&right);
48
49
};
50
}
// namespace Genfun
51
#endif
AbsFunction.hh
FUNCTION_OBJECT_DEF
#define FUNCTION_OBJECT_DEF(classname)
Definition
AbsFunction.hh:143
Genfun::AbsFunction
Definition
AbsFunction.hh:48
Genfun::Argument
Definition
Argument.hh:17
Genfun::Cos
Definition
Cos.hh:19
Genfun::Cos::partial
Derivative partial(unsigned int) const override
Genfun::Cos::hasAnalyticDerivative
virtual bool hasAnalyticDerivative() const override
Definition
Cos.hh:42
Genfun::Cos::operator()
virtual double operator()(double argument) const override
Genfun::Cos::Cos
Cos(const Cos &right)
Genfun::Cos::Cos
Cos()
Genfun::Cos::~Cos
virtual ~Cos()
Genfun::FunctionNoop
Definition
FunctionNoop.hh:19
Genfun
Definition
Abs.hh:14
Generated by
1.12.0