CMS 3D CMS Logo

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  double operator()(const std::vector<double>& x) const override {
23  TVectorT<double> X(x.size());
24  for (unsigned int i = 0; i < x.size(); ++i) {
25  X(i) = x[i];
26  }
27  return VF_->updateChisquare(X);
28  }
29  double Up() const override {
30  return 1.0;
31  } // Error definiton for Chi^2 (virtual function defined in ROOT::Minuit2::FCNBase base-class)
32 
33  private:
35  };
36 
37 } // namespace tauImpactParameter
38 #endif
mps_fire.i
i
Definition: mps_fire.py:355
TrackHelixVertexFitter.h
X
#define X(str)
Definition: MuonsGrabber.cc:38
tauImpactParameter
Definition: Chi2VertexFitter.h:14
tauImpactParameter::TrackHelixVertexFitter::updateChisquare
virtual double updateChisquare(const TVectorT< double > &inpar)
Definition: TrackHelixVertexFitter.cc:68
tauImpactParameter::ChiSquareFunctionUpdator::operator()
double operator()(const std::vector< double > &x) const override
Definition: ChiSquareFunctionUpdator.h:22
tauImpactParameter::TrackHelixVertexFitter
Definition: TrackHelixVertexFitter.h:24
tauImpactParameter::ChiSquareFunctionUpdator::VF_
TrackHelixVertexFitter * VF_
Definition: ChiSquareFunctionUpdator.h:34
tauImpactParameter::ChiSquareFunctionUpdator::~ChiSquareFunctionUpdator
~ChiSquareFunctionUpdator() override
Definition: ChiSquareFunctionUpdator.h:20
tauImpactParameter::ChiSquareFunctionUpdator
Definition: ChiSquareFunctionUpdator.h:17
tauImpactParameter::ChiSquareFunctionUpdator::Up
double Up() const override
Definition: ChiSquareFunctionUpdator.h:29
tauImpactParameter::ChiSquareFunctionUpdator::ChiSquareFunctionUpdator
ChiSquareFunctionUpdator(TrackHelixVertexFitter *VF)
Definition: ChiSquareFunctionUpdator.h:19