AmpTools
URFcn.h
Go to the documentation of this file.
1 /*
2  * URFcn.h
3  * UpRootMinuit
4  *
5  * Base class allowing user to specify the minuit-style function object to be
6  * invoked in a minimization procedure. Replaces the pointer-to-function
7  * object in Root's original implementation to allow greater user flexibility
8  *
9  * Created by Lawrence Gibbons on Tue Oct 21 2003.
10  * Copyright (c) 2003 __MyCompanyName__. All rights reserved.
11  *
12  */
13 
14 #ifndef UPROOT_URFcn
15 #define UPROOT_URFcn
16 
17 #include <vector>
18 
19 #include "UpRootMinuit/URtypes.h"
20 
21 class URFcn
22 {
23 
24 public:
25  URFcn() {}
26  virtual ~URFcn() {}
27 
28  virtual void operator()( Int_urt &npar, Double_urt *grad, Double_urt &fval, const std::vector<Double_urt>& par, Int_urt flag) = 0;
29 };
30 
31 #endif
Definition: URFcn.h:21
int Int_urt
Definition: URtypes.h:37
virtual void operator()(Int_urt &npar, Double_urt *grad, Double_urt &fval, const std::vector< Double_urt > &par, Int_urt flag)=0
URFcn()
Definition: URFcn.h:25
double Double_urt
Definition: URtypes.h:50
virtual ~URFcn()
Definition: URFcn.h:26