CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcxSeg Class Reference

#include <MdcxSeg.h>

+ Inheritance diagram for MdcxSeg:

Public Member Functions

 MdcxSeg (MdcxFittedHel &hel, int p, int a)
 
virtual ~MdcxSeg ()
 
double D0_sl_approx ()
 
double Phi0_sl_approx ()
 
double Xline_bbrrf ()
 
double Yline_bbrrf ()
 
double Xline_slope ()
 
double Yline_slope ()
 
int Pat ()
 
void printSeg ()
 
void printSegAll ()
 
 MdcxSeg (MdcxFittedHel &hel, int p, int a)
 
virtual ~MdcxSeg ()
 
double D0_sl_approx ()
 
double Phi0_sl_approx ()
 
double Xline_bbrrf ()
 
double Yline_bbrrf ()
 
double Xline_slope ()
 
double Yline_slope ()
 
int Pat ()
 
void printSeg ()
 
void printSegAll ()
 
- Public Member Functions inherited from MdcxFittedHel
 MdcxFittedHel ()
 
 MdcxFittedHel (HepAList< MdcxHit > &XHitList, MdcxHel &hel, double Sfac=1.0)
 
virtual ~MdcxFittedHel ()
 
float Chisq () const
 
float Rcs () const
 
float Prob () const
 
float Fittime () const
 
int Nhits () const
 
int Itofit () const
 
int Quality () const
 
int Origin () const
 
double Sfac () const
 
void SetQuality (const int &q)
 
void SetUsedOnHel (const int &i)
 
int GetUsedOnHel () const
 
int SuperLayer (int hitno=0) const
 
int Layer (int hitno=0) const
 
const HepAList< MdcxHit > & XHitList () const
 
float Residual (int i)
 
float Pull (int i)
 
int Fail (float Probmin=0.0) const
 
int ReFit ()
 
int FitPrint ()
 
int FitPrint (MdcxHel &hel, std::ostream &o)
 
void VaryRes ()
 
MdcxFittedHeloperator= (const MdcxHel &)
 
MdcxFittedHeloperator= (const MdcxFittedHel &)
 
MdcxFittedHelGrow (const MdcxFittedHel &, const HepAList< MdcxHit > &)
 
void SetBailOut (int i)
 
void SetChiDofBail (float r)
 
void SetNiter (int i)
 
 MdcxFittedHel ()
 
 MdcxFittedHel (HepAList< MdcxHit > &XHitList, MdcxHel &hel, double Sfac=1.0)
 
virtual ~MdcxFittedHel ()
 
float Chisq () const
 
float Rcs () const
 
float Prob () const
 
float Fittime () const
 
int Nhits () const
 
int Itofit () const
 
int Quality () const
 
int Origin () const
 
double Sfac () const
 
void SetQuality (const int &q)
 
void SetUsedOnHel (const int &i)
 
int GetUsedOnHel () const
 
int SuperLayer (int hitno=0) const
 
int Layer (int hitno=0) const
 
const HepAList< MdcxHit > & XHitList () const
 
float Residual (int i)
 
float Pull (int i)
 
int Fail (float Probmin=0.0) const
 
int ReFit ()
 
int FitPrint ()
 
int FitPrint (MdcxHel &hel, std::ostream &o)
 
void VaryRes ()
 
MdcxFittedHeloperator= (const MdcxHel &)
 
MdcxFittedHeloperator= (const MdcxFittedHel &)
 
MdcxFittedHelGrow (const MdcxFittedHel &, const HepAList< MdcxHit > &)
 
void SetBailOut (int i)
 
void SetChiDofBail (float r)
 
void SetNiter (int i)
 
- Public Member Functions inherited from MdcxHel
 MdcxHel ()
 
 MdcxHel (double D0, double Phi0, double Omega, double Z0=0.0, double Tanl=0.0, double T0=0.0, int Code=11111, int Mode=0, double X=0.0, double Y=0.0)
 
