BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
NeutParams Class Reference

#include <NeutParams.h>

+ Inheritance diagram for NeutParams:

Public Types

enum  {
  _d0 , _phi0 , _p , _z0 ,
  _tanDip , _s0 , _nneutprm = 6
}
 
enum  {
  _d0 , _phi0 , _p , _z0 ,
  _tanDip , _s0 , _nneutprm = 6
}
 

Public Member Functions

 NeutParams (const HepVector &, const HepSymMatrix &)
 
 NeutParams (double, double, double, double, double, double)
 
 NeutParams (const NeutParams &old)
 
 ~NeutParams ()
 
double & d0 ()
 
double & phi0 ()
 
double & p ()
 
double & z0 ()
 
double & tanDip ()
 
double & s0 ()
 
double d0 () const
 
double phi0 () const
 
double p () const
 
double z0 () const
 
double tanDip () const
 
double s0 () const
 
double sinPhi0 () const
 
double cosPhi0 () const
 
double arcRatio () const
 
 NeutParams (const HepVector &, const HepSymMatrix &)
 
 NeutParams (double, double, double, double, double, double)
 
 NeutParams (const NeutParams &old)
 
 ~NeutParams ()
 
double & d0 ()
 
double & phi0 ()
 
double & p ()
 
double & z0 ()
 
double & tanDip ()
 
double & s0 ()
 
double d0 () const
 
double phi0 () const
 
double p () const
 
double z0 () const
 
double tanDip () const
 
double s0 () const
 
double sinPhi0 () const
 
double cosPhi0 () const
 
double arcRatio () const
 
- Public Member Functions inherited from TrkParams
 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
 

Friends

class NeutTraj
 

Detailed Description

Member Enumeration Documentation

◆ anonymous enum

◆ anonymous enum

anonymous enum
Enumerator
_d0 
_phi0 
_p 
_z0 
_tanDip 
_s0 
_nneutprm 

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

Constructor & Destructor Documentation

◆ NeutParams() [1/6]

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

Definition at line 19 of file NeutParams.cxx.

19 :
20 TrkParams(pvec,pcov){
21//------------------------------------------------------------------------
22
23// Make sure the dimensions of the input matrix and vector are correct
24
25 if( pvec.num_row() != _nneutprm ||
26 pcov.num_row() != _nneutprm ){
27 cout<<"ErrMsg(error)" <<
28 "NeutParams: incorrect constructor vector/matrix dimension" << endl;
29 parameter() = HepVector(_nneutprm,0);
30 covariance() = HepSymMatrix(_nneutprm,0);
31 }
32}

◆ NeutParams() [2/6]

NeutParams::NeutParams ( double  n_d0,
double  n_phi0,
double  n_p,
double  n_z0,
double  n_tanDip,
double  n_s0 
)

Definition at line 36 of file NeutParams.cxx.

37 :
38//------------------------------------------------------------------------
40 d0() = n_d0;
41 phi0() = n_phi0;
42 p() = n_p;
43 z0() = n_z0;
44 s0() = n_s0;
45 tanDip() = n_tanDip;
46}

◆ NeutParams() [3/6]

NeutParams::NeutParams ( const NeutParams old)

Definition at line 51 of file NeutParams.cxx.

51 :
52//------------------------------------------------------------------------
53 TrkParams(old){
54}

◆ ~NeutParams() [1/2]

NeutParams::~NeutParams ( )

Definition at line 77 of file NeutParams.cxx.

78{}

◆ NeutParams() [4/6]

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

◆ NeutParams() [5/6]

NeutParams::NeutParams ( double  ,
double  ,
double  ,
double  ,
double  ,
double   
)

◆ NeutParams() [6/6]

NeutParams::NeutParams ( const NeutParams old)

◆ ~NeutParams() [2/2]

NeutParams::~NeutParams ( )

Member Function Documentation

◆ arcRatio() [1/2]

double NeutParams::arcRatio ( ) const

Definition at line 71 of file NeutParams.cxx.

71 {
72//------------------------------------------------------------------------
73 return sqrt(1. + parameter()[_tanDip] * parameter()[_tanDip]);
74}

◆ arcRatio() [2/2]

double NeutParams::arcRatio ( ) const

◆ cosPhi0() [1/2]

double NeutParams::cosPhi0 ( ) const

