BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkParams Class Reference

#include <TrkParams.h>

+ Inheritance diagram for TrkParams:

Public Member Functions

 TrkParams (int nParam)
 
 TrkParams (const HepVector &, const HepSymMatrix &)
 
 TrkParams (const TrkParams &)
 
TrkParamsoperator= (const TrkParams &)
 
virtual TrkParamsclone () const
 
virtual ~TrkParams ()
 
void printAll (std::ostream &os) const
 
HepSymMatrix & covariance ()
 
const HepSymMatrix & covariance () const
 
const HepSymMatrix & weightMatrix () const
 
 TrkParams (int nParam)
 
 TrkParams (const HepVector &, const HepSymMatrix &)
 
 TrkParams (const TrkParams &)
 
TrkParamsoperator= (const TrkParams &)
 
virtual TrkParamsclone () const
 
virtual ~TrkParams ()
 
void printAll (std::ostream &os) const
 
HepSymMatrix & covariance ()
 
const HepSymMatrix & covariance () const
 
const HepSymMatrix & weightMatrix () const
 
- Public Member Functions inherited from DifIndepPar
 DifIndepPar (int n)
 
 DifIndepPar (const HepVector &a)
 
 DifIndepPar (const HepVector &pvec, const HepSymMatrix &pcov)
 
 DifIndepPar (const DifIndepPar &rhs)
 
DifArray difParameters () const
 
DifNumber difPar (int i) const
 
HepVector & parameter ()
 
const HepVector & parameter () const
 
HepSymMatrix & covariance ()
 
const HepSymMatrix & covariance () const
 
int nPar () const
 
void print (std::ostream &os=std::cout) const
 
void printAll (std::ostream &os=std::cout) const
 
 DifIndepPar (int n)
 
 DifIndepPar (const HepVector &a)
 
 DifIndepPar (const HepVector &pvec, const HepSymMatrix &pcov)
 
 DifIndepPar (const DifIndepPar &rhs)
 
DifArray difParameters () const
 
DifNumber difPar (int i) const
 
HepVector & parameter ()
 
const HepVector & parameter () const
 
HepSymMatrix & covariance ()
 
const HepSymMatrix & covariance () const
 
int nPar () const
 
void print (std::ostream &os=std::cout) const
 
void printAll (std::ostream &os=std::cout) const
 

Detailed Description

Constructor & Destructor Documentation

◆ TrkParams() [1/6]

TrkParams::TrkParams ( int  nParam)

Definition at line 21 of file TrkParams.cxx.

21 : DifIndepPar(ndim), _weightInverted(false)
22//--------------------------------------
23{
24}

◆ TrkParams() [2/6]

TrkParams::TrkParams ( const HepVector &  pvec,
const HepSymMatrix &  pcov 
)

Definition at line 28 of file TrkParams.cxx.

28 :
29 DifIndepPar(pvec, pcov), _weightInverted(false)
30//--------------------------------------
31{
32
33}

◆ TrkParams() [3/6]

TrkParams::TrkParams ( const TrkParams old)

Definition at line 37 of file TrkParams.cxx.

37 :
38 DifIndepPar(old), _weightInverted(old._weightInverted), _weightMatrix(old._weightMatrix)
39//--------------------------------------
40{}

◆ ~TrkParams() [1/2]

TrkParams::~TrkParams ( )
virtual

Definition at line 51 of file TrkParams.cxx.

51{}

◆ TrkParams() [4/6]

TrkParams::TrkParams ( int  nParam)

◆ TrkParams() [5/6]

TrkParams::TrkParams ( const HepVector &  ,
const HepSymMatrix &   
)

◆ TrkParams() [6/6]

TrkParams::TrkParams ( const TrkParams )

◆ ~TrkParams() [2/2]

virtual TrkParams::~TrkParams ( )
virtual

Member Function Documentation

◆ clone() [1/2]

TrkParams * TrkParams::clone ( ) const
virtual

Definition at line 45 of file TrkParams.cxx.

45 {
46//--------------------------------------
47 return new TrkParams(*this);
48}

◆ clone() [2/2]

virtual TrkParams * TrkParams::clone ( ) const
virtual

◆ covariance() [1/4]

◆ covariance() [2/4]

HepSymMatrix & TrkParams::covariance ( )
inline

◆ covariance() [3/4]

const HepSymMatrix & TrkParams::covariance ( ) const
inline

Definition at line 45 of file InstallArea/include/TrkBase/TrkBase/TrkParams.h.

45{ return DifIndepPar::covariance(); }

◆ covariance() [4/4]

const HepSymMatrix & TrkParams::covariance ( ) const
inline

◆ operator=() [1/2]

TrkParams & TrkParams::operator= ( const TrkParams other)

Definition at line 57 of file TrkParams.cxx.

57 {
58//--------------------------------------
59 if (this == &other) return *this;
60 parameter() = other.parameter();
61 covariance() = other.covariance();
62 _weightInverted = other._weightInverted ;
63 _weightMatrix = other._weightMatrix ;
64 return *this;
65}
Index other(Index i, Index j)
Definition: EvtCyclic3.cc:118

◆ operator=() [2/2]

TrkParams & TrkParams::operator= ( const TrkParams )

◆ printAll() [1/2]

void TrkParams::printAll ( std::ostream &  os) const

◆ printAll() [2/2]

void TrkParams::printAll ( std::ostream &  os) const

◆ weightMatrix() [1/2]

const HepSymMatrix & TrkParams::weightMatrix ( ) const

Definition at line 75 of file TrkParams.cxx.

75 {
76
77 if (!_weightInverted){
78 _weightMatrix = covariance();
79 int invStatus;
80 _weightMatrix.invert(invStatus);
81 _weightInverted = true;
82 }
83 return _weightMatrix;
84
85}

◆ weightMatrix() [2/2]

const HepSymMatrix & TrkParams::weightMatrix ( ) const

The documentation for this class was generated from the following files: