BOSS 6.6.4.p03
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 ()
 
- 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)
 
- 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 &)
 

Additional Inherited Members

- Static Public Attributes inherited from MdcxFittedHel
static int debug = 0
 
- Protected Member Functions inherited from MdcxFittedHel
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)
 
- 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

Definition at line 9 of file MdcxSeg.h.

Constructor & Destructor Documentation

◆ MdcxSeg()

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

MdcxSeg::~MdcxSeg ( )
virtual

Definition at line 21 of file MdcxSeg.cxx.

21{ }

Member Function Documentation

◆ D0_sl_approx()

double MdcxSeg::D0_sl_approx ( )
inline

Definition at line 13 of file MdcxSeg.h.

13{ return d0+c1*omega; }
double d0
Definition: MdcxHel.h:123
double omega
Definition: MdcxHel.h:125

Referenced by printSegAll().

◆ Pat()

int MdcxSeg::Pat ( )
inline

Definition at line 19 of file MdcxSeg.h.

19{return pat;}

Referenced by printSegAll().

◆ Phi0_sl_approx()

double MdcxSeg::Phi0_sl_approx ( )
inline

Definition at line 14 of file MdcxSeg.h.

14{ return phi0+c2*omega; }
double phi0
Definition: MdcxHel.h:124

Referenced by printSegAll().

◆ printSeg()

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}
int Nhits() const
Definition: MdcxFittedHel.h:49
const HepAList< MdcxHit > & XHitList() const
Definition: MdcxFittedHel.h:59
int SuperLayer(int hitno=0) const
float Chisq() const
Definition: MdcxFittedHel.h:45

◆ printSegAll()

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}
int Origin() const
Definition: MdcxFittedHel.h:52
double Yref() const
Definition: MdcxHel.h:61
double Xref() const
Definition: MdcxHel.h:59
double Xline_slope()
Definition: MdcxSeg.h:17
double Xline_bbrrf()
Definition: MdcxSeg.h:15
double Phi0_sl_approx()
Definition: MdcxSeg.h:14
double Yline_slope()
Definition: MdcxSeg.h:18
double D0_sl_approx()
Definition: MdcxSeg.h:13
double Yline_bbrrf()
Definition: MdcxSeg.h:16
int Pat()
Definition: MdcxSeg.h:19

◆ Xline_bbrrf()

double MdcxSeg::Xline_bbrrf ( )
inline

Definition at line 15 of file MdcxSeg.h.

15{ return xref-sphi0*d0; }
double sphi0
Definition: MdcxHel.h:132
double xref
Definition: MdcxHel.h:129

Referenced by printSegAll().

◆ Xline_slope()

double MdcxSeg::Xline_slope ( )
inline

Definition at line 17 of file MdcxSeg.h.

17{ return xHitList[0]->wx()/xHitList[0]->wz(); }
HepAList< MdcxHit > xHitList
Definition: MdcxFittedHel.h:89

Referenced by printSegAll().

◆ Yline_bbrrf()

double MdcxSeg::Yline_bbrrf ( )
inline

Definition at line 16 of file MdcxSeg.h.

16{ return yref+cphi0*d0; }
double yref
Definition: MdcxHel.h:130
double cphi0
Definition: MdcxHel.h:131

Referenced by printSegAll().

◆ Yline_slope()

double MdcxSeg::Yline_slope ( )
inline

Definition at line 18 of file MdcxSeg.h.

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

Referenced by printSegAll().


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