BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
BesMdcWire Class Reference

#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)
 
 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)
 

Detailed Description

Constructor & Destructor Documentation

◆ BesMdcWire() [1/4]

BesMdcWire::BesMdcWire ( void  )
inline

◆ BesMdcWire() [2/4]

BesMdcWire::BesMdcWire ( double  length,
double  phi,
double  r,
double  rotateAngle 
)

Definition at line 39 of file BesMdcGeoParameter.cc.

39 {
40 fLength=length;
41 if(phi<0){
42 fPhi = phi + 2*pi;
43 }else if(phi>=2*pi){
44 fPhi = phi - 2*pi;
45 }else{
46 fPhi=phi;
47 }
48 fRadius=r;
49 fRotateAngle=rotateAngle;
50
51 fX=r*cos(phi);
52 fY=r*sin(phi);
53}
double sin(const BesAngle a)
double cos(const BesAngle a)

◆ ~BesMdcWire() [1/2]

BesMdcWire::~BesMdcWire ( void  )
inline

◆ BesMdcWire() [3/4]

BesMdcWire::BesMdcWire ( void  )
inline

◆ BesMdcWire() [4/4]

BesMdcWire::BesMdcWire ( double  length,
double  phi,
double  r,
double  rotateAngle 
)

◆ ~BesMdcWire() [2/2]

BesMdcWire::~BesMdcWire ( void  )
inline

Member Function Documentation

◆ Length() [1/2]

double BesMdcWire::Length ( void  ) const
inline

Definition at line 32 of file InstallArea/include/MdcSim/MdcSim/BesMdcGeoParameter.hh.

32{return fLength;} //Full length

Referenced by BesMdcConstruction::Construct(), and BesMdcGeoParameter::Dump().

◆ Length() [2/2]

double BesMdcWire::Length ( void  ) const
inline

Definition at line 32 of file Simulation/BOOST/MdcSim/MdcSim-00-00-73/MdcSim/BesMdcGeoParameter.hh.

32{return fLength;} //Full length

◆ Name() [1/2]

const string BesMdcWire::Name ( void  ) const
inline

Definition at line 43 of file InstallArea/include/MdcSim/MdcSim/BesMdcGeoParameter.hh.

43{return fName;}

Referenced by BesMdcGeoParameter::Dump().

◆ Name() [2/2]

const string BesMdcWire::Name ( void  ) const
inline

Definition at line 43 of file Simulation/BOOST/MdcSim/MdcSim-00-00-73/MdcSim/BesMdcGeoParameter.hh.

43{return fName;}

◆ Phi() [1/4]

double BesMdcWire::Phi ( double  z) const

Definition at line 55 of file BesMdcGeoParameter.cc.

55 {
56 //double phi=fPhi+fRotateAngle*2*(fLength/2-z)/fLength;
57 //yzhang 2011-12-01
58 double OB = R()*sin(RotateAngle());
59 double OC = OB*z*2./fLength;
60 double phi=fPhi+RotateAngle()-atan2(OC,R()*cos(RotateAngle()));
61 //zhangy
62
63 if(phi<0){
64 phi += 2*pi;
65 }else if(phi>=2*pi){
66 phi -= 2*pi;
67 }
68 return phi;
69}

◆ Phi() [2/4]

double BesMdcWire::Phi ( double  z) const

◆ Phi() [3/4]

double BesMdcWire::Phi ( void  ) const
inline

◆ Phi() [4/4]

double BesMdcWire::Phi ( void  ) const
inline

Definition at line 33 of file Simulation/BOOST/MdcSim/MdcSim-00-00-73/MdcSim/BesMdcGeoParameter.hh.

33{return fPhi;} //Phi on East Endplane

◆ R() [1/2]

double BesMdcWire::R ( void  ) const
inline

◆ R() [2/2]

double BesMdcWire::R ( void  ) const
inline

Definition at line 35 of file Simulation/BOOST/MdcSim/MdcSim-00-00-73/MdcSim/BesMdcGeoParameter.hh.

35{return fRadius;}

◆ RotateAngle() [1/2]

double BesMdcWire::RotateAngle ( void  ) const
inline

Definition at line 37 of file InstallArea/include/MdcSim/MdcSim/BesMdcGeoParameter.hh.

37{return fRotateAngle;} // Half twist angle of stereo wire,

Referenced by BesMdcConstruction::Construct(), and Phi().

