BOSS 7.1.0
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
}
 

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

Friends

class NeutTraj
 

Detailed Description

Definition at line 19 of file NeutParams.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
_d0 
_phi0 
_p 
_z0 
_tanDip 
_s0 
_nneutprm 

Definition at line 33 of file NeutParams.h.

Constructor & Destructor Documentation

◆ NeutParams() [1/3]

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

◆ NeutParams() [2/3]

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}
double & s0()
Definition: NeutParams.h:42
double & phi0()
Definition: NeutParams.h:38
double & z0()
Definition: NeutParams.h:40
double & tanDip()
Definition: NeutParams.h:41
double & p()
Definition: NeutParams.h:39
double & d0()
Definition: NeutParams.h:37

◆ NeutParams() [3/3]

NeutParams::NeutParams ( const NeutParams old)

Definition at line 51 of file NeutParams.cxx.

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

◆ ~NeutParams()

NeutParams::~NeutParams ( )

Definition at line 77 of file NeutParams.cxx.

78{}

Member Function Documentation

◆ arcRatio()

double NeutParams::arcRatio ( ) const

Definition at line 71 of file NeutParams.cxx.

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

◆ cosPhi0()

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)
Definition: BesAngle.h:213

◆ d0() [1/2]

double & NeutParams::d0 ( )
inline

Definition at line 37 of file NeutParams.h.

37{ return parameter()[_d0]; }

Referenced by NeutParams(), and TrkCompTrk::print().

◆ d0() [2/2]

double NeutParams::d0 ( ) const
inline

Definition at line 44 of file NeutParams.h.

44{ return parameter()[_d0]; }

◆ p() [1/2]

double & NeutParams::p ( )
inline

Definition at line 39 of file NeutParams.h.

39{ return parameter()[_p]; }

Referenced by NeutParams(), and TrkCompTrk::print().

◆ p() [2/2]

double NeutParams::p ( ) const
inline

Definition at line 46 of file NeutParams.h.

46{ return parameter()[_p]; }

◆ phi0() [1/2]

double & NeutParams::phi0 ( )
inline

Definition at line 38 of file NeutParams.h.

38{ return parameter()[_phi0]; }

Referenced by NeutParams(), and TrkCompTrk::print().

◆ phi0() [2/2]

double NeutParams::phi0 ( ) const
inline

Definition at line 45 of file NeutParams.h.

45{ return parameter()[_phi0]; }

◆ s0() [1/2]

double & NeutParams::s0 ( )
inline

Definition at line 42 of file NeutParams.h.

42{ return parameter()[_s0]; }

Referenced by NeutParams().

◆ s0() [2/2]

double NeutParams::s0 ( ) const
inline

Definition at line 49 of file NeutParams.h.

49{ return parameter()[_s0]; }

◆ sinPhi0()

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)
Definition: BesAngle.h:210

◆ tanDip() [1/2]

double & NeutParams::tanDip ( )
inline

Definition at line 41 of file NeutParams.h.

41{ return parameter()[_tanDip]; }

Referenced by NeutParams(), and TrkCompTrk::print().

◆ tanDip() [2/2]

double NeutParams::tanDip ( ) const
inline

Definition at line 48 of file NeutParams.h.

48{ return parameter()[_tanDip]; }

◆ z0() [1/2]

double & NeutParams::z0 ( )
inline

Definition at line 40 of file NeutParams.h.

40{ return parameter()[_z0]; }

Referenced by NeutParams(), and TrkCompTrk::print().

◆ z0() [2/2]

double NeutParams::z0 ( ) const
inline

Definition at line 47 of file NeutParams.h.

47{ return parameter()[_z0]; }

Friends And Related Function Documentation

◆ NeutTraj

friend class NeutTraj
friend

Definition at line 21 of file NeutParams.h.


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