CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ChiSquareFunctionUpdator.h
Go to the documentation of this file.
1 #ifndef RecoTauTag_ImpactParameter_ChiSquareFunctionUpdator_h
2 #define RecoTauTag_ImpactParameter_ChiSquareFunctionUpdator_h
3 
4 /* From SimpleFits Package
5  * Designed an written by
6  * author: Ian M. Nugent
7  * Humboldt Foundations
8  */
9 
10 #include "Minuit2/FCNBase.h"
11 #include "TMatrixT.h"
12 #include "TVectorT.h"
14 
15 namespace tauImpactParameter {
16 
17 class ChiSquareFunctionUpdator : public ROOT::Minuit2::FCNBase {
18  public:
21 
22  virtual double operator() (const std::vector<double>& x) const
23  {
24  TVectorT<double> X(x.size());
25  for ( unsigned int i = 0; i < x.size(); ++i ) {
26  X(i) = x[i];
27  }
28  return VF_->updateChisquare(X);
29  }
30  virtual double Up() const { return 1.0; }// Error definiton for Chi^2 (virtual function defined in ROOT::Minuit2::FCNBase base-class)
31 
32  private:
34 };
35 
36 }
37 #endif
38 
int i
Definition: DBlmapReader.cc:9
#define X(str)
Definition: MuonsGrabber.cc:48
virtual double updateChisquare(const TVectorT< double > &inpar)
virtual double operator()(const std::vector< double > &x) const