#include <BesMdcGeoParameter.hh>
Inheritance diagram for BesMdcWire:
Public Member Functions | |
BesMdcWire (double length, double phi, double r, double rotateAngle) | |
BesMdcWire (void) | |
BesMdcWire (double length, double phi, double r, double rotateAngle) | |
BesMdcWire (void) | |
double | Length (void) const |
double | Length (void) const |
const string | Name (void) const |
const string | Name (void) const |
double | Phi (double z) const |
double | Phi (void) const |
double | Phi (double z) const |
double | Phi (void) const |
double | R (void) const |
double | R (void) const |
double | RotateAngle (void) const |
double | RotateAngle (void) const |
double | RotateCell (void) const |
double | RotateCell (void) const |
void | SetLength (double x) |
void | SetLength (double x) |
void | SetName (string x) |
void | SetName (string x) |
void | SetPhi (double x) |
void | SetPhi (double x) |
void | SetRadius (double x) |
void | SetRadius (double x) |
void | SetRotateAngle (double x) |
void | SetRotateAngle (double x) |
void | SetRotateCell (double x) |
void | SetRotateCell (double x) |
void | SetX (double x) |
void | SetX (double x) |
void | SetY (double x) |
void | SetY (double x) |
double | X (double) |
double | X (void) const |
double | X (double) |
double | X (void) const |
double | Y (double) |
double | Y (void) const |
double | Y (double) |
double | Y (void) const |
~BesMdcWire (void) | |
~BesMdcWire (void) | |
Private Attributes | |
double | fLength |
string | fName |
double | fPhi |
double | fRadius |
double | fRotateAngle |
double | fRotateCell |
double | fX |
double | fY |
|
00026 {};
|
|
00039 { 00040 fLength=length; 00041 if(phi<0){ 00042 fPhi = phi + 2*pi; 00043 }else if(phi>=2*pi){ 00044 fPhi = phi - 2*pi; 00045 }else{ 00046 fPhi=phi; 00047 } 00048 fRadius=r; 00049 fRotateAngle=rotateAngle; 00050 00051 fX=r*cos(phi); 00052 fY=r*sin(phi); 00053 }
|
|
00028 {};
|
|
00026 {};
|
|
|
|
00028 {};
|
|
00032 {return fLength;} //Full length
|
|
00032 {return fLength;} //Full length
|
|
00043 {return fName;}
|
|
00043 {return fName;}
|
|
|
|
00033 {return fPhi;} //Phi on East Endplane
|
|
00055 { 00056 double phi=fPhi+fRotateAngle*2*(fLength/2-z)/fLength; 00057 if(phi<0){ 00058 phi += 2*pi; 00059 }else if(phi>=2*pi){ 00060 phi -= 2*pi; 00061 } 00062 return phi; 00063 }
|
|
00033 {return fPhi;} //Phi on East Endplane
|
|
00035 {return fRadius;}
|
|
00035 {return fRadius;}
|
|
00037 {return fRotateAngle;} // Half twist angle of stereo wire,
|
|
00037 {return fRotateAngle;} // Half twist angle of stereo wire,
|
|
00036 {return fRotateCell;}
|
|
00036 {return fRotateCell;}
|
|
00046 {fLength=x;}
|
|
00046 {fLength=x;}
|
|
00053 {fName=x;}
|
|
00053 {fName=x;}
|
|
00047 {fPhi=x;}
|
|
00047 {fPhi=x;}
|
|
00048 {fRadius=x;}
|
|
00048 {fRadius=x;}
|
|
00050 {fRotateAngle=x;}
|
|
00050 {fRotateAngle=x;}
|
|
00049 {fRotateCell=x;}
|
|
00049 {fRotateCell=x;}
|
|
00051 {fX=x;}
|
|
00051 {fX=x;}
|
|
00052 {fY=x;}
|
|
00052 {fY=x;}
|
|
|
|
00039 {return fX;} // X,Y on endplane
|
|
00065 {
00066 return fX;
00067 }
|
|
00039 {return fX;} // X,Y on endplane
|
|
|
|
00040 {return fY;}
|
|
00068 {
00069 return fY;
00070 }
|
|
00040 {return fY;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|