MINT2
Minimisable.h
Go to the documentation of this file.
1 #ifndef MINIMISABLE_HH
2 #define MINIMISABLE_HH
3 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
4 // status: Mon 9 Feb 2009 19:17:55 GMT
5 
6 #include "Mint/IMinimisable.h"
8 
9 namespace MINT{
10 class Minimisable : virtual public IMinimisable{
12  public:
14  Minimisable(const Minimisable& other);
15  virtual ~Minimisable();
16  void setPset(MinuitParameterSet* mps);
18 
19 
20  // you can choose to implement these:
21  virtual void beginFit(){}
22  virtual void parametersChanged(){}
23  virtual void endFit(){}
24 
25  // you'll have to implement this:
26  double getVal() =0;
27 
28  // useful:
29  double getNewVal(){
31  return getVal();
32  }
33 };
34 }//namespace MINT
35 
36 #endif
37 //
double getNewVal()
Definition: Minimisable.h:29
virtual void parametersChanged()
Definition: Minimisable.h:22
MinuitParameterSet * _pset
Definition: Minimisable.h:11
virtual void endFit()
Definition: Minimisable.h:23
void setPset(MinuitParameterSet *mps)
Definition: Minimisable.cpp:21
Minimisable(MinuitParameterSet *mps=0)
Definition: Minimisable.cpp:6
MinuitParameterSet * getParSet()
Definition: Minimisable.cpp:25
virtual void beginFit()
Definition: Minimisable.h:21
double getVal()=0
virtual ~Minimisable()
Definition: Minimisable.cpp:19