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