BOSS 8.0.0
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 ()
 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)
 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 &)
 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 ()
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)
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/3]

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

Definition at line 3 of file MdcxSeg.cxx.

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

◆ ~MdcxSeg() [1/3]

MdcxSeg::~MdcxSeg ( )
virtual

Definition at line 26 of file MdcxSeg.cxx.

26{}

◆ MdcxSeg() [2/3]

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

◆ ~MdcxSeg() [2/3]

virtual MdcxSeg::~MdcxSeg ( )
virtual

◆ MdcxSeg() [3/3]

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

◆ ~MdcxSeg() [3/3]

virtual MdcxSeg::~MdcxSeg ( )
virtual

Member Function Documentation

◆ D0_sl_approx() [1/3]

double MdcxSeg::D0_sl_approx ( )
inline

◆ D0_sl_approx() [2/3]

double MdcxSeg::D0_sl_approx ( )
inline

Definition at line 13 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcxReco/MdcxSeg.h.

13{ return d0 + c1 * omega; }

◆ D0_sl_approx() [3/3]

double MdcxSeg::D0_sl_approx ( )
inline

Definition at line 13 of file Reconstruction/MdcPatRec/MdcxReco/include/MdcxReco/MdcxSeg.h.

13{ return d0 + c1 * omega; }

◆ Pat() [1/3]

int MdcxSeg::Pat ( )
inline

Definition at line 19 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcxReco/MdcxSeg.h.

19{ return pat; }

Referenced by printSegAll().

◆ Pat() [2/3]

int MdcxSeg::Pat ( )
inline

Definition at line 19 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcxReco/MdcxSeg.h.

19{ return pat; }

◆ Pat() [3/3]

int MdcxSeg::Pat ( )
inline

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

19{ return pat; }

◆ Phi0_sl_approx() [1/3]

double MdcxSeg::Phi0_sl_approx ( )
inline

◆ Phi0_sl_approx() [2/3]

double MdcxSeg::Phi0_sl_approx ( )
inline

Definition at line 14 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcxReco/MdcxSeg.h.

14{ return phi0 + c2 * omega; }

◆ Phi0_sl_approx() [3/3]

double MdcxSeg::Phi0_sl_approx ( )
inline

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

14{ return phi0 + c2 * omega; }

◆ printSeg() [1/3]

void MdcxSeg::printSeg ( )

Definition at line 28 of file MdcxSeg.cxx.

28 {
29 std::cout << "sl " << SuperLayer() << " amb " << amb << " ";
30 for ( int i = 0; i < Nhits(); i++ ) { XHitList()[i]->print( std::cout, i ); }
31 std::cout << " chi2 " << Chisq() << std::endl;
32}
int SuperLayer(int hitno=0) const

◆ printSeg() [2/3]

void MdcxSeg::printSeg ( )

◆ printSeg() [3/3]

void MdcxSeg::printSeg ( )

◆ printSegAll() [1/3]

void MdcxSeg::printSegAll ( )

Definition at line 34 of file MdcxSeg.cxx.

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

◆ printSegAll() [2/3]

void MdcxSeg::printSegAll ( )

◆ printSegAll() [3/3]

void MdcxSeg::printSegAll ( )

◆ Xline_bbrrf() [1/3]

◆ Xline_bbrrf() [2/3]

double MdcxSeg::Xline_bbrrf ( )
inline

Definition at line 15 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcxReco/MdcxSeg.h.

15{ return xref - sphi0 * d0; }

◆ Xline_bbrrf() [3/3]

double MdcxSeg::Xline_bbrrf ( )
inline

Definition at line 15 of file Reconstruction/MdcPatRec/MdcxReco/include/MdcxReco/MdcxSeg.h.

15{ return xref - sphi0 * d0; }

◆ Xline_slope() [1/3]

double MdcxSeg::Xline_slope ( )
inline

Definition at line 17 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcxReco/MdcxSeg.h.

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

Referenced by printSegAll().

◆ Xline_slope() [2/3]

double MdcxSeg::Xline_slope ( )
inline

Definition at line 17 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcxReco/MdcxSeg.h.

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

◆ Xline_slope() [3/3]

double MdcxSeg::Xline_slope ( )
inline

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

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

◆ Yline_bbrrf() [1/3]

◆ Yline_bbrrf() [2/3]

double MdcxSeg::Yline_bbrrf ( )
inline

Definition at line 16 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcxReco/MdcxSeg.h.

16{ return yref + cphi0 * d0; }

◆ Yline_bbrrf() [3/3]

double MdcxSeg::Yline_bbrrf ( )
inline

Definition at line 16 of file Reconstruction/MdcPatRec/MdcxReco/include/MdcxReco/MdcxSeg.h.

16{ return yref + cphi0 * d0; }

◆ Yline_slope() [1/3]

double MdcxSeg::Yline_slope ( )
inline

Definition at line 18 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcxReco/MdcxSeg.h.

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

Referenced by printSegAll().

◆ Yline_slope() [2/3]

double MdcxSeg::Yline_slope ( )
inline

Definition at line 18 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcxReco/MdcxSeg.h.

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

◆ Yline_slope() [3/3]

double MdcxSeg::Yline_slope ( )
inline

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

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

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