Definition at line 64 of file NeutParams.cxx.

64 {
65//------------------------------------------------------------------------
66 return cos(parameter()[_phi0]);
67}
double cos(const BesAngle a)

◆ cosPhi0() [2/2]

double NeutParams::cosPhi0 ( ) const

◆ d0() [1/4]

double & NeutParams::d0 ( )
inline

Definition at line 37 of file InstallArea/include/TrkBase/TrkBase/NeutParams.h.

37{ return parameter()[_d0]; }

Referenced by NeutParams().

◆ d0() [2/4]

double & NeutParams::d0 ( )
inline

◆ d0() [3/4]

double NeutParams::d0 ( ) const
inline

Definition at line 44 of file InstallArea/include/TrkBase/TrkBase/NeutParams.h.

44{ return parameter()[_d0]; }

◆ d0() [4/4]

double NeutParams::d0 ( ) const
inline

◆ p() [1/4]

double & NeutParams::p ( )
inline

Definition at line 39 of file InstallArea/include/TrkBase/TrkBase/NeutParams.h.

39{ return parameter()[_p]; }

Referenced by NeutParams().

◆ p() [2/4]

double & NeutParams::p ( )
inline

◆ p() [3/4]

double NeutParams::p ( ) const
inline

Definition at line 46 of file InstallArea/include/TrkBase/TrkBase/NeutParams.h.

46{ return parameter()[_p]; }

◆ p() [4/4]

double NeutParams::p ( ) const
inline

◆ phi0() [1/4]

double & NeutParams::phi0 ( )
inline

Definition at line 38 of file InstallArea/include/TrkBase/TrkBase/NeutParams.h.

38{ return parameter()[_phi0]; }

Referenced by NeutParams().

◆ phi0() [2/4]

double & NeutParams::phi0 ( )
inline

◆ phi0() [3/4]

double NeutParams::phi0 ( ) const
inline

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

45{ return parameter()[_phi0]; }

◆ phi0() [4/4]

double NeutParams::phi0 ( ) const
inline

◆ s0() [1/4]

double & NeutParams::s0 ( )
inline

Definition at line 42 of file InstallArea/include/TrkBase/TrkBase/NeutParams.h.

42{ return parameter()[_s0]; }

Referenced by NeutParams().

◆ s0() [2/4]

double & NeutParams::s0 ( )
inline

◆ s0() [3/4]

double NeutParams::s0 ( ) const
inline

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

49{ return parameter()[_s0]; }

◆ s0() [4/4]

double NeutParams::s0 ( ) const
inline

◆ sinPhi0() [1/2]

double NeutParams::sinPhi0 ( ) const

Definition at line 57 of file NeutParams.cxx.

57 {
58//------------------------------------------------------------------------
59 return sin(parameter()[_phi0]);
60}
double sin(const BesAngle a)

◆ sinPhi0() [2/2]

double NeutParams::sinPhi0 ( ) const

◆ tanDip() [1/4]

double & NeutParams::tanDip ( )
inline

Definition at line 41 of file InstallArea/include/TrkBase/TrkBase/NeutParams.h.

41{ return parameter()[_tanDip]; }

Referenced by NeutParams().

◆ tanDip() [2/4]

double & NeutParams::tanDip ( )
inline

◆ tanDip() [3/4]

double NeutParams::tanDip ( ) const
inline

Definition at line 48 of file InstallArea/include/TrkBase/TrkBase/NeutParams.h.

48{ return parameter()[_tanDip]; }

◆ tanDip() [4/4]

double NeutParams::tanDip ( ) const
inline

◆ z0() [1/4]

double & NeutParams::z0 ( )
inline

Definition at line 40 of file InstallArea/include/TrkBase/TrkBase/NeutParams.h.

40{ return parameter()[_z0]; }

Referenced by NeutParams().

◆ z0() [2/4]

double & NeutParams::z0 ( )
inline

◆ z0() [3/4]

double NeutParams::z0 ( ) const
inline

Definition at line 47 of file InstallArea/include/TrkBase/TrkBase/NeutParams.h.

47{ return parameter()[_z0]; }

◆ z0() [4/4]

double NeutParams::z0 ( ) const
inline

Friends And Related Function Documentation

◆ NeutTraj

NeutTraj
friend

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