CGEM BOSS
6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h
Go to the documentation of this file.
1
// $Id: MdcGeoLayer.h,v 1.2 2015/10/22 06:21:15 wulh Exp $ // -*-c++-*-
2
// header file for a class called "MdcGeoLayer"
3
#ifndef MDC_GEO_LAYER_H
4
#define MDC_GEO_LAYER_H
5
6
#include <CLHEP/Geometry/Point3D.h>
7
#include <iostream>
8
#ifndef ENABLE_BACKWARDS_COMPATIBILITY
9
typedef
HepGeom::Point3D<double>
HepPoint3D
;
10
#endif
11
12
using namespace
CLHEP;
13
14
class
MdcGeoSuper
;
15
16
class
MdcGeoLayer
{
17
18
public
:
19
// Constructor.
20
MdcGeoLayer
():fId(0),fSLayer(0),fWirst(0),fSlant(0.),fnomSlant(0.),fRadius(0.),fLength(0.),fRCSiz1(0.),fRCSiz2(0.),
21
fPCSiz(0.),fNCell(0),fOffset(0.),fShift(0.),fnomOffset(0.),fnomShift(0.),fTwistF(0.),fTwistB(0.){
22
HepPoint3D
O(0,0,0);
23
fOffF=O;
24
fOffB=O;
25
fSup=0;
26
fGenLayer=0;
27
};
28
// Copy and Assignment
29
MdcGeoLayer
(
const
MdcGeoLayer
& e){
30
fId=e.
Id
();
31
fSLayer=e.
SLayer
();
32
fWirst=e.
Wirst
();
33
fSlant=e.
Slant
();
34
fnomSlant=e.
nomSlant
();
35
fRadius=e.
Radius
();
36
fLength=e.
Length
();
37
fRCSiz1=e.
RCSiz1
();
38
fRCSiz2=e.
RCSiz2
();
39
fPCSiz=e.
PCSiz
();
40
fNCell=e.
NCell
();
41
fOffset=e.
Offset
();
42
fShift=e.
Shift
();
43
fnomOffset=e.
nomOffset
();
44
fnomShift=e.
nomShift
();
45
fTwistF=e.
TwistF
();
46
fTwistB=e.
TwistB
();
47
fOffF=e.
OffF
();
48
fOffB=e.
OffB
();
49
fSup=e.
Sup
();
50
fGenLayer=e.
Gen
();
51
};
52
MdcGeoLayer
&
operator=
(
const
MdcGeoLayer
& e) {
53
if
(
this
!=&e)
54
{
55
fId=e.
Id
();
56
fSLayer=e.
SLayer
();
57
fWirst=e.
Wirst
();
58
fSlant=e.
Slant
();
59
fnomSlant=e.
nomSlant
();
60
fRadius=e.
Radius
();
61
fLength=e.
Length
();
62
fRCSiz1=e.
RCSiz1
();
63
fRCSiz2=e.
RCSiz2
();
64
fPCSiz=e.
PCSiz
();
65
fNCell=e.
NCell
();
66
fOffset=e.
Offset
();
67
fShift=e.
Shift
();
68
fnomOffset=e.
nomOffset
();
69
fnomShift=e.
nomShift
();
70
fTwistF=e.
TwistF
();
71
fTwistB=e.
TwistB
();
72
fOffF=e.
OffF
();
73
fOffB=e.
OffB
();
74
fSup=e.
Sup
();
75
fGenLayer=e.
Gen
();
76
}
77
return
*
this
;
78
}
79
80
// Destructor
81
~MdcGeoLayer
(){};
82
83
public
:
// Extractors
84
int
Id
(
void
)
const
;
85
int
SLayer
(
void
)
const
;
86
int
Wirst
(
void
)
const
;
87
double
Slant
(
void
)
const
;
88
double
nomSlant
(
void
)
const
;
89
double
Radius
(
void
)
const
;
90
double
Length
(
void
)
const
;
91
double
RCSiz1
(
void
)
const
;
92
double
RCSiz2
(
void
)
const
;
93
double
PCSiz
(
void
)
const
;
94
int
NCell
(
void
)
const
;
95
double
Offset
(
void
)
const
;
96
double
Shift
(
void
)
const
;
97
double
nomOffset
(
void
)
const
;
98
double
nomShift
(
void
)
const
;
99
double
TwistF
(
void
)
const
;
100
double
TwistB
(
void
)
const
;
101
HepPoint3D
OffF
(
void
)
const
;
102
HepPoint3D
OffB
(
void
)
const
;
103
MdcGeoSuper
*
Sup
(
void
)
const
;
104
int
Gen
(
void
)
const
;
105
106
public
:
// Modifiers
107
int
Id
(
int
);
108
int
SLayer
(
int
);
109
int
Wirst
(
int
);
110
double
Slant
(
double
);
111
double
nomSlant
(
double
);
112
double
Radius
(
double
);
113
double
Length
(
double
);
114
double
RCSiz1
(
double
);
115
double
RCSiz2
(
double
);
116
double
PCSiz
(
double
);
117
int
NCell
(
int
);
118
double
Offset
(
double
);
119
double
Shift
(
double
);
120
double
nomOffset
(
double
);
121
double
nomShift
(
double
);
122
double
TwistF
(
double
);
123
double
TwistB
(
double
);
124
HepPoint3D
OffF
(
HepPoint3D
);
125
HepPoint3D
OffB
(
HepPoint3D
);
126
MdcGeoSuper
*
Sup
(
MdcGeoSuper
* );
127
int
Gen
(
int
);
128
129
private
:
130
int
fId;
131
int
fSLayer;
//SignalLayer
132
int
fWirst;
//No. of 1st sense wire in this layer.
133
double
fSlant;
134
double
fnomSlant;
135
double
fRadius;
136
double
fLength;
137
double
fRCSiz1;
138
double
fRCSiz2;
139
double
fPCSiz;
140
int
fNCell;
141
double
fOffset;
142
double
fShift;
143
double
fnomOffset;
144
double
fnomShift;
145
double
fTwistF;
146
double
fTwistB;
147
HepPoint3D
fOffF;
148
HepPoint3D
fOffB;
149
MdcGeoSuper
* fSup;
150
int
fGenLayer;
151
};
152
153
//-----------------------------------------------------
154
// Extractors
155
inline
int
MdcGeoLayer::Id
(
void
)
const
{
return
fId; }
156
inline
int
MdcGeoLayer::SLayer
(
void
)
const
{
return
fSLayer; }
157
inline
int
MdcGeoLayer::Wirst
(
void
)
const
{
return
fWirst;}
158
inline
double
MdcGeoLayer::Slant
(
void
)
const
{
return
fSlant; }
159
inline
double
MdcGeoLayer::nomSlant
(
void
)
const
{
return
fnomSlant; }
160
inline
double
MdcGeoLayer::Radius
(
void
)
const
{
return
fRadius; }
161
inline
double
MdcGeoLayer::Length
(
void
)
const
{
return
fLength; }
162
inline
double
MdcGeoLayer::RCSiz1
(
void
)
const
{
return
fRCSiz1; }
163
inline
double
MdcGeoLayer::RCSiz2
(
void
)
const
{
return
fRCSiz2; }
164
inline
double
MdcGeoLayer::PCSiz
(
void
)
const
{
return
fPCSiz; }
165
inline
int
MdcGeoLayer::NCell
(
void
)
const
{
return
fNCell; }
166
inline
double
MdcGeoLayer::Offset
(
void
)
const
{
return
fOffset; }
167
inline
double
MdcGeoLayer::Shift
(
void
)
const
{
return
fShift; }
168
inline
double
MdcGeoLayer::nomOffset
(
void
)
const
{
return
fnomOffset; }
169
inline
double
MdcGeoLayer::nomShift
(
void
)
const
{
return
fnomShift; }
170
inline
double
MdcGeoLayer::TwistF
(
void
)
const
{
return
fTwistF; }
171
inline
double
MdcGeoLayer::TwistB
(
void
)
const
{
return
fTwistB; }
172
inline
HepPoint3D
MdcGeoLayer::OffF
(
void
)
const
{
return
fOffF;}
173
inline
HepPoint3D
MdcGeoLayer::OffB
(
void
)
const
{
return
fOffB;}
174
inline
MdcGeoSuper
*
MdcGeoLayer::Sup
(
void
)
const
{
return
fSup; }
175
inline
int
MdcGeoLayer::Gen
(
void
)
const
{
return
fGenLayer;}
176
177
// Modifiers
178
inline
int
MdcGeoLayer::Id
(
int
i) {
return
fId=i; }
179
inline
int
MdcGeoLayer::SLayer
(
int
i) {
return
fSLayer=i; }
180
inline
int
MdcGeoLayer::Wirst
(
int
i) {
return
fWirst=i; }
181
inline
double
MdcGeoLayer::Slant
(
double
i) {
return
fSlant=i; }
182
inline
double
MdcGeoLayer::nomSlant
(
double
i) {
return
fnomSlant=i; }
183
inline
double
MdcGeoLayer::Radius
(
double
i) {
return
fRadius=i; }
184
inline
double
MdcGeoLayer::Length
(
double
i) {
return
fLength=i; }
185
inline
double
MdcGeoLayer::RCSiz1
(
double
i) {
return
fRCSiz1=i; }
186
inline
double
MdcGeoLayer::RCSiz2
(
double
i) {
return
fRCSiz2=i; }
187
inline
double
MdcGeoLayer::PCSiz
(
double
i) {
return
fPCSiz=i; }
188
inline
int
MdcGeoLayer::NCell
(
int
i) {
return
fNCell=i; }
189
inline
double
MdcGeoLayer::Offset
(
double
i) {
return
fOffset=i; }
190
inline
double
MdcGeoLayer::Shift
(
double
i) {
return
fShift=i; }
191
inline
double
MdcGeoLayer::nomOffset
(
double
i) {
return
fnomOffset=i; }
192
inline
double
MdcGeoLayer::nomShift
(
double
i) {
return
fnomShift=i; }
193
inline
double
MdcGeoLayer::TwistF
(
double
i) {
return
fTwistF=i; }
194
inline
double
MdcGeoLayer::TwistB
(
double
i) {
return
fTwistB=i; }
195
inline
HepPoint3D
MdcGeoLayer::OffF
(
HepPoint3D
i) {
return
fOffF=i;}
196
inline
HepPoint3D
MdcGeoLayer::OffB
(
HepPoint3D
i) {
return
fOffB=i;}
197
inline
MdcGeoSuper
*
MdcGeoLayer::Sup
(
MdcGeoSuper
* i) {
return
fSup=i; }
198
inline
int
MdcGeoLayer::Gen
(
int
i) {
return
fGenLayer=i;}
199
//-----------------------------------------------------
200
201
#endif
/* MdcGeoLayer_CLASS */
202
HepPoint3D
HepGeom::Point3D< double > HepPoint3D
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:9
HepGeom::Point3D
Definition
IMagneticFieldSvc.h:15
MdcGeoLayer
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:16
MdcGeoLayer::TwistB
double TwistB(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:171
MdcGeoLayer::OffF
HepPoint3D OffF(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:172
MdcGeoLayer::Id
int Id(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:155
MdcGeoLayer::operator=
MdcGeoLayer & operator=(const MdcGeoLayer &e)
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:52
MdcGeoLayer::Radius
double Radius(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:160
MdcGeoLayer::Slant
double Slant(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:158
MdcGeoLayer::Gen
int Gen(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:175
MdcGeoLayer::RCSiz2
double RCSiz2(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:163
MdcGeoLayer::Length
double Length(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:161
MdcGeoLayer::PCSiz
double PCSiz(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:164
MdcGeoLayer::MdcGeoLayer
MdcGeoLayer()
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:20
MdcGeoLayer::OffB
HepPoint3D OffB(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:173
MdcGeoLayer::Sup
MdcGeoSuper * Sup(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:174
MdcGeoLayer::SLayer
int SLayer(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:156
MdcGeoLayer::nomShift
double nomShift(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:169
MdcGeoLayer::~MdcGeoLayer
~MdcGeoLayer()
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:81
MdcGeoLayer::Shift
double Shift(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:167
MdcGeoLayer::TwistF
double TwistF(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:170
MdcGeoLayer::nomSlant
double nomSlant(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:159
MdcGeoLayer::MdcGeoLayer
MdcGeoLayer(const MdcGeoLayer &e)
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:29
MdcGeoLayer::RCSiz1
double RCSiz1(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:162
MdcGeoLayer::NCell
int NCell(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:165
MdcGeoLayer::Wirst
int Wirst(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:157
MdcGeoLayer::Offset
double Offset(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:166
MdcGeoLayer::nomOffset
double nomOffset(void) const
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoLayer.h:168
MdcGeoSuper
Definition
bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoSuper.h:8
6.6.5.i
Mdc
MdcGeomSvc
bak_MdcGeomSvc-00-01-39
MdcGeomSvc
MdcGeoLayer.h
Generated by
1.12.0