CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
MucGapCal Class Reference

#include <MucGapCal.h>

+ Inheritance diagram for MucGapCal:

Public Member Functions

 MucGapCal (int part, int segment, int layer)
 
 MucGapCal (const MucGapCal &other)
 
MucGapCaloperator= (const MucGapCal &other)
 
 ~MucGapCal ()
 
MucBoxCalGetBox ()
 
- 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 ()
 
- Protected Member Functions inherited from MucEntityCal
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 18 of file MucGapCal.h.

Constructor & Destructor Documentation

◆ MucGapCal() [1/2]

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

Definition at line 17 of file MucGapCal.cxx.

17 : MucEntityCal( part, segment, layer )
18{
20 m_MucBoxCal = NULL;
21}
MucEntityCal(int part, int segment, int layer)
virtual void Init()
Definition MucGapCal.cxx:46

◆ MucGapCal() [2/2]

MucGapCal::MucGapCal ( const MucGapCal & other)

Definition at line 24 of file MucGapCal.cxx.

24 : MucEntityCal( other )
25{
26 m_MucBoxCal = other.m_MucBoxCal;
27}
Index other(Index i, Index j)

◆ ~MucGapCal()

MucGapCal::~MucGapCal ( )

Definition at line 40 of file MucGapCal.cxx.

41{
42 delete m_MucBoxCal;
43}

Member Function Documentation

◆ GetBox()

MucBoxCal * MucGapCal::GetBox ( )

Definition at line 63 of file MucGapCal.cxx.

64{
65 if( m_MucBoxCal != NULL )
66 return m_MucBoxCal;
67 else
68 return ( m_MucBoxCal = new MucBoxCal(m_Part, m_Segment, m_Layer) );
69}

◆ Init()

void MucGapCal::Init ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 46 of file MucGapCal.cxx.

47{
48 SetTheta();
49 SetRin();
50 SetRout();
51 SetRc();
52
53 SetThin();
54 SetW();
55 SetWu();
56 SetWd();
57 SetH();
58 SetL();
59}
virtual void SetWd()
virtual void SetH()
virtual void SetWu()
virtual void SetW()
Definition MucGapCal.cxx:97
virtual void SetRc()
Definition MucGapCal.cxx:88
virtual void SetL()
virtual void SetRout()
Definition MucGapCal.cxx:83
virtual void SetRin()
Definition MucGapCal.cxx:78
virtual void SetThin()
Definition MucGapCal.cxx:93
virtual void SetTheta()
Definition MucGapCal.cxx:73

Referenced by MucGapCal().

◆ operator=()

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

Definition at line 30 of file MucGapCal.cxx.

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

◆ SetH()

void MucGapCal::SetH ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 102 of file MucGapCal.cxx.

103{
104 if( m_Part == BRID )
105 m_H = AS_GAP-0.2; // avoid overlap between absorber and gap
106 else
107 m_H = E_AS_RMAX - E_GP_DY;
108}

Referenced by Init().

◆ SetL()

void MucGapCal::SetL ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 110 of file MucGapCal.cxx.

110 {
111 if( m_Part == BRID ) m_L = B_GP_LT;
112 else m_L = AS_GAP;
113}

Referenced by Init().

◆ SetRc()

void MucGapCal::SetRc ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 88 of file MucGapCal.cxx.

88 {
89 if( m_Part == BRID ) m_Rc = B_AS_RMIN[m_Layer] - AS_GAP/2.0;
90 else m_Rc = sqrt(2.0) * E_AS_RMAX / 2.0;
91}

Referenced by Init().

◆ SetRin()

void MucGapCal::SetRin ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 78 of file MucGapCal.cxx.

78 {
79 if( m_Part == BRID ) m_Rin = B_AS_RMIN[m_Layer] - AS_GAP;
80 else m_Rin = 0.;
81}

Referenced by Init().

◆ SetRout()

void MucGapCal::SetRout ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 83 of file MucGapCal.cxx.

83 {
84 if( m_Part == BRID ) m_Rout = B_AS_RMIN[m_Layer];
85 else m_Rout = E_AS_RMAX;
86}

Referenced by Init().

◆ SetTheta()

void MucGapCal::SetTheta ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 73 of file MucGapCal.cxx.

73 {
74 if( m_Part == BRID ) m_Theta = m_Segment * ( PI/4.0 );
75 else m_Theta = ( 2*m_Segment + 1 ) * ( PI/4.0 );
76}
const double PI
Definition PipiJpsi.cxx:55

Referenced by Init().

◆ SetThin()

void MucGapCal::SetThin ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 93 of file MucGapCal.cxx.

93 {
94 m_Thin = AS_GAP;
95}

Referenced by Init().

◆ SetW()

void MucGapCal::SetW ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 97 of file MucGapCal.cxx.

97 {
98 if( m_Part == BRID) m_W = B_GP_WT[m_Layer];
99 else m_W = E_AS_RMAX - E_GP_DX;
100}

Referenced by Init().

◆ SetWd()

void MucGapCal::SetWd ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 119 of file MucGapCal.cxx.

119 {
120 m_Wd = m_W;
121}

Referenced by Init().

◆ SetWu()

void MucGapCal::SetWu ( )
protectedvirtual

Reimplemented from MucEntityCal.

Definition at line 115 of file MucGapCal.cxx.

115 {
116 m_Wu = m_W;
117}

Referenced by Init().


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