CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
TKinFitter Class Reference

#include <TKinFitter.h>

Inheritance diagram for TKinFitter:

Public Member Functions

void addConstraint (TAbsFitConstraint *constraint)
 
void addMeasParticle (TAbsFitParticle *particle)
 
void addMeasParticles (TAbsFitParticle *p1, TAbsFitParticle *p2=0, TAbsFitParticle *p3=0, TAbsFitParticle *p4=0, TAbsFitParticle *p5=0, TAbsFitParticle *p6=0, TAbsFitParticle *p7=0, TAbsFitParticle *p8=0, TAbsFitParticle *p9=0)
 
void addUnmeasParticle (TAbsFitParticle *particle)
 
void addUnmeasParticles (TAbsFitParticle *p1, TAbsFitParticle *p2=0, TAbsFitParticle *p3=0, TAbsFitParticle *p4=0, TAbsFitParticle *p5=0, TAbsFitParticle *p6=0, TAbsFitParticle *p7=0, TAbsFitParticle *p8=0, TAbsFitParticle *p9=0)
 
Int_t fit ()
 
const TLorentzVector * get4Vec (Int_t index)
 
const TMatrixD * getCovMatrix ()
 
const TMatrixD * getCovMatrixFit ()
 
Double_t getF ()
 
Double_t getMaxDeltaS ()
 
Double_t getMaxF ()
 
Int_t getMaxNumberIter ()
 
const TAbsFitParticlegetMeasParticle (Int_t index)
 
Int_t getNbIter ()
 
Int_t getNDF ()
 
Int_t getNParA ()
 
Int_t getNParB ()
 
Double_t getS ()
 
Int_t getStatus ()
 
const TAbsFitParticlegetUnmeasParticle (Int_t index)
 
Int_t getVerbosity ()
 
Int_t nbConstraints ()
 
Int_t nbMeasParticles ()
 
Int_t nbUnmeasParticles ()
 
void print ()
 
void reset ()
 
void resetStatus ()
 
void setCovMatrix (TMatrixD &V)
 
void setMaxDeltaS (Double_t maxDeltaS)
 
void setMaxF (Double_t maxF)
 
void setMaxNbIter (Int_t maxNbIter)
 
void setVerbosity (Int_t verbosity=1)
 
 TKinFitter ()
 
 TKinFitter (const TString &name, const TString &title)
 
 ~TKinFitter ()
 

Protected Member Functions

Bool_t applyDeltaA ()
 
Bool_t applyDeltaY ()
 
void applyVFit ()
 
Bool_t calcA ()
 
Bool_t calcB ()
 
Bool_t calcC ()
 
Bool_t calcC11 ()
 
Bool_t calcC21 ()
 
Bool_t calcC22 ()
 
Bool_t calcC31 ()
 
Bool_t calcC32 ()
 
Bool_t calcC33 ()
 
Bool_t calcDeltaA ()
 
Bool_t calcDeltaY ()
 
Bool_t calcLambda ()
 
Bool_t calcV ()
 
Bool_t calcVA ()
 
Bool_t calcVB ()
 
Bool_t calcVFit ()
 
Bool_t converged (Double_t F, Double_t prevS, Double_t currS)
 
void countMeasParams ()
 
void countUnmeasParams ()
 
TString getStatusString ()
 
void printMatrix (const TMatrixD &matrix, const TString &name="")
 
void resetParams ()
 

Private Attributes

TMatrixD _A
 
TMatrixD _AT
 
TMatrixD _B
 
TMatrixD _BT
 
TMatrixD _c
 
TMatrixD _C11
 
TMatrixD _C11T
 
TMatrixD _C21
 
TMatrixD _C21T
 
TMatrixD _C22
 
TMatrixD _C22T
 
TMatrixD _C31
 
TMatrixD _C31T
 
TMatrixD _C32
 
TMatrixD _C32T
 
TMatrixD _C33
 
TMatrixD _C33T
 
std::vector< TAbsFitConstraint * > _constraints
 
TMatrixD _deltaA
 
TMatrixD _deltaAstar
 
TMatrixD _deltaY
 
TMatrixD _deltaYstar
 
TMatrixD _lambda
 
TMatrixD _lambdaT
 
TMatrixD _lambdaVFit
 
