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