◆ RotateAngle() [2/2]

double BesMdcWire::RotateAngle ( void  ) const
inline

Definition at line 37 of file Simulation/BOOST/MdcSim/MdcSim-00-00-73/MdcSim/BesMdcGeoParameter.hh.

37{return fRotateAngle;} // Half twist angle of stereo wire,

◆ RotateCell() [1/2]

double BesMdcWire::RotateCell ( void  ) const
inline

Definition at line 36 of file InstallArea/include/MdcSim/MdcSim/BesMdcGeoParameter.hh.

36{return fRotateCell;}

Referenced by BesMdcGeoParameter::Dump().

◆ RotateCell() [2/2]

double BesMdcWire::RotateCell ( void  ) const
inline

Definition at line 36 of file Simulation/BOOST/MdcSim/MdcSim-00-00-73/MdcSim/BesMdcGeoParameter.hh.

36{return fRotateCell;}

◆ SetLength() [1/2]

void BesMdcWire::SetLength ( double  x)
inline

◆ SetLength() [2/2]

void BesMdcWire::SetLength ( double  x)
inline

◆ SetName() [1/2]

void BesMdcWire::SetName ( string  x)
inline

◆ SetName() [2/2]

void BesMdcWire::SetName ( string  x)
inline

◆ SetPhi() [1/2]

void BesMdcWire::SetPhi ( double  x)
inline

◆ SetPhi() [2/2]

void BesMdcWire::SetPhi ( double  x)
inline

◆ SetRadius() [1/2]

void BesMdcWire::SetRadius ( double  x)
inline

◆ SetRadius() [2/2]

void BesMdcWire::SetRadius ( double  x)
inline

◆ SetRotateAngle() [1/2]

void BesMdcWire::SetRotateAngle ( double  x)
inline

◆ SetRotateAngle() [2/2]

void BesMdcWire::SetRotateAngle ( double  x)
inline

Definition at line 50 of file Simulation/BOOST/MdcSim/MdcSim-00-00-73/MdcSim/BesMdcGeoParameter.hh.

50{fRotateAngle=x;}

◆ SetRotateCell() [1/2]

void BesMdcWire::SetRotateCell ( double  x)
inline

◆ SetRotateCell() [2/2]

void BesMdcWire::SetRotateCell ( double  x)
inline

Definition at line 49 of file Simulation/BOOST/MdcSim/MdcSim-00-00-73/MdcSim/BesMdcGeoParameter.hh.

49{fRotateCell=x;}

◆ SetX() [1/2]

void BesMdcWire::SetX ( double  x)
inline

Definition at line 51 of file InstallArea/include/MdcSim/MdcSim/BesMdcGeoParameter.hh.

51{fX=x;}

◆ SetX() [2/2]

void BesMdcWire::SetX ( double  x)
inline

◆ SetY() [1/2]

void BesMdcWire::SetY ( double  x)
inline

Definition at line 52 of file InstallArea/include/MdcSim/MdcSim/BesMdcGeoParameter.hh.

52{fY=x;}

◆ SetY() [2/2]

void BesMdcWire::SetY ( double  x)
inline

◆ X() [1/4]

double BesMdcWire::X ( double  )

Definition at line 71 of file BesMdcGeoParameter.cc.

71 {
72 return fX;
73}

◆ X() [2/4]

double BesMdcWire::X ( double  )

◆ X() [3/4]

double BesMdcWire::X ( void  ) const
inline

Definition at line 39 of file InstallArea/include/MdcSim/MdcSim/BesMdcGeoParameter.hh.

39{return fX;} // X,Y on endplane

◆ X() [4/4]

double BesMdcWire::X ( void  ) const
inline

Definition at line 39 of file Simulation/BOOST/MdcSim/MdcSim-00-00-73/MdcSim/BesMdcGeoParameter.hh.

39{return fX;} // X,Y on endplane

◆ Y() [1/4]

double BesMdcWire::Y ( double  )

Definition at line 74 of file BesMdcGeoParameter.cc.

74 {
75 return fY;
76}

◆ Y() [2/4]

double BesMdcWire::Y ( double  )

◆ Y() [3/4]

double BesMdcWire::Y ( void  ) const
inline

Definition at line 40 of file InstallArea/include/MdcSim/MdcSim/BesMdcGeoParameter.hh.

40{return fY;}

◆ Y() [4/4]

double BesMdcWire::Y ( void  ) const
inline

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