Double_t _maxDeltaS
 
Double_t _maxF
 
Int_t _maxNbIter
 
std::vector< TAbsFitParticle * > _measParticles
 
Int_t _nbIter
 
Int_t _nParA
 
Int_t _nParB
 
Int_t _status
 
std::vector< TAbsFitParticle * > _unmeasParticles
 
TMatrixD _V
 
TMatrixD _VA
 
TMatrixD _VAinv
 
TMatrixD _VB
 
TMatrixD _VBinv
 
Int_t _verbosity
 
TMatrixD _Vinv
 
TMatrixD _yaVFit
 

Detailed Description

Definition at line 13 of file TKinFitter.h.

Constructor & Destructor Documentation

TKinFitter::TKinFitter ( )

Definition at line 21 of file TKinFitter.cc.

TKinFitter::TKinFitter ( const TString &  name,
const TString &  title 
)

Definition at line 63 of file TKinFitter.cc.

TKinFitter::~TKinFitter ( )

Definition at line 182 of file TKinFitter.cc.

Member Function Documentation

void TKinFitter::addConstraint ( TAbsFitConstraint constraint)

Definition at line 281 of file TKinFitter.cc.

Referenced by CandMassKinFitter::set().

void TKinFitter::addMeasParticle ( TAbsFitParticle particle)

Definition at line 209 of file TKinFitter.cc.

Referenced by CandMassKinFitter::set().

void TKinFitter::addMeasParticles ( TAbsFitParticle p1,
TAbsFitParticle p2 = 0,
TAbsFitParticle p3 = 0,
TAbsFitParticle p4 = 0,
TAbsFitParticle p5 = 0,
TAbsFitParticle p6 = 0,
TAbsFitParticle p7 = 0,
TAbsFitParticle p8 = 0,
TAbsFitParticle p9 = 0 
)

Definition at line 224 of file TKinFitter.cc.

void TKinFitter::addUnmeasParticle ( TAbsFitParticle particle)

Definition at line 245 of file TKinFitter.cc.

void TKinFitter::addUnmeasParticles ( TAbsFitParticle p1,
TAbsFitParticle p2 = 0,
TAbsFitParticle p3 = 0,
TAbsFitParticle p4 = 0,
TAbsFitParticle p5 = 0,
TAbsFitParticle p6 = 0,
TAbsFitParticle p7 = 0,
TAbsFitParticle p8 = 0,
TAbsFitParticle p9 = 0 
)

Definition at line 260 of file TKinFitter.cc.

Bool_t TKinFitter::applyDeltaA ( )
protected

Definition at line 1038 of file TKinFitter.cc.

Bool_t TKinFitter::applyDeltaY ( )
protected

Definition at line 1059 of file TKinFitter.cc.

void TKinFitter::applyVFit ( )
protected

Definition at line 991 of file TKinFitter.cc.

Bool_t TKinFitter::calcA ( )
protected

Definition at line 519 of file TKinFitter.cc.

Bool_t TKinFitter::calcB ( )
protected

Definition at line 558 of file TKinFitter.cc.

Bool_t TKinFitter::calcC ( )
protected

Definition at line 796 of file TKinFitter.cc.

Bool_t TKinFitter::calcC11 ( )
protected

Definition at line 668 of file TKinFitter.cc.

Bool_t TKinFitter::calcC21 ( )
protected

Definition at line 698 of file TKinFitter.cc.

Bool_t TKinFitter::calcC22 ( )
protected

Definition at line 717 of file TKinFitter.cc.

Bool_t TKinFitter::calcC31 ( )
protected

Definition at line 731 of file TKinFitter.cc.

Bool_t TKinFitter::calcC32 ( )
protected

Definition at line 758 of file TKinFitter.cc.

Bool_t TKinFitter::calcC33 ( )
protected

Definition at line 774 of file TKinFitter.cc.

Bool_t TKinFitter::calcDeltaA ( )
protected

Definition at line 890 of file TKinFitter.cc.

Bool_t TKinFitter::calcDeltaY ( )
protected

Definition at line 909 of file TKinFitter.cc.

Bool_t TKinFitter::calcLambda ( )
protected

Definition at line 928 of file TKinFitter.cc.

Bool_t TKinFitter::calcV ( )
protected

