BesMdcLayer Class Reference

#include <BesMdcGeoParameter.hh>

Inheritance diagram for BesMdcLayer:

BesMdcWire List of all members.

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

Detailed Description

Definition at line 61 of file BesMdcGeoParameter.hh.


Constructor & Destructor Documentation

BesMdcLayer::BesMdcLayer ( void   )  [inline]

Definition at line 64 of file BesMdcGeoParameter.hh.

00064 {};

BesMdcLayer::~BesMdcLayer ( void   )  [inline]

Definition at line 65 of file BesMdcGeoParameter.hh.

00065 {};


Member Function Documentation

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

00046 {fLength=x;}

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

00053 {fName=x;}  

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

00047 {fPhi=x;}

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

00048 {fRadius=x;}

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

00080 {fShiftPhi=x;}

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

00077 {fWireNo=x;}

void BesMdcWire::SetX ( double  x  )  [inline, inherited]

Definition at line 51 of file BesMdcGeoParameter.hh.

References BesMdcWire::fX.

00051 {fX=x;}

void BesMdcWire::SetY ( double  x  )  [inline, inherited]

Definition at line 52 of file BesMdcGeoParameter.hh.

References BesMdcWire::fY.

00052 {fY=x;}

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]

Definition at line 40 of file BesMdcGeoParameter.hh.

References BesMdcWire::fY.

00040 {return fY;} 


Member Data Documentation

int BesMdcLayer::fBeginWireNo [private]

Definition at line 83 of file BesMdcGeoParameter.hh.

Referenced by BeginWireNo(), and SetBeginWireNo().

int BesMdcLayer::fFirstWire [private]

Definition at line 83 of file BesMdcGeoParameter.hh.

Referenced by FirstWire(), and SetFirstWire().

double BesMdcLayer::fShiftPhi [private]

Definition at line 84 of file BesMdcGeoParameter.hh.

Referenced by SetShiftPhi(), and ShiftPhi().

int BesMdcLayer::fSumWireNo [private]

Definition at line 83 of file BesMdcGeoParameter.hh.

Referenced by SetSumWireNo(), and SumWireNo().

int BesMdcLayer::fWireNo [private]

Definition at line 83 of file BesMdcGeoParameter.hh.

Referenced by SetWireNo(), and WireNo().


Generated on Tue Nov 29 23:17:32 2016 for BOSS_7.0.2 by  doxygen 1.4.7