Belle II Software development
COILGeometryPar.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10
11#include <TObject.h>
12#include <string>
13
14namespace Belle2 {
24 class COILGeometryPar: public TObject {
25
26 public:
27
30
33
34 //
35 // Setters and Getters
36 //
38
40 int getVersion() const { return m_Version; }
41
43 void setVersion(int version) { m_Version = version; }
44
45
47 double getGlobalRotAngle() const
48 {
49 return m_GlobalRotAngle;
50 }
51
53 void setGlobalRotAngle(double angle)
54 {
55 m_GlobalRotAngle = angle;
56 }
57
59 double getGlobalOffsetZ() const
60 {
61 return m_GlobalOffsetZ;
62 }
63
65 void setGlobalOffsetZ(double offset)
66 {
67 m_GlobalOffsetZ = offset;
68 }
69
70
71 //
72 // Cryostat vessel
73 //
74
76 std::string getCryoMaterial() const { return m_strMatCryo; }
77
79 void setCryoMaterial(const std::string& material) { m_strMatCryo = material; }
80
82 double getCryoRmin() const
83 {
84 return m_CryoRmin;
85 }
86
88 void setCryoRmin(double r)
89 {
90 m_CryoRmin = r;
91 }
92
94 double getCryoRmax() const
95 {
96 return m_CryoRmax;
97 }
98
100 void setCryoRmax(double r)
101 {
102 m_CryoRmax = r;
103 }
104
106 double getCryoLength() const
107 {
108 return m_CryoLength;
109 }
110
112 void setCryoLength(double l)
113 {
114 m_CryoLength = l;
115 }
116
117
118 //
119 // cavity #1
120 //
121
123 std::string getCav1Material() const { return m_strMatCav1; }
124
126 void setCav1Material(const std::string& material) { m_strMatCav1 = material; }
127
129 double getCav1Rmin() const
130 {
131 return m_Cav1Rmin;
132 }
133
135 void setCav1Rmin(double r)
136 {
137 m_Cav1Rmin = r;
138 }
139
141 double getCav1Rmax() const
142 {
143 return m_Cav1Rmax;
144 }
145
147 void setCav1Rmax(double r)
148 {
149 m_Cav1Rmax = r;
150 }
151
153 double getCav1Length() const
154 {
155 return m_Cav1Length;
156 }
157
159 void setCav1Length(double l)
160 {
161 m_Cav1Length = l;
162 }
163
164
165 //
166 // cavity #2
167 //
168
170 std::string getCav2Material() const { return m_strMatCav2; }
171
173 void setCav2Material(const std::string& material) { m_strMatCav2 = material; }
174
176 double getCav2Rmin() const
177 {
178 return m_Cav2Rmin;
179 }
180
182 void setCav2Rmin(double r)
183 {
184 m_Cav2Rmin = r;
185 }
186
188 double getCav2Rmax() const
189 {
190 return m_Cav2Rmax;
191 }
192
194 void setCav2Rmax(double r)
195 {
196 m_Cav2Rmax = r;
197 }
198
200 double getCav2Length() const
201 {
202 return m_Cav2Length;
203 }
204
206 void setCav2Length(double l)
207 {
208 m_Cav2Length = l;
209 }
210
211
212 //
213 // radiation shield
214 //
215
217 std::string getShieldMaterial() const { return m_strMatShield; }
218
220 void setShieldMaterial(const std::string& material) { m_strMatShield = material; }
221
223 double getShieldRmin() const
224 {
225 return m_ShieldRmin;
226 }
227
229 void setShieldRmin(double r)
230 {
231 m_ShieldRmin = r;
232 }
233
235 double getShieldRmax() const
236 {
237 return m_ShieldRmax;
238 }
239
241 void setShieldRmax(double r)
242 {
243 m_ShieldRmax = r;
244 }
245
247 double getShieldLength() const
248 {
249 return m_ShieldLength;
250 }
251
253 void setShieldLength(double l)
254 {
255 m_ShieldLength = l;
256 }
257
258
259 //
260 // superconducting coil
261 //
262
264 std::string getCoilMaterial() const { return m_strMatCoil; }
265
267 void setCoilMaterial(const std::string& material) { m_strMatCoil = material; }
268
270 double getCoilRmin() const
271 {
272 return m_CoilRmin;
273 }
274
276 void setCoilRmin(double r)
277 {
278 m_CoilRmin = r;
279 }
280
282 double getCoilRmax() const
283 {
284 return m_CoilRmax;
285 }
286
288 void setCoilRmax(double r)
289 {
290 m_CoilRmax = r;
291 }
292
294 double getCoilLength() const
295 {
296 return m_CoilLength;
297 }
298
300 void setCoilLength(double l)
301 {
302 m_CoilLength = l;
303 }
304
305
306
307 private:
308
309
310 //
311 // Data members:
312 // these are the geometry parameters
313 //
315
318
319 //
320 // Global parameters
321 //
326
327 //
328 // Cryostat vessel
329 //
331 std::string m_strMatCryo;
338
339 //
340 // Cavity #1
341 //
343 std::string m_strMatCav1;
350
351 //
352 // Cavity #2
353 //
355 std::string m_strMatCav2;
362
363 //
364 // Radiation Shield
365 //
367 std::string m_strMatShield;
374
375 //
376 // Superconducting Coil
377 //
379 std::string m_strMatCoil;
386
387 //
388 // For ROOT objects
389 //
390
394 };
396} // end of namespace Belle2
397
398
The Class for COIL geometry parameters.
void setCav1Rmax(double r)
Set the Outer radius of the cavity #1.
double m_ShieldLength
Inner radius of the Radiation Shield.
void setCav1Rmin(double r)
Set the Inner radius of the cavity #1.
double m_Cav1Length
Inner radius of the cavity #1.
void setCav2Rmin(double r)
Set the Inner radius of the cavity #2.
std::string m_strMatCav1
Material of the cavity #1.
std::string m_strMatCav2
Material of the cavity #2.
void setCryoRmin(double r)
Set the Inner radius of the cryostat vessel.
void setCoilLength(double l)
Set the Half-length of the superconducting coil.
double getGlobalRotAngle() const
Get Global Rotation Angle.
void setShieldMaterial(const std::string &material)
Set the Material of the radiation shield (as a std::string)
void setShieldRmin(double r)
Set the Inner radius of the radiation shield.
double getShieldRmin() const
Get the Inner radius of the radiation shield.
std::string getCryoMaterial() const
Get the Material of the cryostat vessel.
double m_Cav2Rmin
Inner radius of the cavity #2.
void setCryoMaterial(const std::string &material)
Set the Material of the cryostat vessel (as a std::string)
double getCoilRmin() const
Get the Inner radius of the superconducting coil.
double m_ShieldRmax
Inner radius of the Radiation Shield.
double m_GlobalOffsetZ
Global offset along beam axis between coil and detector.
void setShieldLength(double l)
Set the Half-length of the radiation shield.
void setCoilRmax(double r)
Set the Outer radius of the superconducting coil.
double m_Cav1Rmin
Inner radius of the cavity #1.
int m_Version
Geometry version.
double m_Cav2Rmax
Inner radius of the cavity #2.
double getShieldRmax() const
Get the Outer radius of the radiation shield.
double m_CoilRmax
Inner radius of the Superconducting Coil.
double m_Cav1Rmax
Inner radius of the cavity #1.
void setCav2Length(double l)
Set the Half-length of the cavity #2.
std::string m_strMatCryo
Material of the cryostat vessel.
void setCoilRmin(double r)
Set the Inner radius of the superconducting coil.
std::string getCav1Material() const
Get the Material of the cavity #1.
void setVersion(int version)
Set COIL geometry version.
double getShieldLength() const
Get the Half-length of the radiation shield.
double m_Cav2Length
Inner radius of the cavity #2.
double getCryoRmax() const
Get the Outer radius of the cryostat vessel.
double m_CoilRmin
Inner radius of the Superconducting Coil.
double m_GlobalRotAngle
Global rotation angle bewteen coil and detector.
double m_CoilLength
Inner radius of the Superconducting Coil.
double m_CryoLength
Half-length of the cryostat vessel.
double getCav2Length() const
Get the Half-length of the cavity #2.
double m_ShieldRmin
Inner radius of the Radiation Shield.
double getCoilLength() const
Get the Half-length of the superconducting coil.
void setShieldRmax(double r)
Set the Outer radius of the radiation shield.
double getCav2Rmin() const
Get the Inner radius of the cavity #2.
double getCoilRmax() const
Get the Outer radius of the superconducting coil.
std::string m_strMatCoil
Material of the Superconducting Coil.
void setCav2Rmax(double r)
Set the Outer radius of the cavity #2.
double getCav2Rmax() const
Get the Outer radius of the cavity #2.
void setCav1Material(const std::string &material)
Set the Material of the cavity #1 (as a std::string)
double getCav1Rmin() const
Get the Inner radius of the cavity #1.
void setCav1Length(double l)
Set the Half-length of the cavity #1.
std::string getCav2Material() const
Get the Material of the cavity #2.
double m_CryoRmax
Outer radius of the cryostat vessel.
void setCoilMaterial(const std::string &material)
Set the Material of the superconducting coil (as a std::string)
COILGeometryPar()
Default constructor.
ClassDef(COILGeometryPar, 1)
ClassDef, must be the last term before the closing {}.
int getVersion() const
Get COIL geometry version.
void setGlobalRotAngle(double angle)
Set Global Rotation Angle.
double getCav1Rmax() const
Get the Outer radius of the cavity #1.
double getGlobalOffsetZ() const
Get Global offset in Z.
void setCav2Material(const std::string &material)
Set the Material of the cavity #2 (as a std::string)
void setGlobalOffsetZ(double offset)
Set Global offset in Z.
double m_CryoRmin
Inner radius of the cryostat vessel.
double getCav1Length() const
Get the Half-length of the cavity #1.
double getCryoLength() const
Get the Half-length of the cryostat vessel.
std::string getShieldMaterial() const
Get the Material of the radiation shield.
std::string getCoilMaterial() const
Get the Material of the superconducting coil.
double getCryoRmin() const
Get the Inner radius of the cryostat vessel.
std::string m_strMatShield
Material of the Radiation Shield.
void setCryoLength(double l)
Set the Half-length of the cryostat vessel.
void setCryoRmax(double r)
Set the Outer radius of the cryostat vessel.
Abstract base class for different kinds of events.