CGEM BOSS 6.6.5.h
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
 
- 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
 

Detailed Description

Definition at line 24 of file TrkParams.h.

Constructor & Destructor Documentation

◆ TrkParams() [1/3]

TrkParams::TrkParams ( int nParam)

Definition at line 21 of file TrkParams.cxx.

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

Referenced by clone().

◆ TrkParams() [2/3]

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/3]

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()

TrkParams::~TrkParams ( )
virtual

Definition at line 51 of file TrkParams.cxx.

51{}

Member Function Documentation

◆ clone()

TrkParams * TrkParams::clone ( ) const
virtual

Definition at line 45 of file TrkParams.cxx.

45 {
46//--------------------------------------
47 return new TrkParams(*this);
48}
TrkParams(int nParam)
Definition TrkParams.cxx:21

◆ covariance() [1/2]

◆ covariance() [2/2]

const HepSymMatrix & TrkParams::covariance ( ) const
inline

Definition at line 45 of file TrkParams.h.

45{ return DifIndepPar::covariance(); }

◆ operator=()

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}
HepVector & parameter()
Definition DifIndepPar.h:51
HepSymMatrix & covariance()
Definition TrkParams.h:54
Index other(Index i, Index j)

◆ printAll()

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

Definition at line 69 of file TrkParams.cxx.

69 {
70//--------------------------------------
72}
void printAll(std::ostream &os=std::cout) const

◆ weightMatrix()

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}

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