CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkExchangePar Class Reference

#include <TrkExchangePar.h>

Public Types

enum  { nParam = 5 }
 
enum  {
  ex_d0 , ex_phi0 , ex_omega , ex_z0 ,
  ex_tanDip
}
 

Public Member Functions

 TrkExchangePar (const HepVector &, const HepMatrix &)
 
 TrkExchangePar (const HepVector &, const HepSymMatrix &)
 
 TrkExchangePar (const HepVector &)
 
 TrkExchangePar (double d0In, double phi0In, double omegaIn, double z0In, double tanDipIn)
 
 ~TrkExchangePar ()
 
double d0 () const
 
double phi0 () const
 
double omega () const
 
double z0 () const
 
double tanDip () const
 
const HepVector & params () const
 
HepVector & params ()
 
const HepSymMatrix & covariance () const
 
HepSymMatrix & covariance ()
 
void setD0 (double in)
 
void setPhi0 (double in)
 
void setOmega (double in)
 
void setZ0 (double in)
 
void setTanDip (double in)
 
void setError (const HepSymMatrix &in)
 
void print (std::ostream &o) const
 
void printAll (std::ostream &o) const
 

Detailed Description

Definition at line 30 of file TrkExchangePar.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
nParam 

Definition at line 32 of file TrkExchangePar.h.

◆ anonymous enum

anonymous enum
Enumerator
ex_d0 
ex_phi0 
ex_omega 
ex_z0 
ex_tanDip 

Definition at line 33 of file TrkExchangePar.h.

Constructor & Destructor Documentation

◆ TrkExchangePar() [1/4]

TrkExchangePar::TrkExchangePar ( const HepVector & inV,
const HepMatrix & inErr )

Definition at line 21 of file TrkExchangePar.cxx.

22 : paramVec(inV) {
23//----------------------------------------------------------------------
24 assert(paramVec.num_row() == nParam);
25 assert(inErr.num_row() == nParam);
26 assert(inErr.num_col() == nParam);
27 paramErr.assign(inErr);
28 paramVec[ex_phi0] = BesAngle(paramVec[ex_phi0]).rad();
29}
double rad() const
Definition BesAngle.h:118

◆ TrkExchangePar() [2/4]

TrkExchangePar::TrkExchangePar ( const HepVector & inV,
const HepSymMatrix & err )

Definition at line 32 of file TrkExchangePar.cxx.

33 : paramVec(inV), paramErr(err) {
34//----------------------------------------------------------------------
35 assert(paramVec.num_row() == nParam);
36 assert(paramErr.num_row() == nParam);
37 paramVec[ex_phi0] = BesAngle(paramVec[ex_phi0]).rad();
38}

◆ TrkExchangePar() [3/4]

TrkExchangePar::TrkExchangePar ( const HepVector & inV)

Definition at line 41 of file TrkExchangePar.cxx.

42 : paramVec(inV), paramErr(nParam, 1) {
43//----------------------------------------------------------------------
44 assert(paramVec.num_row() == nParam);
45 paramVec[ex_phi0] = BesAngle(paramVec[ex_phi0]).rad();
46}

◆ TrkExchangePar() [4/4]

TrkExchangePar::TrkExchangePar ( double d0In,
double phi0In,
double omegaIn,
double z0In,
double tanDipIn )

Definition at line 49 of file TrkExchangePar.cxx.

51 : paramVec(nParam), paramErr(nParam, 1) {
52//----------------------------------------------------------------------
53 paramVec[ex_d0] = d0In;
54 paramVec[ex_phi0] = phi0In;
55 paramVec[ex_omega] = omegaIn;
56 paramVec[ex_z0] = z0In;
57 paramVec[ex_tanDip] = tanDipIn;
58 paramVec[ex_phi0] = BesAngle(paramVec[ex_phi0]).rad();
59}

◆ ~TrkExchangePar()

TrkExchangePar::~TrkExchangePar ( )

Definition at line 62 of file TrkExchangePar.cxx.

62{}

Member Function Documentation

◆ covariance() [1/2]

HepSymMatrix & TrkExchangePar::covariance ( )
inline

Definition at line 51 of file TrkExchangePar.h.

51{return paramErr;}

◆ covariance() [2/2]

◆ d0()

◆ omega()

◆ params() [1/2]

HepVector & TrkExchangePar::params ( )
inline

Definition at line 49 of file TrkExchangePar.h.

49{return paramVec;}

◆ params() [2/2]

const HepVector & TrkExchangePar::params ( ) const
inline

◆ phi0()

◆ print()

void TrkExchangePar::print ( std::ostream & o) const

Definition at line 67 of file TrkExchangePar.cxx.

67 {
68 o << "d0=" << d0() << " phi0=" << phi0() << " omega=" << omega()
69 << " z0=" << z0() << " tanDip=" << tanDip();
70}
double phi0() const
double omega() const
double z0() const
double d0() const
double tanDip() const

Referenced by operator<<(), and printAll().

◆ printAll()

void TrkExchangePar::printAll ( std::ostream & o) const

Definition at line 72 of file TrkExchangePar.cxx.

72 {
73 print(o);
74 o << endl << covariance() << endl;
75}
void print(std::ostream &o) const
const HepSymMatrix & covariance() const

◆ setD0()

void TrkExchangePar::setD0 ( double in)
inline

Definition at line 53 of file TrkExchangePar.h.

53{paramVec[ex_d0] = in;}

◆ setError()

void TrkExchangePar::setError ( const HepSymMatrix & in)
inline

Definition at line 58 of file TrkExchangePar.h.

58{paramErr = in;}

◆ setOmega()

void TrkExchangePar::setOmega ( double in)
inline

Definition at line 55 of file TrkExchangePar.h.

55{paramVec[ex_omega] = in;}

◆ setPhi0()

void TrkExchangePar::setPhi0 ( double in)
inline

Definition at line 54 of file TrkExchangePar.h.

54{paramVec[ex_phi0] = in;}

◆ setTanDip()

void TrkExchangePar::setTanDip ( double in)
inline

Definition at line 57 of file TrkExchangePar.h.

57{paramVec[ex_tanDip] = in;}

Referenced by TrkHelixMaker::addZValues().

◆ setZ0()

void TrkExchangePar::setZ0 ( double in)
inline

Definition at line 56 of file TrkExchangePar.h.

56{paramVec[ex_z0] = in;}

Referenced by TrkHelixMaker::addZValues().

◆ tanDip()

◆ z0()


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