BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
DifIndepPar Class Reference

#include <DifIndepPar.h>

+ Inheritance diagram for DifIndepPar:

Public Member Functions

 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 39 of file DifIndepPar.h.

Constructor & Destructor Documentation

◆ DifIndepPar() [1/4]

DifIndepPar::DifIndepPar ( int  n)

Definition at line 29 of file DifIndepPar.cxx.

29 :
30 parvec(ndim,0),
31 parcov(ndim,1)
32{}

◆ DifIndepPar() [2/4]

DifIndepPar::DifIndepPar ( const HepVector &  a)

Definition at line 34 of file DifIndepPar.cxx.

34 :
35 parvec(a),
36 parcov(nPar(),1)
37{}
int nPar() const
Definition: DifIndepPar.h:55

◆ DifIndepPar() [3/4]

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

Definition at line 52 of file DifIndepPar.cxx.

52 :
53 parvec(pvec), parcov(pcov) {
54}

◆ DifIndepPar() [4/4]

DifIndepPar::DifIndepPar ( const DifIndepPar rhs)

Definition at line 39 of file DifIndepPar.cxx.

39 :
40 parvec(rhs.parameter()),
41 parcov(rhs.covariance())
42{}
HepVector & parameter()
Definition: DifIndepPar.h:51
HepSymMatrix & covariance()
Definition: DifIndepPar.h:53

Member Function Documentation

◆ covariance() [1/2]

HepSymMatrix & DifIndepPar::covariance ( )
inline

◆ covariance() [2/2]

const HepSymMatrix & DifIndepPar::covariance ( ) const
inline

Definition at line 54 of file DifIndepPar.h.

54{ return parcov;}

◆ difPar()

DifNumber DifIndepPar::difPar ( int  i) const

Definition at line 63 of file DifIndepPar.cxx.

63 {
64 return DifNumber(parvec(i),i,this);
65}

Referenced by difParameters().

◆ difParameters()

DifArray DifIndepPar::difParameters ( ) const

Definition at line 44 of file DifIndepPar.cxx.

44 {
45 DifArray pars(nPar(),nPar());
46 for(int i=1; i<=nPar(); i++){
47 pars(i)=difPar(i);
48 }
49 return pars;
50}
DifNumber difPar(int i) const
Definition: DifIndepPar.cxx:63

◆ nPar()

int DifIndepPar::nPar ( ) const
inline

Definition at line 55 of file DifIndepPar.h.

55{return parvec.num_row();}

Referenced by difParameters(), TrkSimpTraj::invert(), TrkSimpleRep::nDof(), NeutTraj::nPar(), and TrkSimpTraj::nPar().

◆ parameter() [1/2]

◆ parameter() [2/2]

const HepVector & DifIndepPar::parameter ( ) const
inline

Definition at line 52 of file DifIndepPar.h.

52{ return parvec;}

◆ print()

void DifIndepPar::print ( std::ostream &  os = std::cout) const

Definition at line 69 of file DifIndepPar.cxx.

69 {
70//--------------------------------------
71 os << "DifIndepPar Parameter Vector = " << parvec;
72}

Referenced by operator<<().

◆ printAll()

void DifIndepPar::printAll ( std::ostream &  os = std::cout) const

Definition at line 76 of file DifIndepPar.cxx.

76 {
77//--------------------------------------
78 os << "DifIndepPar Parameter Vector = " << parvec << endl;
79 os << "DifIndepPar Covariance Matrix = " << parcov << endl;
80}

Referenced by TrkParams::printAll().


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