CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
KalFitGemHit Class Reference

#include <KalFitGemHit.h>

Public Member Functions

 KalFitGemHit (double phi, double v, int layer, int sheet)
 
 ~KalFitGemHit ()
 
double getPhi () const
 
double getZ () const
 
double getR () const
 
HepVector getVecPos () const
 
HepSymMatrix getErrMat () const
 

Detailed Description

Definition at line 13 of file KalFitGemHit.h.

Constructor & Destructor Documentation

◆ KalFitGemHit()

KalFitGemHit::KalFitGemHit ( double  phi,
double  v,
int  layer,
int  sheet 
)

Definition at line 12 of file KalFitGemHit.cxx.

13{
14 /*
15 myPhi=phi;
16 myZ=z;
17 myR=r;
18 myErrPhi=0.023/r; //error in r*phi/r (rad)
19 myErrZ=0.05; //error in z (cm)
20 myErrR=1.0; //error in R (cm)
21 */
22 myPhi=(phi+sheet*w_sheet[layer])/r_layer[layer];
23 //cout << "pos phi=" << myPhi*dmr_layer[layer] << endl;
24 //cout << "(v-(phi)*cos(a_stero[layer]))" << (v-(phi)*cos(a_stero[layer])) << endl;
25 //cout << "pos v=" << myPhi*dmr_layer[layer]*cos(a_stero[layer])+(v-(phi)*cos(a_stero[layer])) << endl;
26 //cout << "(phi+sheet*w_sheet[layer])/r_layer[layer]=" << (phi+sheet*w_sheet[layer])/r_layer[layer] << endl;
27 //cout <<"phi=" << myPhi << endl;
28 if(myPhi>3.1415926) myPhi=myPhi-6.2831852;
29 //cout << "new phi=" << myPhi << endl;
30 //cout << "first z=" << (v-(phi)*cos(a_stero[layer]))/sin(a_stero[layer]) << endl;
31 myZ=(((v-(phi)*cos(a_stero[layer]))/sin(a_stero[layer]))-0.5*l_layer[layer])/10.;
32 //cout << "second z="<< (v-(phi)*cos(a_stero[layer]))/sin(a_stero[layer])-0.5*l_layer[layer] << endl;
33 //cout << "third z=" << myZ << endl;
34 //cout << "v=" << v << endl;
35 //cout << "l_layer=" << l_layer[layer] << endl;
36 //cout << "0.5*l_layer=" << 0.5*l_layer[layer] << endl;
37
38 myR=dmr_layer[layer]/10.;
39 //double Dz,Cov,a,b;
40 //a=1./(sin(a_stero[layer])*sin(a_stero[layer]));
41 //b=1./(tan(a_stero[layer])*tan(a_stero[layer]));
42 //Cov=-1./(sin(a_stero[layer])*sin(a_stero[layer]));
43 //Dz=(a+2*Cov)*0.01467*0.01467+b*0.01349*0.01349;
44 //myErrZ=sqrt(Dz);
45 myErrZ=sqrt(0.01*v_reso[layer]*v_reso[layer]/(sin(a_stero[layer])*sin(a_stero[layer]))+0.01*x_reso[layer]*x_reso[layer]/(tan(a_stero[layer])*tan(a_stero[layer])));
46 myErrPhi=x_reso[layer]/r_layer[layer];
47}
double tan(const BesAngle a)
Definition: BesAngle.h:216
double sin(const BesAngle a)
Definition: BesAngle.h:210
double cos(const BesAngle a)
Definition: BesAngle.h:213
const double a_stero[3]
const double r_layer[3]
const int l_layer[3]
const double w_sheet[3]
const double dmr_layer[3]
Definition: KalFitAlg.cxx:87
const double x_reso[3]
const double v_reso[3]
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35

◆ ~KalFitGemHit()

KalFitGemHit::~KalFitGemHit ( )

Definition at line 49 of file KalFitGemHit.cxx.

49{;}

Member Function Documentation

◆ getErrMat()

HepSymMatrix KalFitGemHit::getErrMat ( ) const
inline

Definition at line 31 of file KalFitGemHit.h.

32 {
33 HepSymMatrix EGem(2,0);
34 EGem(1,1)=myErrPhi*myErrPhi; //error^2 in r*phi/r (rad)
35 EGem(2,2)=myErrZ*myErrZ; //error^2 in z (mm)
36 return EGem;
37 }

◆ getPhi()

double KalFitGemHit::getPhi ( ) const
inline

Definition at line 19 of file KalFitGemHit.h.

19{return myPhi;};

◆ getR()

double KalFitGemHit::getR ( ) const
inline

Definition at line 21 of file KalFitGemHit.h.

21{return myR;};

◆ getVecPos()

HepVector KalFitGemHit::getVecPos ( ) const
inline

Definition at line 23 of file KalFitGemHit.h.

24 {
25 HepVector vec(2);
26 vec(1)=myPhi;
27 vec(2)=myZ;
28 return vec;
29 }
dble_vec_t vec[12]
Definition: ranlxd.c:372

◆ getZ()

double KalFitGemHit::getZ ( ) const
inline

Definition at line 20 of file KalFitGemHit.h.

20{return myZ;};

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