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

#include <CFCir.h>

Public Member Functions

 CFCir ()
 
 CFCir (double x, double y, double phi, int n, double, double, double)
 
 CFCir (const CFCir &)
 
CFCiroperator= (const CFCir &)
 
double getx () const
 
double gety () const
 
double getphi () const
 
int getn () const
 
double getTheta () const
 
double getRho () const
 
double getSlant () const
 
double getCenterX () const
 
double getCenterY () const
 
double getCenterR () const
 
 CFCir ()
 
 CFCir (double x, double y, double phi, int n, double, double, double)
 
 CFCir (const CFCir &)
 
CFCiroperator= (const CFCir &)
 
double getx () const
 
double gety () const
 
double getphi () const
 
int getn () const
 
double getTheta () const
 
double getRho () const
 
double getSlant () const
 
double getCenterX () const
 
double getCenterY () const
 
double getCenterR () const
 

Detailed Description

Constructor & Destructor Documentation

◆ CFCir() [1/6]

CFCir::CFCir ( )

Definition at line 5 of file CFCir.cxx.

5 {
6 }

◆ CFCir() [2/6]

CFCir::CFCir ( double  x,
double  y,
double  phi,
int  n,
double  centerX,
double  centerY,
double  centerR 
)

Definition at line 8 of file CFCir.cxx.

8 :_x(x),_y(y),_phi(phi),_n(n),_centerX(centerX),_centerY(centerY),_centerR(centerR)
9{
10 double normal = (y-_centerY)/(x-centerX);
11 double k = -1./normal;
12 double b = y - k*x;
13 double x_cross = -b/(k+1/k);
14 double y_cross = b/(1+k*k);
15// std::cout<<"x y centerX centerY "<<x<<" "<<y<<" "<<centerX<<" "<<centerY<<std::endl;
16// std::cout<<"k b "<<k<<" "<<b<<std::endl;
17// std::cout<<"xcross ycross "<<x_cross<<" "<<y_cross<<std::endl;
18
19 double rho_temp=sqrt(x_cross*x_cross+y_cross*y_cross);
20 double theta_temp=atan2(y_cross,x_cross);
21 if(theta_temp<0) {
22 theta_temp=theta_temp+M_PI;
23 rho_temp=-rho_temp;
24 }
25 if( normal ==0 && x>0) {
26 rho_temp = fabs(x);
27 theta_temp = 0;
28 }
29 if( normal ==0 && x<0) {
30 rho_temp = -fabs(x);
31 theta_temp = M_PI;
32 }
33 _theta = theta_temp;
34 _rho = rho_temp;
35 double slant = _y*cos(_theta)-_x*sin(_theta);
36 _slant = slant;
37// std::cout<<"THETA RHO "<<theta_temp<<" "<<rho_temp<<std::endl;
38// std::cout<<std::endl;
39}
const Int_t n
Double_t x[10]
double sin(const BesAngle a)
double cos(const BesAngle a)
#define M_PI
Definition: TConstant.h:4

◆ CFCir() [3/6]

CFCir::CFCir ( const CFCir cir)

Definition at line 63 of file CFCir.cxx.

63 :
64 _x(cir._x),
65 _y(cir._y),
66 _phi(cir._phi),
67 _n(cir._n),
68
69 _theta(cir._theta),
70 _rho(cir._rho),
71 _centerX(cir._centerX),
72 _centerY(cir._centerY),
73 _centerR(cir._centerR),
74 _slant (cir._slant)
75{}

◆ CFCir() [4/6]

CFCir::CFCir ( )

◆ CFCir() [5/6]

CFCir::CFCir ( double  x,
double  y,
double  phi,
int  n,
double  ,
double  ,
double   
)

◆ CFCir() [6/6]

CFCir::CFCir ( const CFCir )

Member Function Documentation

◆ getCenterR() [1/2]

double CFCir::getCenterR ( ) const
inline

Definition at line 19 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/CFCir.h.

19{ return _centerR;}

◆ getCenterR() [2/2]

double CFCir::getCenterR ( ) const
inline

Definition at line 19 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/CFCir.h.

19{ return _centerR;}

◆ getCenterX() [1/2]

double CFCir::getCenterX ( ) const
inline

Definition at line 17 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/CFCir.h.

17{ return _centerX;}

◆ getCenterX() [2/2]

double CFCir::getCenterX ( ) const
inline

Definition at line 17 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/CFCir.h.

17{ return _centerX;}

◆ getCenterY() [1/2]

double CFCir::getCenterY ( ) const
inline

Definition at line 18 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/CFCir.h.

18{ return _centerY;}

◆ getCenterY() [2/2]

double CFCir::getCenterY ( ) const
inline

Definition at line 18 of file Reconstruction/MdcHoughFinder/MdcHoughFinder-00-00-12/MdcHoughFinder/CFCir.h.

18{ return _centerY;}

◆ getn() [1/2]

int CFCir::getn ( ) const
inline

Definition at line 13 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/CFCir.h.

13{ return _n;}

◆ getn() [2/2]

int CFCir::getn ( ) const
inline

◆ getphi() [1/2]

double CFCir::getphi ( ) const
inline

Definition at line 12 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/CFCir.h.

12{ return _phi;}

◆ getphi() [2/2]

double CFCir::getphi ( ) const
inline

◆ getRho() [1/2]

double CFCir::getRho ( ) const
inline

Definition at line 15 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/CFCir.h.

15{ return _rho;}

◆ getRho() [2/2]

double CFCir::getRho ( ) const
inline

◆ getSlant() [1/2]

double CFCir::getSlant ( ) const
inline

Definition at line 16 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/CFCir.h.

16{ return _slant;}

◆ getSlant() [2/2]

double CFCir::getSlant ( ) const
inline

◆ getTheta() [1/2]

double CFCir::getTheta ( ) const
inline

Definition at line 14 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/CFCir.h.

14{ return _theta;}

◆ getTheta() [2/2]

double CFCir::getTheta ( ) const
inline

◆ getx() [1/2]

double CFCir::getx ( ) const
inline

Definition at line 10 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/CFCir.h.

10{ return _x;}

◆ getx() [2/2]

double CFCir::getx ( ) const
inline

◆ gety() [1/2]

double CFCir::gety ( ) const
inline

Definition at line 11 of file InstallArea/include/MdcHoughFinder/MdcHoughFinder/CFCir.h.

11{ return _y;}

◆ gety() [2/2]

double CFCir::gety ( ) const
inline

◆ operator=() [1/2]

CFCir & CFCir::operator= ( const CFCir cir)

Definition at line 49 of file CFCir.cxx.

49 {
50 _x =cir._x;
51 _y =cir._y;
52 _phi=cir._phi;
53 _n =cir._n;
54
55 _theta =cir._theta;
56 _rho =cir._rho;
57 _centerX =cir._centerX;
58 _centerY =cir._centerY;
59 _centerR =cir._centerR;
60 _slant =cir._slant;
61}

◆ operator=() [2/2]

CFCir & CFCir::operator= ( const CFCir )

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