BOSS 6.6.4.p01
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)
 

Detailed Description

Definition at line 24 of file BesMdcGeoParameter.hh.

Constructor & Destructor Documentation

◆ BesMdcWire() [1/2]

BesMdcWire::BesMdcWire ( void  )
inline

Definition at line 26 of file BesMdcGeoParameter.hh.

26{};

◆ BesMdcWire() [2/2]

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)
Definition: BesAngle.h:210
double cos(const BesAngle a)
Definition: BesAngle.h:213
const float pi
Definition: vector3.h:133

◆ ~BesMdcWire()

BesMdcWire::~BesMdcWire ( void  )
inline

Definition at line 28 of file BesMdcGeoParameter.hh.

28{};

Member Function Documentation

◆ Length()

double BesMdcWire::Length ( void  ) const
inline

Definition at line 32 of file BesMdcGeoParameter.hh.

32{return fLength;} //Full length

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

◆ Name()

const string BesMdcWire::Name ( void  ) const
inline

Definition at line 43 of file BesMdcGeoParameter.hh.

43{return fName;}

Referenced by BesMdcGeoParameter::Dump().

◆ Phi() [1/2]

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}
double R(void) const
double RotateAngle(void) const

◆ Phi() [2/2]

double BesMdcWire::Phi ( void  ) const
inline

Definition at line 33 of file BesMdcGeoParameter.hh.

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

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

◆ R()

double BesMdcWire::R ( void  ) const
inline

Definition at line 35 of file BesMdcGeoParameter.hh.

35{return fRadius;}

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

◆ RotateAngle()

double BesMdcWire::RotateAngle ( void  ) const
inline

Definition at line 37 of file BesMdcGeoParameter.hh.

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

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

◆ RotateCell()

double BesMdcWire::RotateCell ( void  ) const
inline

Definition at line 36 of file BesMdcGeoParameter.hh.

36{return fRotateCell;}

Referenced by BesMdcGeoParameter::Dump().

◆ SetLength()

void BesMdcWire::SetLength ( double  x)
inline

Definition at line 46 of file BesMdcGeoParameter.hh.

46{fLength=x;}
Double_t x[10]

Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().

◆ SetName()

void BesMdcWire::SetName ( string  x)
inline

Definition at line 53 of file BesMdcGeoParameter.hh.

53{fName=x;}

Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().

◆ SetPhi()

void BesMdcWire::SetPhi ( double  x)
inline

Definition at line 47 of file BesMdcGeoParameter.hh.

47{fPhi=x;}

Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().

◆ SetRadius()

void BesMdcWire::SetRadius ( double  x)
inline

Definition at line 48 of file BesMdcGeoParameter.hh.

48{fRadius=x;}

Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().

◆ SetRotateAngle()

void BesMdcWire::SetRotateAngle ( double  x)
inline

Definition at line 50 of file BesMdcGeoParameter.hh.

50{fRotateAngle=x;}

Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().

◆ SetRotateCell()

void BesMdcWire::SetRotateCell ( double  x)
inline

Definition at line 49 of file BesMdcGeoParameter.hh.

49{fRotateCell=x;}

Referenced by BesMdcGeoParameter::InitFromFile(), and BesMdcGeoParameter::InitFromSvc().

◆ SetX()

void BesMdcWire::SetX ( double  x)
inline

Definition at line 51 of file BesMdcGeoParameter.hh.

51{fX=x;}

◆ SetY()

void BesMdcWire::SetY ( double  x)
inline

Definition at line 52 of file BesMdcGeoParameter.hh.

52{fY=x;}

◆ X() [1/2]

double BesMdcWire::X ( double  )

Definition at line 71 of file BesMdcGeoParameter.cc.

71 {
72 return fX;
73}

◆ X() [2/2]

double BesMdcWire::X ( void  ) const
inline

Definition at line 39 of file BesMdcGeoParameter.hh.

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

◆ Y() [1/2]

double BesMdcWire::Y ( double  )

Definition at line 74 of file BesMdcGeoParameter.cc.

74 {
75 return fY;
76}

◆ Y() [2/2]

double BesMdcWire::Y ( void  ) const
inline

Definition at line 40 of file BesMdcGeoParameter.hh.

40{return fY;}

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