BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
MucBoxCal Class Reference

#include <MucBoxCal.h>

+ Inheritance diagram for MucBoxCal:

Public Member Functions

 MucBoxCal (int part, int segment, int layer)
 
 MucBoxCal (const MucBoxCal &other)
 
MucBoxCaloperator= (const MucBoxCal &other)
 
 ~MucBoxCal ()
 
- Public Member Functions inherited from MucEntityCal
 MucEntityCal (int part, int segment, int layer)
 
 MucEntityCal (int part, int segment, int layer, int id)
 
 MucEntityCal (const MucEntityCal &other)
 
MucEntityCaloperator= (const MucEntityCal &other)
 
virtual ~MucEntityCal ()
 
int GetPart ()
 
int GetSegment ()
 
int GetLayer ()
 
int GetID ()
 
double GetTheta ()
 
double GetRin ()
 
double GetRout ()
 
double GetRc ()
 
double GetThin ()
 
double GetW ()
 
double GetH ()
 
double GetL ()
 
double GetWu ()
 
double GetWd ()
 
double GetArea ()
 

Protected Member Functions

virtual void Init ()
 
virtual void SetTheta ()
 
virtual void SetRin ()
 
virtual void SetRout ()
 
virtual void SetRc ()
 
virtual void SetThin ()
 
virtual void SetW ()
 
virtual void SetH ()
 
virtual void SetL ()
 
virtual void SetWu ()
 
virtual void SetWd ()
 
virtual void SetArea ()
 
virtual void Init ()
 
virtual void SetTheta ()
 
virtual void SetRin ()
 
virtual void SetRout ()
 
virtual void SetRc ()
 
virtual void SetThin ()
 
virtual void SetW ()
 
virtual void SetH ()
 
virtual void SetL ()
 
virtual void SetWu ()
 
virtual void SetWd ()
 
virtual void SetArea ()
 

Additional Inherited Members

- Protected Attributes inherited from MucEntityCal
int m_Part
 
int m_Segment
 
int m_Layer
 
int m_ID
 
double m_Theta
 
double m_Rin
 
double m_Rout
 
double m_Rc
 
double m_Thin
 
double m_W
 
double m_H
 
double m_L
 
double m_Wu
 
double m_Wd
 
double m_Area
 

Detailed Description

Definition at line 17 of file MucBoxCal.h.

Constructor & Destructor Documentation

◆ MucBoxCal() [1/2]

MucBoxCal::MucBoxCal ( int  part,
int  segment,
int  layer 
)

Definition at line 17 of file MucBoxCal.cxx.

17 : MucEntityCal( part, segment, layer )
18{
20}
virtual void Init()
Definition: MucBoxCal.cxx:45

◆ MucBoxCal() [2/2]

MucBoxCal::MucBoxCal ( const MucBoxCal other)

Definition at line 23 of file MucBoxCal.cxx.

23 : MucEntityCal( other )
24{
25 ;
26}

◆ ~MucBoxCal()

MucBoxCal::~MucBoxCal ( )

Definition at line 39 of file MucBoxCal.cxx.

40{
41 ;
42}

Member Function Documentation

◆ Init()

void MucBoxCal::Init ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 45 of file MucBoxCal.cxx.

46{
47 SetTheta();
48 SetRin();
49 SetRout();
50 SetRc();
51
52 SetThin();
53 SetW();
54 SetWu();
55 SetWd();
56 SetH();
57 SetL();
58 SetArea();
59}
virtual void SetThin()
Definition: MucBoxCal.cxx:94
virtual void SetArea()
Definition: MucBoxCal.cxx:141
virtual void SetL()
Definition: MucBoxCal.cxx:117
virtual void SetH()
Definition: MucBoxCal.cxx:109
virtual void SetWu()
Definition: MucBoxCal.cxx:125
virtual void SetRin()
Definition: MucBoxCal.cxx:70
virtual void SetRout()
Definition: MucBoxCal.cxx:78
virtual void SetTheta()
Definition: MucBoxCal.cxx:62
virtual void SetWd()
Definition: MucBoxCal.cxx:133
virtual void SetW()
Definition: MucBoxCal.cxx:99
virtual void SetRc()
Definition: MucBoxCal.cxx:86

Referenced by MucBoxCal().

◆ operator=()

MucBoxCal & MucBoxCal::operator= ( const MucBoxCal other)

Definition at line 29 of file MucBoxCal.cxx.

