CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
tauImpactParameter::ChiSquareFunctionUpdator Class Reference

#include <ChiSquareFunctionUpdator.h>

Inheritance diagram for tauImpactParameter::ChiSquareFunctionUpdator:

Public Member Functions

 ChiSquareFunctionUpdator (TrackHelixVertexFitter *VF)
 
double operator() (const std::vector< double > &x) const override
 
double Up () const override
 
 ~ChiSquareFunctionUpdator () override
 

Private Attributes

TrackHelixVertexFitterVF_
 

Detailed Description

Definition at line 17 of file ChiSquareFunctionUpdator.h.

Constructor & Destructor Documentation

tauImpactParameter::ChiSquareFunctionUpdator::ChiSquareFunctionUpdator ( TrackHelixVertexFitter VF)
inline

Definition at line 19 of file ChiSquareFunctionUpdator.h.

References VF_.

19 { VF_ = VF; }
tauImpactParameter::ChiSquareFunctionUpdator::~ChiSquareFunctionUpdator ( )
inlineoverride

Definition at line 20 of file ChiSquareFunctionUpdator.h.

20 {};

Member Function Documentation

double tauImpactParameter::ChiSquareFunctionUpdator::operator() ( const std::vector< double > &  x) const
inlineoverride

Definition at line 22 of file ChiSquareFunctionUpdator.h.

References mps_fire::i, tauImpactParameter::TrackHelixVertexFitter::updateChisquare(), VF_, and X.

22  {
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  }
#define X(str)
Definition: MuonsGrabber.cc:38
virtual double updateChisquare(const TVectorT< double > &inpar)
double tauImpactParameter::ChiSquareFunctionUpdator::Up ( ) const
inlineoverride

Definition at line 29 of file ChiSquareFunctionUpdator.h.

Referenced by tauImpactParameter::Chi2VertexFitter::fit().

29  {
30  return 1.0;
31  } // Error definiton for Chi^2 (virtual function defined in ROOT::Minuit2::FCNBase base-class)

Member Data Documentation

TrackHelixVertexFitter* tauImpactParameter::ChiSquareFunctionUpdator::VF_
private

Definition at line 34 of file ChiSquareFunctionUpdator.h.

Referenced by ChiSquareFunctionUpdator(), and operator()().