virtual ~MdcxHel ()
 
double D0 () const
 
double Phi0 () const
 
double Omega () const
 
double Z0 () const
 
double Tanl () const
 
double X () const
 
double Xref () const
 
double Y () const
 
double Yref () const
 
double T0 () const
 
double CosPhi0 () const
 
double SinPhi0 () const
 
double Doca_Len () const
 
double Doca_FLen () const
 
double Doca_Tof () const
 
double Doca_Zh () const
 
int Doca_Samb () const
 
int Doca_Wamb () const
 
double Doca_Eang () const
 
double Omin () const
 
int Mode () const
 
int Code () const
 
int Nfree () const
 
int Ominfl () const
 
int Qd0 () const
 
int Qphi0 () const
 
int Qomega () const
 
int Qz0 () const
 
int Qtanl () const
 
int Qt0 () const
 
double Xc () const
 
double Yc () const
 
double X0 () const
 
double Y0 () const
 
double Xh (double l) const
 
double Yh (double l) const
 
double Zh (double l) const
 
double Px (double l=0.0) const
 
double Py (double l=0.0) const
 
double Pz (double l=0.0) const
 
double Ptot (double l=0.0) const
 
double Lmax () const
 
double Doca (double WX, double WY, double WZ, double X, double Y, double Z=0.0)
 
double Doca (const MdcxHit &h)
 
void print () const
 
void flip ()
 
std::vector< float > derivatives (const MdcxHit &h)
 
void SetRef (double x, double y)
 
void SetMode (int n)
 
void SetD0 (int n)
 
void SetPhi0 (int n)
 
void SetOmega (int n)
 
void SetZ0 (int n)
 
void SetTanl (int n)
 
void SetT0 (int n)
 
void SetTurnFlag (const int &i)
 
int GetTurnFlag () const
 
MdcxHeloperator= (const MdcxHel &)
 
 MdcxHel ()
 
 MdcxHel (double D0, double Phi0, double Omega, double Z0=0.0, double Tanl=0.0, double T0=0.0, int Code=11111, int Mode=0, double X=0.0, double Y=0.0)
 
virtual ~MdcxHel ()
 
double D0 () const
 
double Phi0 () const
 
double Omega () const
 
double Z0 () const
 
double Tanl () const
 
double X () const
 
double Xref () const
 
double Y () const
 
double Yref () const
 
double T0 () const
 
double CosPhi0 () const
 
double SinPhi0 () const
 
double Doca_Len () const
 
double Doca_FLen () const
 
double Doca_Tof () const
 
double Doca_Zh () const
 
int Doca_Samb () const
 
int Doca_Wamb () const
 
double Doca_Eang () const
 
double Omin () const
 
int Mode () const
 
int Code () const
 
int Nfree () const
 
int Ominfl () const
 
int Qd0 () const
 
int Qphi0 () const
 
int Qomega () const
 
int Qz0 () const
 
int Qtanl () const
 
int Qt0 () const
 
double Xc () const
 
double Yc () const
 
double X0 () const
 
double Y0 () const
 
double Xh (double l) const
 
double Yh (double l) const
 
double Zh (double l) const
 
double Px (double l=0.0) const
 
double Py (double l=0.0) const
 
double Pz (double l=0.0) const
 
double Ptot (double l=0.0) const
 
double Lmax () const
 
double Doca (double WX, double WY, double WZ, double X, double Y, double Z=0.0)
 
double Doca (const MdcxHit &h)
 
void print () const
 
void flip ()
 
std::vector< float > derivatives (const MdcxHit &h)
 
void SetRef (double x, double y)
 
void SetMode (int n)
 
void SetD0 (int n)
 
void SetPhi0 (int n)
 
void SetOmega (int n)
 
void SetZ0 (int n)
 
void SetTanl (int n)
 
void SetT0 (int n)
 
void SetTurnFlag (const int &i)
 