30{
31 if( this == &other) return *this;
32
34
35 return *this;
36}
MucEntityCal & operator=(const MucEntityCal &other)

◆ SetArea()

void MucBoxCal::SetArea ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 141 of file MucBoxCal.cxx.

142{
143 if( m_Part == BRID ) {
144 m_Area = m_W * m_L;
145 if( m_Segment == B_TOP ) m_Area -= B_BOX_SLOT_WT*B_TOPRPC_LTS[(m_Layer==0)?1:(m_Layer%2)];
146 }
147 else
148 m_Area = (m_Wu + m_Wd)*m_H - (E_GP_DX + E_GP_DY + 2*E_STRPLN_DA)* m_H;
149
150 m_Area /= 100; // mm^2 -> cm^2
151}
double m_Area
Definition: MucEntityCal.h:75

Referenced by Init().

◆ SetH()

void MucBoxCal::SetH ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 109 of file MucBoxCal.cxx.

110{
111 if( m_Part == BRID )
112 m_H = BOX_TH;
113 else
114 m_H = E_AS_RMAX - E_BOX_DR - E_STRPLN_DB[(m_Layer==0)?0:1] - E_STRPLN_DR - E_GP_RMIN[m_Layer];
115}

Referenced by Init().

◆ SetL()

void MucBoxCal::SetL ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 117 of file MucBoxCal.cxx.

118{
119 if( m_Part == BRID )
120 m_L = B_BOX_LT;
121 else
122 m_L = BOX_TH;
123}

Referenced by Init().

◆ SetRc()

void MucBoxCal::SetRc ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 86 of file MucBoxCal.cxx.

87{
88 if( m_Part == BRID )
89 m_Rc = B_AS_RMIN[m_Layer] - AS_GAP/2.0;
90 else
91 m_Rc = (m_Rin + m_Rout)/2.0;
92}
double m_Rout
Definition: MucEntityCal.h:67
double m_Rin
Definition: MucEntityCal.h:66

Referenced by Init().

◆ SetRin()

void MucBoxCal::SetRin ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 70 of file MucBoxCal.cxx.

71{
72 if( m_Part == BRID )
73 m_Rin = B_AS_RMIN[m_Layer] - ( AS_GAP + BOX_TH ) / 2.0;
74 else
75 m_Rin = E_GP_RMIN[m_Layer] - E_STRPLN_DR;
76}

Referenced by Init().

◆ SetRout()

void MucBoxCal::SetRout ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 78 of file MucBoxCal.cxx.

79{
80 if( m_Part == BRID )
81 m_Rout = B_AS_RMIN[m_Layer] -( AS_GAP - BOX_TH ) / 2.0;
82 else
83 m_Rout = E_AS_RMAX - E_BOX_DR - E_STRPLN_DB[(m_Layer==0)?0:1];
84}

Referenced by Init().

◆ SetTheta()

void MucBoxCal::SetTheta ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 62 of file MucBoxCal.cxx.

63{
64 if( m_Part == BRID )
65 m_Theta = m_Segment * ( PI/4.0 );
66 else
67 m_Theta = ( m_Segment + 1 ) * ( PI/4.0 );
68}
const double PI
Definition: PipiJpsi.cxx:55
double m_Theta
Definition: MucEntityCal.h:63

Referenced by Init().

◆ SetThin()

void MucBoxCal::SetThin ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 94 of file MucBoxCal.cxx.

95{
96 m_Thin = BOX_TH;
97}
double m_Thin
Definition: MucEntityCal.h:69

Referenced by Init().

◆ SetW()

void MucBoxCal::SetW ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 99 of file MucBoxCal.cxx.

100{
101 if( m_Part == BRID) {
102 m_W = B_BOX_WT[m_Layer];
103 }
104 else {
105 m_W = E_AS_RMAX - E_BOX_DR - E_GP_DX;
106 }
107}

Referenced by Init().

◆ SetWd()

void MucBoxCal::SetWd ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 133 of file MucBoxCal.cxx.

134{
135 if( m_Part == BRID )
136 m_Wd = m_W;
137 else
138 m_Wd = 2 * VALUE * m_Rout;
139}

Referenced by Init().

◆ SetWu()

void MucBoxCal::SetWu ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 125 of file MucBoxCal.cxx.

126{
127 if( m_Part == BRID )
128 m_Wu = m_W;
129 else
130 m_Wu = 2 * VALUE * m_Rin ;
131}

Referenced by Init().


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