#include <BesMdcGeoParameter.hh>
Inheritance diagram for BesMdcLayer:
Public Member Functions | |
BesMdcLayer (void) | |
~BesMdcLayer (void) | |
int | WireNo (void) const |
int | SumWireNo (void) const |
int | BeginWireNo (void) const |
int | FirstWire (void) const |
double | ShiftPhi (void) const |
void | SetWireNo (int x) |
void | SetSumWireNo (int x) |
void | SetBeginWireNo (int x) |
void | SetShiftPhi (double x) |
void | SetFirstWire (int x) |
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 | X (double) |
double | Y (void) const |
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 | |
int | fWireNo |
int | fSumWireNo |
int | fBeginWireNo |
int | fFirstWire |
double | fShiftPhi |
Definition at line 61 of file BesMdcGeoParameter.hh.
BesMdcLayer::BesMdcLayer | ( | void | ) | [inline] |
BesMdcLayer::~BesMdcLayer | ( | void | ) | [inline] |
int BesMdcLayer::BeginWireNo | ( | void | ) | const [inline] |
Definition at line 71 of file BesMdcGeoParameter.hh.
References fBeginWireNo.
00071 {return fBeginWireNo;} //Total wire number from layer 1 to
int BesMdcLayer::FirstWire | ( | void | ) | const [inline] |
Definition at line 73 of file BesMdcGeoParameter.hh.
References fFirstWire.
Referenced by BesMdcConstruction::Construct(), BesMdcGeoParameter::Dump(), and BesMdcGeoParameter::SignalWire().
00073 {return fFirstWire;} //0: first is field wire; 1: signal wire.
double BesMdcWire::Length | ( | void | ) | const [inline, inherited] |
Definition at line 32 of file BesMdcGeoParameter.hh.
References BesMdcWire::fLength.
Referenced by BesMdcConstruction::Construct().
00032 {return fLength;} //Full length
const string BesMdcWire::Name | ( | void | ) | const [inline, inherited] |
Definition at line 43 of file BesMdcGeoParameter.hh.
References BesMdcWire::fName.
00043 {return fName;}
double BesMdcWire::Phi | ( | double | z | ) | const [inherited] |
Definition at line 55 of file BesMdcGeoParameter.cc.
References cos(), BesMdcWire::fLength, BesMdcWire::fPhi, pi, BesMdcWire::R(), BesMdcWire::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, inherited] |
Definition at line 33 of file BesMdcGeoParameter.hh.
References BesMdcWire::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, inherited] |
Definition at line 35 of file BesMdcGeoParameter.hh.
References BesMdcWire::fRadius.
Referenced by BesMdcDigitizer::AddNoise(), BesMdcConstruction::Construct(), and BesMdcWire::Phi().
00035 {return fRadius;}
double BesMdcWire::RotateAngle | ( | void | ) | const [inline, inherited] |
Definition at line 37 of file BesMdcGeoParameter.hh.
References BesMdcWire::fRotateAngle.
Referenced by BesMdcConstruction::Construct(), and BesMdcWire::Phi().
00037 {return fRotateAngle;} // Half twist angle of stereo wire,
double BesMdcWire::RotateCell | ( | void | ) | const [inline, inherited] |
Definition at line 36 of file BesMdcGeoParameter.hh.
References BesMdcWire::fRotateCell.
Referenced by BesMdcGeoParameter::Dump().
00036 {return fRotateCell;}
void BesMdcLayer::SetBeginWireNo | ( | int | x | ) | [inline] |
Definition at line 79 of file BesMdcGeoParameter.hh.
References fBeginWireNo.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
00079 {fBeginWireNo=x;}
void BesMdcLayer::SetFirstWire | ( | int | x | ) | [inline] |
Definition at line 81 of file BesMdcGeoParameter.hh.
References fFirstWire.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
00081 {fFirstWire=x;}
void BesMdcWire::SetLength | ( | double | x | ) | [inline, inherited] |
Definition at line 46 of file BesMdcGeoParameter.hh.
References BesMdcWire::fLength.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
void BesMdcWire::SetName | ( | string | x | ) | [inline, inherited] |
Definition at line 53 of file BesMdcGeoParameter.hh.
References BesMdcWire::fName.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
void BesMdcWire::SetPhi | ( | double | x | ) | [inline, inherited] |
Definition at line 47 of file BesMdcGeoParameter.hh.
References BesMdcWire::fPhi.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
void BesMdcWire::SetRadius | ( | double | x | ) | [inline, inherited] |
Definition at line 48 of file BesMdcGeoParameter.hh.
References BesMdcWire::fRadius.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
void BesMdcWire::SetRotateAngle | ( | double | x | ) | [inline, inherited] |
Definition at line 50 of file BesMdcGeoParameter.hh.
References BesMdcWire::fRotateAngle.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
00050 {fRotateAngle=x;}
void BesMdcWire::SetRotateCell | ( | double | x | ) | [inline, inherited] |
Definition at line 49 of file BesMdcGeoParameter.hh.
References BesMdcWire::fRotateCell.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
00049 {fRotateCell=x;}
void BesMdcLayer::SetShiftPhi | ( | double | x | ) | [inline] |
Definition at line 80 of file BesMdcGeoParameter.hh.
References fShiftPhi.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
void BesMdcLayer::SetSumWireNo | ( | int | x | ) | [inline] |
Definition at line 78 of file BesMdcGeoParameter.hh.
References fSumWireNo.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
00078 {fSumWireNo=x;}
void BesMdcLayer::SetWireNo | ( | int | x | ) | [inline] |
Definition at line 77 of file BesMdcGeoParameter.hh.
References fWireNo.
Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().
void BesMdcWire::SetX | ( | double | x | ) | [inline, inherited] |
void BesMdcWire::SetY | ( | double | x | ) | [inline, inherited] |
double BesMdcLayer::ShiftPhi | ( | void | ) | const [inline] |
Definition at line 74 of file BesMdcGeoParameter.hh.
References fShiftPhi.
Referenced by BesMdcGeoParameter::Dump(), BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::SignalWire().
00074 {return fShiftPhi;} // Phi between 2 wire of this layer.
int BesMdcLayer::SumWireNo | ( | void | ) | const [inline] |
Definition at line 69 of file BesMdcGeoParameter.hh.
References fSumWireNo.
00069 {return fSumWireNo;} //Total wire number from layer 1 to
int BesMdcLayer::WireNo | ( | void | ) | const [inline] |
Definition at line 68 of file BesMdcGeoParameter.hh.
References fWireNo.
Referenced by BesMdcDigitizer::AddNoise(), BesMdcDigitizer::AddNoise2(), and BesMdcConstruction::Construct().
00068 {return fWireNo;} //Wire number of this layer.
double BesMdcWire::X | ( | double | ) | [inherited] |
Definition at line 71 of file BesMdcGeoParameter.cc.
References BesMdcWire::fX.
00071 { 00072 return fX; 00073 }
double BesMdcWire::X | ( | void | ) | const [inline, inherited] |
Definition at line 39 of file BesMdcGeoParameter.hh.
References BesMdcWire::fX.
00039 {return fX;} // X,Y on endplane
double BesMdcWire::Y | ( | double | ) | [inherited] |
Definition at line 74 of file BesMdcGeoParameter.cc.
References BesMdcWire::fY.
00074 { 00075 return fY; 00076 }
double BesMdcWire::Y | ( | void | ) | const [inline, inherited] |
int BesMdcLayer::fBeginWireNo [private] |
Definition at line 83 of file BesMdcGeoParameter.hh.
Referenced by BeginWireNo(), and SetBeginWireNo().
int BesMdcLayer::fFirstWire [private] |
double BesMdcLayer::fShiftPhi [private] |
int BesMdcLayer::fSumWireNo [private] |
int BesMdcLayer::fWireNo [private] |