CLHEP/GenericFunctions/Cos.hh
// -*- C++ -*-
// $Id: Cos.hh,v 1.2 2001/05/16 05:10:30 joeb Exp $
//---------------------Cos--------------------------------------------------//
// //
// Class Cos //
// Joe Boudreau, Petar Maksimovic, November 1999 //
// //
//--------------------------------------------------------------------------//
#ifndef Cos_h
#define Cos_h 1
#include "CLHEP/GenericFunctions/AbsFunction.hh"
HEP_BEGIN_NAMESPACE(Genfun)
class Cos : public AbsFunction {
FUNCTION_OBJECT_DEF(Cos)
public:
// Constructor
Cos();
// Destructor
virtual ~Cos();
// Copy constructor
Cos(const Cos &right);
// Retreive function value
virtual double operator ()(double argument) const;
virtual double operator ()(const Argument & a) const {return operator() (a[0]);}
// Derivative.
Derivative partial (unsigned int) const;
// Does this function have an analytic derivative?
virtual bool hasAnalyticDerivative() const {return true;}
private:
// It is illegal to assign a Cosine
const Cos & operator=(const Cos &right);
};
HEP_END_NAMESPACE(Genfun)
#endif
Generated by GNU enscript 1.6.1.