BOSS 8.0.0
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, <ygxie@mail.ihep.ac.cn> |
5// [Date ]: Mar 28, 2006 |
6//------------------------------------------------------------------------------|
7
8#include <iostream>
9#include <string>
10
11#include "MucCalib/MucEntityCal.h"
12
13using namespace std;
14
15// Constructor
16MucEntityCal::MucEntityCal( int part, int segment, int layer ) {
17 m_Part = part;
18 m_Segment = segment;
19 m_Layer = layer;
20 m_ID = 0; // only 1 entity, default
21
23}
24
25MucEntityCal::MucEntityCal( int part, int segment, int layer, int id ) {
26 m_Part = part;
27 m_Segment = segment;
28 m_Layer = layer;
29 m_ID = id;
30
31 Init();
32}
33
35 m_Part = other.m_Part;
36 m_Segment = other.m_Segment;
37 m_Layer = other.m_Layer;
38 m_ID = other.m_ID;
39
40 m_Theta = other.m_Theta;
41 m_Thin = other.m_Thin;
42 m_W = other.m_W;
43 m_H = other.m_H;
44 m_L = other.m_L;
45 m_Wu = other.m_Wu;
46 m_Wd = other.m_Wd;
47 m_Area = other.m_Area;
48}
49
51 if ( this == &other ) return *this;
52
53 m_Part = other.m_Part;
54 m_Segment = other.m_Segment;
55 m_Layer = other.m_Layer;
56 m_ID = other.m_ID;
57
58 m_Theta = other.m_Theta;
59 m_Thin = other.m_Thin;
60 m_W = other.m_W;
61 m_H = other.m_H;
62 m_L = other.m_L;
63 m_Wu = other.m_Wu;
64 m_Wd = other.m_Wd;
65 m_Area = other.m_Area;
66
67 return *this;
68}
69
70// Destructor
72
73// Get methods
77int MucEntityCal::GetID() { return m_ID; }
78double MucEntityCal::GetTheta() { return m_Theta; }
79double MucEntityCal::GetRin() { return m_Rin; }
80double MucEntityCal::GetRout() { return m_Rout; }
81double MucEntityCal::GetRc() { return m_Rc; }
82double MucEntityCal::GetThin() { return m_Thin; }
83double MucEntityCal::GetW() { return m_W; }
84double MucEntityCal::GetH() { return m_H; }
85double MucEntityCal::GetL() { return m_L; }
86double MucEntityCal::GetWu() { return m_Wu; }
87double MucEntityCal::GetWd() { return m_Wd; }
88double MucEntityCal::GetArea() { return m_Area; }
89
90// Set methods
104
108void MucEntityCal::SetRc() { m_Rc = 0.; }
110void MucEntityCal::SetW() { m_W = 0.; }
111void MucEntityCal::SetWu() { m_Wu = 0.; }
112void MucEntityCal::SetWd() { m_Wd = 0.; }
113void MucEntityCal::SetH() { m_H = 0.; }
114void MucEntityCal::SetL() { m_L = 0.; }
116
117// END
virtual ~MucEntityCal()
MucEntityCal(int part, int segment, int layer)
virtual void SetWu()
double GetRout()
virtual void SetH()
double GetTheta()
virtual void Init()
double GetThin()
double GetRin()
virtual void SetTheta()
virtual void SetL()
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 GetArea()