00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef Mod_h
00011 #define Mod_h 1
00012 #include "CLHEP/GenericFunctions/AbsFunction.hh"
00013 namespace Genfun {
00014
00019 class Mod : public AbsFunction {
00020
00021 FUNCTION_OBJECT_DEF(Mod)
00022
00023 public:
00024
00025
00026 Mod(double y);
00027
00028
00029 Mod(const Mod &right);
00030
00031
00032 virtual ~Mod();
00033
00034
00035
00036 virtual double operator ()(double argument) const;
00037 virtual double operator ()(const Argument & a) const {return operator() (a[0]);}
00038
00039 private:
00040
00041
00042 const Mod & operator=(const Mod &right);
00043
00044 double _y;
00045
00046 };
00047 }
00048 #endif