Definition at line 467 of file TKinFitter.cc.

Bool_t TKinFitter::calcVA ( )
protected

Definition at line 647 of file TKinFitter.cc.

Bool_t TKinFitter::calcVB ( )
protected

Definition at line 626 of file TKinFitter.cc.

Bool_t TKinFitter::calcVFit ( )
protected

Definition at line 944 of file TKinFitter.cc.

Bool_t TKinFitter::converged ( Double_t  F,
Double_t  prevS,
Double_t  currS 
)
protected

Definition at line 1126 of file TKinFitter.cc.

void TKinFitter::countMeasParams ( )
protected

Definition at line 186 of file TKinFitter.cc.

void TKinFitter::countUnmeasParams ( )
protected

Definition at line 199 of file TKinFitter.cc.

Int_t TKinFitter::fit ( )

Definition at line 309 of file TKinFitter.cc.

Referenced by CandMassKinFitter::set().

const TLorentzVector* TKinFitter::get4Vec ( Int_t  index)
inline

Definition at line 56 of file TKinFitter.h.

References _measParticles.

56 { return (_measParticles[index])->getCurr4Vec(); }
std::vector< TAbsFitParticle * > _measParticles
Definition: TKinFitter.h:145
const TMatrixD* TKinFitter::getCovMatrix ( )
inline

Definition at line 46 of file TKinFitter.h.

References _V.

46 { return &_V; }
TMatrixD _V
Definition: TKinFitter.h:110
const TMatrixD* TKinFitter::getCovMatrixFit ( )
inline

Definition at line 48 of file TKinFitter.h.

References _yaVFit.

48 { return &_yaVFit; }
TMatrixD _yaVFit
Definition: TKinFitter.h:139
Double_t TKinFitter::getF ( )

Definition at line 1095 of file TKinFitter.cc.

Double_t TKinFitter::getMaxDeltaS ( )
inline

Definition at line 43 of file TKinFitter.h.

References _maxDeltaS.

43 { return _maxDeltaS; }
Double_t _maxDeltaS
Definition: TKinFitter.h:102
Double_t TKinFitter::getMaxF ( )
inline

Definition at line 45 of file TKinFitter.h.

References _maxF.

45 { return _maxF; }
Double_t _maxF
Definition: TKinFitter.h:103
Int_t TKinFitter::getMaxNumberIter ( )
inline

Definition at line 39 of file TKinFitter.h.

References _maxNbIter.

39 { return _maxNbIter; }
Int_t _maxNbIter
Definition: TKinFitter.h:101
const TAbsFitParticle* TKinFitter::getMeasParticle ( Int_t  index)
inline

Definition at line 55 of file TKinFitter.h.

References _measParticles, and cmsHarvester::index.

55 { return _measParticles[index]; }
std::vector< TAbsFitParticle * > _measParticles
Definition: TKinFitter.h:145
Int_t TKinFitter::getNbIter ( )
inline

Definition at line 40 of file TKinFitter.h.

References _nbIter.

Referenced by TopKinFitter::fitNrIter().

40 { return _nbIter; }
Int_t _nbIter
Definition: TKinFitter.h:149
Int_t TKinFitter::getNDF ( )
inline

Definition at line 35 of file TKinFitter.h.

References _constraints, and _nParA.

Referenced by TopKinFitter::fitProb(), and CandMassKinFitter::set().

35 { return (_constraints.size() - _nParA); }
Int_t _nParA
Definition: TKinFitter.h:141
std::vector< TAbsFitConstraint * > _constraints
Definition: TKinFitter.h:144
Int_t TKinFitter::getNParA ( )
inline

Definition at line 36 of file TKinFitter.h.

References _nParA.

36 { return _nParA; }
Int_t _nParA
Definition: TKinFitter.h:141
Int_t TKinFitter::getNParB ( )
inline

Definition at line 37 of file TKinFitter.h.

References _nParB.

37 { return _nParB; }
Int_t _nParB
Definition: TKinFitter.h:142
Double_t TKinFitter::getS ( )
Int_t TKinFitter::getStatus ( void  )
inline

Definition at line 41 of file TKinFitter.h.

References _status.

41 { return _status; }
Int_t _status
Definition: TKinFitter.h:148
TString TKinFitter::getStatusString ( )
protected

