CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
GenericFunctions
CLHEP
GenericFunctions
CLHEP/GenericFunctions/ACos.hh
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id: ACos.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3
//---------------------ACos-------------------------------------------------//
4
// //
5
// Class ACos //
6
// Joe Boudreau, Petar Maksimovic, November 1999 //
7
// //
8
//--------------------------------------------------------------------------//
9
#ifndef ACos_h
10
#define ACos_h 1
11
#include "
CLHEP/GenericFunctions/AbsFunction.hh
"
12
13
namespace
Genfun {
14
15
class
ACos
:
public
AbsFunction
{
16
17
FUNCTION_OBJECT_DEF
(
ACos
)
18
19
public
:
20
21
// Constructor
22
ACos
();
23
24
// Destructor
25
virtual
~ACos
();
26
27
// Copy constructor
28
ACos
(
const
ACos
&right);
29
30
// Retreive function value
31
virtual
double
operator ()
(
double
argument)
const
;
32
virtual
double
operator ()
(
const
Argument
&
a
)
const
{
return
operator()
(a[0]);}
33
34
// Derivative.
35
Derivative
partial
(
unsigned
int
)
const
;
36
37
// Does this function have an analytic derivative?
38
virtual
bool
hasAnalyticDerivative
()
const
{
return
true
;}
39
40
private
:
41
42
// It is illegal to assign a ACosine
43
const
ACos
& operator=(
const
ACos
&right);
44
45
};
46
47
}
// end namespace Genfun
48
49
#endif
Generated on Mon May 6 2013 04:04:10 for CLHEP by
1.8.1.2