#include <BesMdcGeoParameter.hh>
Inheritance diagram for BesMdcWire:
Public Member Functions | |
BesMdcWire (void) | |
BesMdcWire (double length, double phi, double r, double rotateAngle) | |
~BesMdcWire (void) | |
double | Length (void) const |
double | Phi (void) const |
double | Phi (double z) const |
double | R (void) const |
double | RotateCell (void) const |
double | RotateAngle (void) const |
double | X (void) const |
double | Y (void) const |
double | X (double) |
double | Y (double) |
const string | Name (void) const |
void | SetLength (double x) |
void | SetPhi (double x) |
void | SetRadius (double x) |
void | SetRotateCell (double x) |
void | SetRotateAngle (double x) |
void | SetX (double x) |
void | SetY (double x) |
void | SetName (string x) |
Private Attributes | |
double | fLength |
double | fPhi |
double | fRadius |
double | fRotateCell |
double | fRotateAngle |
double | fX |
double | fY |
string | fName |
Definition at line 24 of file BesMdcGeoParameter.hh.
BesMdcWire::BesMdcWire | ( | void | ) | [inline] |
BesMdcWire::BesMdcWire | ( | double | length, | |
double | phi, | |||
double | r, | |||
double | rotateAngle | |||
) |
Definition at line 39 of file BesMdcGeoParameter.cc.
References cos(), fLength, fPhi, fRadius, fRotateAngle, fX, fY, pi, and sin().
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 }
BesMdcWire::~BesMdcWire | ( | void | ) | [inline] |
double BesMdcWire::Length | ( | void | ) | const [inline] |
Definition at line 32 of file BesMdcGeoParameter.hh.
References fLength.
Referenced by BesMdcConstruction::Construct().
00032 {return fLength;} //Full length
const string BesMdcWire::Name | ( | void | ) | const [inline] |
double BesMdcWire::Phi | ( | double | z | ) | const |
Definition at line 55 of file BesMdcGeoParameter.cc.
References cos(), fLength, fPhi, pi, R(), RotateAngle(), and sin().
00055 { 00056 //double phi=fPhi+fRotateAngle*2*(fLength/2-z)/fLength; 00057 //yzhang 2011-12-01 00058 double OB = R()*sin(RotateAngle()); 00059 double OC = OB*z*2./fLength; 00060 double phi=fPhi+RotateAngle()-atan2(OC,R()*cos(RotateAngle())); 00061 //zhangy 00062 00063 if(phi<0){ 00064 phi += 2*pi; 00065 }else if(phi>=2*pi){ 00066 phi -= 2*pi; 00067 } 00068 return phi; 00069 }
double BesMdcWire::Phi | ( | void | ) | const [inline] |
Definition at line 33 of file BesMdcGeoParameter.hh.
References fPhi.
Referenced by BesMdcConstruction::Construct(), BesMdcGeoParameter::Dump(), BesMdcSD::ProcessHits(), and BesMdcGeoParameter::SignalWire().
00033 {return fPhi;} //Phi on East Endplane
double BesMdcWire::R | ( | void | ) | const [inline] |
Definition at line 35 of file BesMdcGeoParameter.hh.
References fRadius.
Referenced by BesMdcDigitizer::AddNoise(), BesMdcConstruction::Construct(), and Phi().
00035 {return fRadius;}
double BesMdcWire::RotateAngle | ( | void | ) | const [inline] |
Definition at line 37 of file BesMdcGeoParameter.hh.
References fRotateAngle.
Referenced by BesMdcConstruction::Construct(), and Phi().
00037 {return fRotateAngle;} // Half twist angle of stereo wire,
double BesMdcWire::RotateCell | ( | void | ) | const [inline] |
Definition at line 36 of file BesMdcGeoParameter.hh.
References fRotateCell.
Referenced by BesMdcGeoParameter::Dump().
00036 {return fRotateCell;}
void BesMdcWire::SetLength | ( | double | x | ) | [inline] |
Definition at line 46 of file BesMdcGeoParameter.hh.
References fLength.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
void BesMdcWire::SetName | ( | string | x | ) | [inline] |
Definition at line 53 of file BesMdcGeoParameter.hh.
References fName.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
void BesMdcWire::SetPhi | ( | double | x | ) | [inline] |
Definition at line 47 of file BesMdcGeoParameter.hh.
References fPhi.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
void BesMdcWire::SetRadius | ( | double | x | ) | [inline] |
Definition at line 48 of file BesMdcGeoParameter.hh.
References fRadius.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
void BesMdcWire::SetRotateAngle | ( | double | x | ) | [inline] |
Definition at line 50 of file BesMdcGeoParameter.hh.
References fRotateAngle.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
00050 {fRotateAngle=x;}
void BesMdcWire::SetRotateCell | ( | double | x | ) | [inline] |
Definition at line 49 of file BesMdcGeoParameter.hh.
References fRotateCell.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
00049 {fRotateCell=x;}
void BesMdcWire::SetX | ( | double | x | ) | [inline] |
void BesMdcWire::SetY | ( | double | x | ) | [inline] |
double BesMdcWire::X | ( | double | ) |
double BesMdcWire::X | ( | void | ) | const [inline] |
Definition at line 39 of file BesMdcGeoParameter.hh.
References fX.
00039 {return fX;} // X,Y on endplane
double BesMdcWire::Y | ( | double | ) |
double BesMdcWire::Y | ( | void | ) | const [inline] |
double BesMdcWire::fLength [private] |
Definition at line 56 of file BesMdcGeoParameter.hh.
Referenced by BesMdcWire(), Length(), Phi(), and SetLength().
string BesMdcWire::fName [private] |
double BesMdcWire::fPhi [private] |
Definition at line 56 of file BesMdcGeoParameter.hh.
Referenced by BesMdcWire(), Phi(), and SetPhi().
double BesMdcWire::fRadius [private] |
Definition at line 56 of file BesMdcGeoParameter.hh.
Referenced by BesMdcWire(), R(), and SetRadius().
double BesMdcWire::fRotateAngle [private] |
Definition at line 56 of file BesMdcGeoParameter.hh.
Referenced by BesMdcWire(), RotateAngle(), and SetRotateAngle().
double BesMdcWire::fRotateCell [private] |
Definition at line 56 of file BesMdcGeoParameter.hh.
Referenced by RotateCell(), and SetRotateCell().
double BesMdcWire::fX [private] |
double BesMdcWire::fY [private] |