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

◆ ChiSquareFunctionUpdator()

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

Definition at line 19 of file ChiSquareFunctionUpdator.h.

19 { VF_ = VF; }

References VF_.

◆ ~ChiSquareFunctionUpdator()

tauImpactParameter::ChiSquareFunctionUpdator::~ChiSquareFunctionUpdator ( )
inlineoverride

Definition at line 20 of file ChiSquareFunctionUpdator.h.

20 {};

Member Function Documentation

◆ operator()()

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

Definition at line 22 of file ChiSquareFunctionUpdator.h.

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  }

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

◆ Up()

double tauImpactParameter::ChiSquareFunctionUpdator::Up ( ) const
inlineoverride

Definition at line 29 of file ChiSquareFunctionUpdator.h.

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

Member Data Documentation

◆ VF_

TrackHelixVertexFitter* tauImpactParameter::ChiSquareFunctionUpdator::VF_
private

Definition at line 34 of file ChiSquareFunctionUpdator.h.

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

mps_fire.i
i
Definition: mps_fire.py:355
X
#define X(str)
Definition: MuonsGrabber.cc:38
tauImpactParameter::TrackHelixVertexFitter::updateChisquare
virtual double updateChisquare(const TVectorT< double > &inpar)
Definition: TrackHelixVertexFitter.cc:68
vertices_cff.x
x
Definition: vertices_cff.py:29
tauImpactParameter::ChiSquareFunctionUpdator::VF_
TrackHelixVertexFitter * VF_
Definition: ChiSquareFunctionUpdator.h:34