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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

◆ anonymous enum

◆ anonymous enum

anonymous enum
Enumerator
nParam 

Definition at line 32 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkExchangePar.h.

32{nParam = 5};

◆ anonymous enum

anonymous enum
Enumerator
ex_d0 
ex_phi0 
ex_omega 
ex_z0 
ex_tanDip 

Definition at line 33 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkExchangePar.h.

Constructor & Destructor Documentation

◆ TrkExchangePar() [1/8]

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}

◆ TrkExchangePar() [2/8]

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

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

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() [1/2]

TrkExchangePar::~TrkExchangePar ( )

Definition at line 62 of file TrkExchangePar.cxx.

62{}

◆ TrkExchangePar() [5/8]

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

◆ TrkExchangePar() [6/8]

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

◆ TrkExchangePar() [7/8]

TrkExchangePar::TrkExchangePar ( const HepVector &  )

◆ TrkExchangePar() [8/8]

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

◆ ~TrkExchangePar() [2/2]

TrkExchangePar::~TrkExchangePar ( )

Member Function Documentation

◆ covariance() [1/4]

HepSymMatrix & TrkExchangePar::covariance ( )
inline

Definition at line 51 of file InstallArea/include/TrkBase/TrkBase/TrkExchangePar.h.

51{return paramErr;}

◆ covariance() [2/4]

HepSymMatrix & TrkExchangePar::covariance ( )
inline

Definition at line 51 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkExchangePar.h.

51{return paramErr;}

◆ covariance() [3/4]

◆ covariance() [4/4]

const HepSymMatrix & TrkExchangePar::covariance ( ) const
inline

Definition at line 50 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkExchangePar.h.

50{return paramErr;}

◆ d0() [1/2]

◆ d0() [2/2]

double TrkExchangePar::d0 ( ) const
inline

Definition at line 42 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkExchangePar.h.

42{return paramVec[ex_d0];}

◆ omega() [1/2]

◆ omega() [2/2]

double TrkExchangePar::omega ( ) const
inline

◆ params() [1/4]

HepVector & TrkExchangePar::params ( )
inline

Definition at line 49 of file InstallArea/include/TrkBase/TrkBase/TrkExchangePar.h.

49{return paramVec;}

◆ params() [2/4]

HepVector & TrkExchangePar::params ( )
inline

Definition at line 49 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkExchangePar.h.

49{return paramVec;}

◆ params() [3/4]

const HepVector & TrkExchangePar::params ( ) const
inline

◆ params() [4/4]

const HepVector & TrkExchangePar::params ( ) const
inline

Definition at line 48 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkExchangePar.h.

48{return paramVec;}

◆ phi0() [1/2]

◆ phi0() [2/2]

double TrkExchangePar::phi0 ( ) const
inline

◆ print() [1/2]

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

Referenced by operator<<().

◆ print() [2/2]

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

◆ printAll() [1/2]

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

◆ printAll() [2/2]

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

◆ setD0() [1/2]

void TrkExchangePar::setD0 ( double  in)
inline

Definition at line 53 of file InstallArea/include/TrkBase/TrkBase/TrkExchangePar.h.

53{paramVec[ex_d0] = in;}

◆ setD0() [2/2]

void TrkExchangePar::setD0 ( double  in)
inline

◆ setError() [1/2]

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

Definition at line 58 of file InstallArea/include/TrkBase/TrkBase/TrkExchangePar.h.

58{paramErr = in;}

◆ setError() [2/2]

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

◆ setOmega() [1/2]

void TrkExchangePar::setOmega ( double  in)
inline

Definition at line 55 of file InstallArea/include/TrkBase/TrkBase/TrkExchangePar.h.

55{paramVec[ex_omega] = in;}

◆ setOmega() [2/2]

void TrkExchangePar::setOmega ( double  in)
inline

◆ setPhi0() [1/2]

void TrkExchangePar::setPhi0 ( double  in)
inline

Definition at line 54 of file InstallArea/include/TrkBase/TrkBase/TrkExchangePar.h.

54{paramVec[ex_phi0] = in;}

◆ setPhi0() [2/2]

void TrkExchangePar::setPhi0 ( double  in)
inline

◆ setTanDip() [1/2]

void TrkExchangePar::setTanDip ( double  in)
inline

Definition at line 57 of file InstallArea/include/TrkBase/TrkBase/TrkExchangePar.h.

57{paramVec[ex_tanDip] = in;}

Referenced by TrkHelixMaker::addZValues().

◆ setTanDip() [2/2]

void TrkExchangePar::setTanDip ( double  in)
inline

◆ setZ0() [1/2]

void TrkExchangePar::setZ0 ( double  in)
inline

Definition at line 56 of file InstallArea/include/TrkBase/TrkBase/TrkExchangePar.h.

56{paramVec[ex_z0] = in;}

Referenced by TrkHelixMaker::addZValues().

◆ setZ0() [2/2]

void TrkExchangePar::setZ0 ( double  in)
inline

◆ tanDip() [1/2]

◆ tanDip() [2/2]

double TrkExchangePar::tanDip ( ) const
inline

◆ z0() [1/2]

◆ z0() [2/2]

double TrkExchangePar::z0 ( ) const
inline

Definition at line 45 of file Reconstruction/MdcPatRec/TrkBase/TrkBase-00-01-12/TrkBase/TrkExchangePar.h.

45{return paramVec[ex_z0];}

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