Definition at line 1142 of file TKinFitter.cc.

const TAbsFitParticle* TKinFitter::getUnmeasParticle ( Int_t  index)
inline

Definition at line 59 of file TKinFitter.h.

References _unmeasParticles, and cmsHarvester::index.

59 { return _unmeasParticles[index]; }
std::vector< TAbsFitParticle * > _unmeasParticles
Definition: TKinFitter.h:146
Int_t TKinFitter::getVerbosity ( )
inline

Definition at line 52 of file TKinFitter.h.

References _verbosity.

52 { return _verbosity; }
Int_t _verbosity
Definition: TKinFitter.h:104
Int_t TKinFitter::nbConstraints ( )
inline

Definition at line 60 of file TKinFitter.h.

References _constraints.

60 { return _constraints.size(); }
std::vector< TAbsFitConstraint * > _constraints
Definition: TKinFitter.h:144
Int_t TKinFitter::nbMeasParticles ( )
inline

Definition at line 54 of file TKinFitter.h.

References _measParticles.

54 { return _measParticles.size(); }
std::vector< TAbsFitParticle * > _measParticles
Definition: TKinFitter.h:145
Int_t TKinFitter::nbUnmeasParticles ( )
inline

Definition at line 58 of file TKinFitter.h.

References _unmeasParticles.

58 { return _unmeasParticles.size(); }
std::vector< TAbsFitParticle * > _unmeasParticles
Definition: TKinFitter.h:146
void TKinFitter::print ( void  )

Definition at line 1174 of file TKinFitter.cc.

void TKinFitter::printMatrix ( const TMatrixD &  matrix,
const TString &  name = "" 
)
protected

Definition at line 1256 of file TKinFitter.cc.

void TKinFitter::reset ( void  )

Definition at line 105 of file TKinFitter.cc.

void TKinFitter::resetParams ( )
protected

Definition at line 164 of file TKinFitter.cc.

void TKinFitter::resetStatus ( )

Definition at line 156 of file TKinFitter.cc.

void TKinFitter::setCovMatrix ( TMatrixD &  V)

Definition at line 454 of file TKinFitter.cc.

void TKinFitter::setMaxDeltaS ( Double_t  maxDeltaS)
inline

Definition at line 42 of file TKinFitter.h.

References _maxDeltaS, and Abs().

Referenced by CandMassKinFitter::set(), and TopKinFitter::TopKinFitter().

42 { _maxDeltaS = TMath::Abs( maxDeltaS ); }
T Abs(T a)
Definition: MathUtil.h:49
Double_t _maxDeltaS
Definition: TKinFitter.h:102
void TKinFitter::setMaxF ( Double_t  maxF)
inline

Definition at line 44 of file TKinFitter.h.

References _maxF, and Abs().

Referenced by CandMassKinFitter::set(), and TopKinFitter::TopKinFitter().

44 { _maxF = TMath::Abs( maxF ); }
T Abs(T a)
Definition: MathUtil.h:49
Double_t _maxF
Definition: TKinFitter.h:103
void TKinFitter::setMaxNbIter ( Int_t  maxNbIter)
inline

Definition at line 38 of file TKinFitter.h.

References _maxNbIter.

Referenced by CandMassKinFitter::set(), and TopKinFitter::TopKinFitter().

38 { _maxNbIter = maxNbIter; }
Int_t _maxNbIter
Definition: TKinFitter.h:101
void TKinFitter::setVerbosity ( Int_t  verbosity = 1)

Member Data Documentation

TMatrixD TKinFitter::_A
private

Definition at line 106 of file TKinFitter.h.

TMatrixD TKinFitter::_AT
private

Definition at line 107 of file TKinFitter.h.

TMatrixD TKinFitter::_B
private

Definition at line 108 of file TKinFitter.h.

TMatrixD TKinFitter::_BT
private

Definition at line 109 of file TKinFitter.h.

TMatrixD TKinFitter::_c
private

Definition at line 116 of file TKinFitter.h.

TMatrixD TKinFitter::_C11
private

Definition at line 118 of file TKinFitter.h.

TMatrixD TKinFitter::_C11T
private

Definition at line 119 of file TKinFitter.h.

