CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
MucEntityCal.cxx
Go to the documentation of this file.
1//------------------------------------------------------------------------------|
2// [File ]: MucEntityCal.cxx |
3// [Brief ]: MUC geometry entity class for calibration |
4// [Author]: Xie Yuguang, <[email protected]> |
5// [Date ]: Mar 28, 2006 |
6//------------------------------------------------------------------------------|
7
8#include<iostream>
9#include<string>
10
11#include "MucCalibAlg/MucEntityCal.h"
12
13using namespace std;
14
15// Constructor
16MucEntityCal::MucEntityCal( int part, int segment, int layer )
17{
18 m_Part = part;
19 m_Segment = segment;
20 m_Layer = layer;
21 m_ID = 0; // only 1 entity, default
22
24}
25
26MucEntityCal::MucEntityCal( int part, int segment, int layer, int id )
27{
28 m_Part = part;
29 m_Segment = segment;
30 m_Layer = layer;
31 m_ID = id;
32
33 Init();
34}
35
37{
38 m_Part = other.m_Part;
39 m_Segment = other.m_Segment;
40 m_Layer = other.m_Layer;
41 m_ID = other.m_ID;
42
43 m_Theta = other.m_Theta;
44 m_Thin = other.m_Thin;
45 m_W = other.m_W;
46 m_H = other.m_H;
47 m_L = other.m_L;
48 m_Wu = other.m_Wu;
49 m_Wd = other.m_Wd;
50 m_Area = other.m_Area;
51}
52
54{
55 if( this == &other) return *this;
56
57 m_Part = other.m_Part;
58 m_Segment = other.m_Segment;
59 m_Layer = other.m_Layer;
60 m_ID = other.m_ID;
61
62 m_Theta = other.m_Theta;
63 m_Thin = other.m_Thin;
64 m_W = other.m_W;
65 m_H = other.m_H;
66 m_L = other.m_L;
67 m_Wu = other.m_Wu;
68 m_Wd = other.m_Wd;
69 m_Area = other.m_Area;
70
71 return *this;
72}
73
74// Destructor
76{
77 ;
78}
79
80// Get methods
84int MucEntityCal::GetID() { return m_ID; }
85double MucEntityCal::GetTheta() { return m_Theta; }
86double MucEntityCal::GetRin() { return m_Rin; }
87double MucEntityCal::GetRout() { return m_Rout; }
88double MucEntityCal::GetRc() { return m_Rc; }
89double MucEntityCal::GetThin() { return m_Thin; }
90double MucEntityCal::GetW() { return m_W; }
91double MucEntityCal::GetH() { return m_H; }
92double MucEntityCal::GetL() { return m_L; }
93double MucEntityCal::GetWu() { return m_Wu; }
94double MucEntityCal::GetWd() { return m_Wd; }
95double MucEntityCal::GetArea() { return m_Area; }
96
97// Set methods
99{
111}
112
116void MucEntityCal::SetRc() { m_Rc = 0.; }
118void MucEntityCal::SetW() { m_W = 0.; }
119void MucEntityCal::SetWu() { m_Wu = 0.; }
120void MucEntityCal::SetWd() { m_Wd = 0.; }
121void MucEntityCal::SetH() { m_H = 0.; }
122void MucEntityCal::SetL() { m_L = 0.; }
124
125// END
126
127
virtual ~MucEntityCal()
MucEntityCal(int part, int segment, int layer)
virtual void SetWu()
double GetRout()
virtual void SetH()
double GetTheta()
double GetWu()
double GetH()
virtual void Init()
double GetWd()
double GetThin()
double GetRin()
virtual void SetTheta()
virtual void SetL()
double GetRc()
virtual void SetWd()
virtual void SetRc()
virtual void SetW()
virtual void SetRin()
MucEntityCal & operator=(const MucEntityCal &other)
virtual void SetThin()
virtual void SetRout()
virtual void SetArea()
double GetW()
double GetL()
double GetArea()