int GetTurnFlag () const
 
MdcxHeloperator= (const MdcxHel &)
 

Additional Inherited Members

- Static Public Attributes inherited from MdcxFittedHel
static int debug = 0
 
- Protected Member Functions inherited from MdcxFittedHel
int DoFit ()
 
int IterateFit ()
 
int DoFit ()
 
int IterateFit ()
 
- Protected Member Functions inherited from MdcxHel
double CalcPhi (double xf, double yf, double xl, double yl) const
 
int deltaq (int i, int j) const
 
void decode (const int i, int &i1, int &i2, int &i3, int &i4, int &i5, int &i6, int &n)
 
void copy (const MdcxHel &hel)
 
double CalcPhi (double xf, double yf, double xl, double yl) const
 
int deltaq (int i, int j) const
 
void decode (const int i, int &i1, int &i2, int &i3, int &i4, int &i5, int &i6, int &n)
 
void copy (const MdcxHel &hel)
 
- Protected Attributes inherited from MdcxFittedHel
int fail
 
float chisq
 
float rcs
 
float prob
 
float fittime
 
int nhits
 
int itofit
 
int quality
 
int origin
 
HepAList< MdcxHitxHitList
 
double sfac
 
int usedonhel
 
- Protected Attributes inherited from MdcxHel
double d0
 
double phi0
 
double omega
 
double z0
 
double tanl
 
double t0
 
double xref
 
double yref
 
double cphi0
 
double sphi0
 
double x0
 
double y0
 
double xc
 
double yc
 
int code
 
int mode
 
int qd0
 
int qphi0
 
int qomega
 
int qz0
 
int qtanl
 
int qt0
 
int nfree
 
int ominfl
 
int turnflag
 
double omin
 
double len
 
double phi
 
double xh
 
double yh
 
double zh
 
double vx
 
double vy
 
double vz
 
double cosl
 
double sinl
 
double f0
 
double tx
 
double ty
 
double tz
 
Hep3Vector wvec
 
Hep3Vector tvec
 
Hep3Vector vhat
 
Hep3Vector dvec
 
int samb
 
int wamb
 
double eang
 

Detailed Description

Constructor & Destructor Documentation

◆ MdcxSeg() [1/2]

MdcxSeg::MdcxSeg ( MdcxFittedHel hel,
int  p,
int  a 
)

Definition at line 3 of file MdcxSeg.cxx.

3 :MdcxFittedHel(hel){
4 pat=p; amb=a;
5// c1=-0.686; c2=1.74;
6 c1=-0.77; c2=1.83;
7 if ((pat == 0x2244) || (pat == 0x4221)) {
8 c1 = -1.13;
9 c2 = 2.26;
10 }
11 if ((pat == 0x1244) || (pat == 0x8421) || (pat == 0x8221)) {
12 c1 = -1.54;
13 c2 = 2.84;
14 }
15 if ((pat == 0x2248) || (pat == 0x8441)) {
16 c1 = -2.06;
17 c2 = 2.99;
18 }
19}//endof MdcxSeg

◆ ~MdcxSeg() [1/2]

MdcxSeg::~MdcxSeg ( )
virtual

Definition at line 21 of file MdcxSeg.cxx.

21{ }

◆ MdcxSeg() [2/2]

MdcxSeg::MdcxSeg ( MdcxFittedHel hel,
int  p,
int  a 
)

◆ ~MdcxSeg() [2/2]

virtual MdcxSeg::~MdcxSeg ( )
virtual

Member Function Documentation

◆ D0_sl_approx() [1/2]

double MdcxSeg::D0_sl_approx ( )
inline

◆ D0_sl_approx() [2/2]

double MdcxSeg::D0_sl_approx ( )
inline

◆ Pat() [1/2]

int MdcxSeg::Pat ( )
inline

Definition at line 19 of file InstallArea/include/MdcxReco/MdcxReco/MdcxSeg.h.

