BOSS
6.6.4.p03
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
13
using namespace
std
;
14
15
// Constructor
16
MucEntityCal::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
23
MucEntityCal::Init
();
24
}
25
26
MucEntityCal::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
36
MucEntityCal::MucEntityCal
(
const
MucEntityCal
&other )
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
53
MucEntityCal
&
MucEntityCal::operator =
(
const
MucEntityCal
&other )
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
75
MucEntityCal::~MucEntityCal
()
76
{
77
;
78
}
79
80
// Get methods
81
int
MucEntityCal::GetPart
() {
return
m_Part
; }
82
int
MucEntityCal::GetSegment
() {
return
m_Segment
; }
83
int
MucEntityCal::GetLayer
() {
return
m_Layer
; }
84
int
MucEntityCal::GetID
() {
return
m_ID
; }
85
double
MucEntityCal::GetTheta
() {
return
m_Theta
; }
86
double
MucEntityCal::GetRin
() {
return
m_Rin
; }
87
double
MucEntityCal::GetRout
() {
return
m_Rout
; }
88
double
MucEntityCal::GetRc
() {
return
m_Rc
; }
89
double
MucEntityCal::GetThin
() {
return
m_Thin
; }
90
double
MucEntityCal::GetW
() {
return
m_W
; }
91
double
MucEntityCal::GetH
() {
return
m_H
; }
92
double
MucEntityCal::GetL
() {
return
m_L
; }
93
double
MucEntityCal::GetWu
() {
return
m_Wu
; }
94
double
MucEntityCal::GetWd
() {
return
m_Wd
; }
95
double
MucEntityCal::GetArea
() {
return
m_Area
; }
96
97
// Set methods
98
void
MucEntityCal::Init
()
99
{
100
MucEntityCal::SetTheta
();
101
MucEntityCal::SetRin
();
102
MucEntityCal::SetRout
();
103
MucEntityCal::SetRc
();
104
MucEntityCal::SetThin
();
105
MucEntityCal::SetW
();
106
MucEntityCal::SetWu
();
107
MucEntityCal::SetWd
();
108
MucEntityCal::SetH
();
109
MucEntityCal::SetL
();
110
MucEntityCal::SetArea
();
111
}
112
113
void
MucEntityCal::SetTheta
(){
m_Theta
= 0.; }
114
void
MucEntityCal::SetRin
() {
m_Rin
= 0.; }
115
void
MucEntityCal::SetRout
() {
m_Rout
= 0.; }
116
void
MucEntityCal::SetRc
() {
m_Rc
= 0.; }
117
void
MucEntityCal::SetThin
() {
m_Thin
= 0.; }
118
void
MucEntityCal::SetW
() {
m_W
= 0.; }
119
void
MucEntityCal::SetWu
() {
m_Wu
= 0.; }
120
void
MucEntityCal::SetWd
() {
m_Wd
= 0.; }
121
void
MucEntityCal::SetH
() {
m_H
= 0.; }
122
void
MucEntityCal::SetL
() {
m_L
= 0.; }
123
void
MucEntityCal::SetArea
() {
m_Area
= 0.; }
124
125
// END
126
127
MucEntityCal.h
MucEntityCal
Definition:
MucEntityCal.h:16
MucEntityCal::~MucEntityCal
virtual ~MucEntityCal()
Definition:
MucEntityCal.cxx:75
MucEntityCal::MucEntityCal
MucEntityCal(int part, int segment, int layer)
Definition:
MucEntityCal.cxx:16
MucEntityCal::m_Rout
double m_Rout
Definition:
MucEntityCal.h:67
MucEntityCal::SetWu
virtual void SetWu()
Definition:
MucEntityCal.cxx:119
MucEntityCal::GetPart
int GetPart()
Definition:
MucEntityCal.cxx:81
MucEntityCal::GetRout
double GetRout()
Definition:
MucEntityCal.cxx:87
MucEntityCal::SetH
virtual void SetH()
Definition:
MucEntityCal.cxx:121
MucEntityCal::m_Thin
double m_Thin
Definition:
MucEntityCal.h:69
MucEntityCal::GetTheta
double GetTheta()
Definition:
MucEntityCal.cxx:85
MucEntityCal::GetWu
double GetWu()
Definition:
MucEntityCal.cxx:93
MucEntityCal::GetH
double GetH()
Definition:
MucEntityCal.cxx:91
MucEntityCal::Init
virtual void Init()
Definition:
MucEntityCal.cxx:98
MucEntityCal::GetID
int GetID()
Definition:
MucEntityCal.cxx:84
MucEntityCal::GetWd
double GetWd()
Definition:
MucEntityCal.cxx:94
MucEntityCal::GetThin
double GetThin()
Definition:
MucEntityCal.cxx:89
MucEntityCal::m_Theta
double m_Theta
Definition:
MucEntityCal.h:63
MucEntityCal::m_Layer
int m_Layer
Definition:
MucEntityCal.h:60
MucEntityCal::m_Rc
double m_Rc
Definition:
MucEntityCal.h:68
MucEntityCal::GetRin
double GetRin()
Definition:
MucEntityCal.cxx:86
MucEntityCal::SetTheta
virtual void SetTheta()
Definition:
MucEntityCal.cxx:113
MucEntityCal::SetL
virtual void SetL()
Definition:
MucEntityCal.cxx:122
MucEntityCal::m_H
double m_H
Definition:
MucEntityCal.h:71
MucEntityCal::GetRc
double GetRc()
Definition:
MucEntityCal.cxx:88
MucEntityCal::SetWd
virtual void SetWd()
Definition:
MucEntityCal.cxx:120
MucEntityCal::m_L
double m_L
Definition:
MucEntityCal.h:72
MucEntityCal::m_Area
double m_Area
Definition:
MucEntityCal.h:75
MucEntityCal::SetRc
virtual void SetRc()
Definition:
MucEntityCal.cxx:116
MucEntityCal::SetW
virtual void SetW()
Definition:
MucEntityCal.cxx:118
MucEntityCal::SetRin
virtual void SetRin()
Definition:
MucEntityCal.cxx:114
MucEntityCal::m_Rin
double m_Rin
Definition:
MucEntityCal.h:66
MucEntityCal::operator=
MucEntityCal & operator=(const MucEntityCal &other)
Definition:
MucEntityCal.cxx:53
MucEntityCal::GetSegment
int GetSegment()
Definition:
MucEntityCal.cxx:82
MucEntityCal::SetThin
virtual void SetThin()
Definition:
MucEntityCal.cxx:117
MucEntityCal::m_Wu
double m_Wu
Definition:
MucEntityCal.h:73
MucEntityCal::m_Segment
int m_Segment
Definition:
MucEntityCal.h:59
MucEntityCal::SetRout
virtual void SetRout()
Definition:
MucEntityCal.cxx:115
MucEntityCal::SetArea
virtual void SetArea()
Definition:
MucEntityCal.cxx:123
MucEntityCal::m_ID
int m_ID
Definition:
MucEntityCal.h:61
MucEntityCal::GetW
double GetW()
Definition:
MucEntityCal.cxx:90
MucEntityCal::GetL
double GetL()
Definition:
MucEntityCal.cxx:92
MucEntityCal::m_W
double m_W
Definition:
MucEntityCal.h:70
MucEntityCal::GetArea
double GetArea()
Definition:
MucEntityCal.cxx:95
MucEntityCal::m_Part
int m_Part
Definition:
MucEntityCal.h:58
MucEntityCal::m_Wd
double m_Wd
Definition:
MucEntityCal.h:74
MucEntityCal::GetLayer
int GetLayer()
Definition:
MucEntityCal.cxx:83
std
Definition:
RootEventData_rootcint.cxx:15
source
Muc
MucCalibAlg
MucCalibAlg-00-02-16
src
MucEntityCal.cxx
Generated by
1.9.6