TMatrixD TKinFitter::_C21
private

Definition at line 120 of file TKinFitter.h.

TMatrixD TKinFitter::_C21T
private

Definition at line 121 of file TKinFitter.h.

TMatrixD TKinFitter::_C22
private

Definition at line 122 of file TKinFitter.h.

TMatrixD TKinFitter::_C22T
private

Definition at line 123 of file TKinFitter.h.

TMatrixD TKinFitter::_C31
private

Definition at line 124 of file TKinFitter.h.

TMatrixD TKinFitter::_C31T
private

Definition at line 125 of file TKinFitter.h.

TMatrixD TKinFitter::_C32
private

Definition at line 126 of file TKinFitter.h.

TMatrixD TKinFitter::_C32T
private

Definition at line 127 of file TKinFitter.h.

TMatrixD TKinFitter::_C33
private

Definition at line 128 of file TKinFitter.h.

TMatrixD TKinFitter::_C33T
private

Definition at line 129 of file TKinFitter.h.

std::vector<TAbsFitConstraint*> TKinFitter::_constraints
private

Definition at line 144 of file TKinFitter.h.

Referenced by getNDF(), and nbConstraints().

TMatrixD TKinFitter::_deltaA
private

Definition at line 131 of file TKinFitter.h.

TMatrixD TKinFitter::_deltaAstar
private

Definition at line 133 of file TKinFitter.h.

TMatrixD TKinFitter::_deltaY
private

Definition at line 132 of file TKinFitter.h.

TMatrixD TKinFitter::_deltaYstar
private

Definition at line 134 of file TKinFitter.h.

TMatrixD TKinFitter::_lambda
private

Definition at line 135 of file TKinFitter.h.

TMatrixD TKinFitter::_lambdaT
private

Definition at line 136 of file TKinFitter.h.

TMatrixD TKinFitter::_lambdaVFit
private

Definition at line 138 of file TKinFitter.h.

Double_t TKinFitter::_maxDeltaS
private

Definition at line 102 of file TKinFitter.h.

Referenced by getMaxDeltaS(), and setMaxDeltaS().

Double_t TKinFitter::_maxF
private

Definition at line 103 of file TKinFitter.h.

Referenced by getMaxF(), and setMaxF().

Int_t TKinFitter::_maxNbIter
private

Definition at line 101 of file TKinFitter.h.

Referenced by getMaxNumberIter(), and setMaxNbIter().

std::vector<TAbsFitParticle*> TKinFitter::_measParticles
private

Definition at line 145 of file TKinFitter.h.

Referenced by get4Vec(), getMeasParticle(), and nbMeasParticles().

Int_t TKinFitter::_nbIter
private

Definition at line 149 of file TKinFitter.h.

Referenced by getNbIter().

Int_t TKinFitter::_nParA
private

Definition at line 141 of file TKinFitter.h.

Referenced by getNDF(), and getNParA().

Int_t TKinFitter::_nParB
private

Definition at line 142 of file TKinFitter.h.

Referenced by getNParB().

Int_t TKinFitter::_status
private

Definition at line 148 of file TKinFitter.h.

Referenced by getStatus().

std::vector<TAbsFitParticle*> TKinFitter::_unmeasParticles
private

Definition at line 146 of file TKinFitter.h.

Referenced by getUnmeasParticle(), and nbUnmeasParticles().

TMatrixD TKinFitter::_V
private

Definition at line 110 of file TKinFitter.h.

Referenced by getCovMatrix().

TMatrixD TKinFitter::_VA
private

Definition at line 114 of file TKinFitter.h.

TMatrixD TKinFitter::_VAinv
private

Definition at line 115 of file TKinFitter.h.

TMatrixD TKinFitter::_VB
private

Definition at line 112 of file TKinFitter.h.

TMatrixD TKinFitter::_VBinv
private

Definition at line 113 of file TKinFitter.h.

Int_t TKinFitter::_verbosity
private

Definition at line 104 of file TKinFitter.h.

Referenced by getVerbosity().

TMatrixD TKinFitter::_Vinv
private

Definition at line 111 of file TKinFitter.h.

TMatrixD TKinFitter::_yaVFit
private

Definition at line 139 of file TKinFitter.h.

Referenced by getCovMatrixFit().