19{return pat;}

Referenced by printSegAll().

◆ Pat() [2/2]

int MdcxSeg::Pat ( )
inline

◆ Phi0_sl_approx() [1/2]

double MdcxSeg::Phi0_sl_approx ( )
inline

Definition at line 14 of file InstallArea/include/MdcxReco/MdcxReco/MdcxSeg.h.

Referenced by printSegAll().

◆ Phi0_sl_approx() [2/2]

double MdcxSeg::Phi0_sl_approx ( )
inline

◆ printSeg() [1/2]

void MdcxSeg::printSeg ( )

Definition at line 23 of file MdcxSeg.cxx.

23 {
24 std::cout<<"sl "<< SuperLayer()<<" amb "<<amb<<" ";
25 for (int i =0; i<Nhits(); i++){
26 XHitList()[i]->print(std::cout,i);
27 }
28 std::cout<<" chi2 "<<Chisq()<<std::endl;
29}
const HepAList< MdcxHit > & XHitList() const
int SuperLayer(int hitno=0) const

◆ printSeg() [2/2]

void MdcxSeg::printSeg ( )

◆ printSegAll() [1/2]

void MdcxSeg::printSegAll ( )

Definition at line 31 of file MdcxSeg.cxx.

31 {
32 std::cout<<"MdcxSeg "<< SuperLayer()<<" : ";
33 for (int i =0; i<Nhits(); i++){
34 XHitList()[i]->print(std::cout,i);
35 }
36 std::cout <<" pat "<<Pat()<<" amb "<<amb<< " d0 "<<d0<<" phi0 "<<phi0<<" omega "<<omega
37 <<" d0Sl "<<D0_sl_approx()<<" phi0Sl "<< Phi0_sl_approx()
38 <<" xB "<<Xline_bbrrf()<<" yB "<< Yline_bbrrf()
39 <<" xSl "<<Xline_slope()<<" ySl "<< Yline_slope()
40 <<" x(y)ref " << Xref() << " " << Yref()
41 <<" origin "<<Origin()
42 << std::endl;
43 std::cout<< std::endl;
44}

◆ printSegAll() [2/2]

void MdcxSeg::printSegAll ( )

◆ Xline_bbrrf() [1/2]

double MdcxSeg::Xline_bbrrf ( )
inline

◆ Xline_bbrrf() [2/2]

double MdcxSeg::Xline_bbrrf ( )
inline

◆ Xline_slope() [1/2]

double MdcxSeg::Xline_slope ( )
inline

Definition at line 17 of file InstallArea/include/MdcxReco/MdcxReco/MdcxSeg.h.

17{ return xHitList[0]->wx()/xHitList[0]->wz(); }

Referenced by printSegAll().

◆ Xline_slope() [2/2]

double MdcxSeg::Xline_slope ( )
inline

Definition at line 17 of file Reconstruction/MdcPatRec/MdcxReco/MdcxReco-00-01-59/MdcxReco/MdcxSeg.h.

17{ return xHitList[0]->wx()/xHitList[0]->wz(); }

◆ Yline_bbrrf() [1/2]

double MdcxSeg::Yline_bbrrf ( )
inline

◆ Yline_bbrrf() [2/2]

double MdcxSeg::Yline_bbrrf ( )
inline

◆ Yline_slope() [1/2]

double MdcxSeg::Yline_slope ( )
inline

Definition at line 18 of file InstallArea/include/MdcxReco/MdcxReco/MdcxSeg.h.

18{ return xHitList[0]->wy()/xHitList[0]->wz(); }

Referenced by printSegAll().

◆ Yline_slope() [2/2]

double MdcxSeg::Yline_slope ( )
inline

Definition at line 18 of file Reconstruction/MdcPatRec/MdcxReco/MdcxReco-00-01-59/MdcxReco/MdcxSeg.h.

18{ return xHitList[0]->wy()/xHitList[0]->wz(); }

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