Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:36

0001 // -*- C++ -*-
0002 // $Id: 
0003 //---------------------Theta------------------------------------------------//
0004 //                                                                          //
0005 // Class Theta                                                              //
0006 // Joe Boudreau, Petar Maksimovic, November 1999                            //
0007 //                                                                          //
0008 //--------------------------------------------------------------------------//
0009 #ifndef Theta_h
0010 #define Theta_h 1
0011 #include "CLHEP/GenericFunctions/AbsFunction.hh"
0012 namespace Genfun {
0013 
0014   /**
0015    * @author
0016    * @ingroup genfun
0017    */
0018   class Theta : public AbsFunction  {
0019 
0020     FUNCTION_OBJECT_DEF(Theta)
0021 
0022       public:
0023 
0024     // Constructor
0025     Theta();
0026 
0027     // Destructor
0028     virtual ~Theta();
0029   
0030     // Copy constructor
0031     Theta(const Theta &right);
0032   
0033     // Retreive function value
0034     virtual double operator ()(double argument) const override;
0035     virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
0036 
0037     // Derivative.  
0038     Derivative partial (unsigned int) const override;
0039 
0040     // Does this function have an analytic derivative?
0041     virtual bool hasAnalyticDerivative() const override {return true;}
0042   
0043   
0044   private:
0045 
0046     // It is illegal to assign a Theta
0047     const Theta & operator=(const Theta &right);
0048 
0049   };
0050 } // namespace Genfun
0051 
0052 #endif