]>
Commit | Line | Data |
---|---|---|
4c039060 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | /* | |
17 | $Log$ | |
43ea1292 | 18 | Revision 1.8 2000/10/02 21:28:15 fca |
19 | Removal of useless dependecies via forward declarations | |
20 | ||
94de3818 | 21 | Revision 1.7 2000/06/11 12:33:34 morsch |
22 | Coding rule violations corrected | |
23 | ||
b43eb0dc | 24 | Revision 1.6 1999/09/29 09:24:30 fca |
25 | Introduction of the Copyright and cvs Log | |
26 | ||
4c039060 | 27 | */ |
28 | ||
fe4da5cc | 29 | /////////////////////////////////////////////////////////////////////////////// |
30 | // // | |
31 | // Magnetic Dipole version 1 // | |
32 | // // | |
33 | //Begin_Html | |
34 | /* | |
1439f98e | 35 | <img src="picts/AliDIPOv1Class.gif"> |
fe4da5cc | 36 | </pre> |
37 | <br clear=left> | |
38 | <font size=+2 color=red> | |
39 | <p>The responsible person for this module is | |
40 | <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>. | |
41 | </font> | |
42 | <pre> | |
43 | */ | |
44 | //End_Html | |
45 | // // | |
46 | // // | |
47 | /////////////////////////////////////////////////////////////////////////////// | |
48 | ||
49 | #include "AliDIPOv1.h" | |
50 | #include "AliRun.h" | |
94de3818 | 51 | #include "AliMagF.h" |
fe4da5cc | 52 | |
53 | ClassImp(AliDIPOv1) | |
54 | ||
55 | //_____________________________________________________________________________ | |
b8032157 | 56 | AliDIPOv1::AliDIPOv1() |
fe4da5cc | 57 | { |
58 | // | |
59 | // Default constructor for the magnetic dipole version 1 | |
60 | // | |
61 | } | |
62 | ||
63 | //_____________________________________________________________________________ | |
64 | AliDIPOv1::AliDIPOv1(const char *name, const char *title) | |
65 | : AliDIPO(name,title) | |
66 | { | |
67 | // | |
68 | // Standard constructor for magnetic dipole version 1 | |
69 | // | |
70 | SetMarkerColor(7); | |
71 | SetMarkerStyle(2); | |
72 | SetMarkerSize(0.4); | |
73 | } | |
74 | ||
75 | //_____________________________________________________________________________ | |
76 | void AliDIPOv1::CreateGeometry() | |
77 | { | |
78 | // | |
79 | // Creation of the geometry of the magnetic DIPOLE version 1 | |
80 | // | |
81 | //Begin_Html | |
82 | /* | |
1439f98e | 83 | <img src="picts/AliDIPOv1Tree.gif"> |
fe4da5cc | 84 | */ |
85 | //End_Html | |
86 | //Begin_Html | |
87 | /* | |
1439f98e | 88 | <img src="picts/AliDIPOv1.gif"> |
fe4da5cc | 89 | */ |
90 | //End_Html | |
91 | ||
fe4da5cc | 92 | Float_t par[5]; |
93 | ||
ad51aeb0 | 94 | Int_t *idtmed = fIdtmed->GetArray()-1799; |
fe4da5cc | 95 | |
96 | //abs_d = 90.; // DEFINES DRIFT LENGTH | |
97 | //z_nose = 102.; | |
98 | //z_cone = 285.; | |
99 | //theta1 = 24.; // 1. angle defining the front absorber | |
100 | //theta2 = 5.; // 2. angle defining the front absorbe | |
101 | //acc_max = 9.; // ANGLE POLAIRE MAXIMUM | |
102 | //acc_min = 2.; // ANGLE POLAIRE MINIMUM DE DETECTION | |
103 | //abs_l = 503.; | |
104 | //d_steel = 1.; // THICKNESS OF STEEL SUPPORT | |
105 | //d_poly = 7.5; | |
106 | //d_pb = 2.5; | |
107 | //abs_cc = 315.; // DEFINES LENGTH OF CARBON | |
108 | //abs_c = 358.; | |
109 | //abs_s = 150.; // DEFINES W-SHIELD LENGTH | |
110 | //abs_n = 80.; // START OF NOSE | |
111 | //r_abs = 4.; | |
112 | //r_pb = .1; | |
113 | //epsilon = .01; | |
114 | //theta_r = 3.; | |
115 | //d_rear = 35.; | |
116 | //theta_open = .75; | |
117 | ||
118 | //z_l3 = 700.; | |
119 | //zmag_in = 725.; | |
120 | //zmag_out = 1225.; | |
121 | //zfil_in = 1471.; | |
122 | //zfil_out = 1591.; | |
123 | //zcon_in = 1900.; | |
124 | //zcon_out = 2e3; | |
125 | //zcone_e = 859.0875; | |
126 | //spec_l = 1800.; | |
127 | //zplug_in = 1780.; | |
128 | //zplug_out = 1900.; | |
129 | ||
130 | // Chamber position | |
131 | // CZ1=515.5 | |
132 | //cz1 = 511.; | |
133 | //cz2 = 686.; | |
134 | //cz3 = 971.; | |
135 | //cz4 = 1245.; | |
136 | //cz5 = 1445.; | |
137 | //cz6 = 1610.; | |
138 | //cz7 = 1710.; | |
139 | ||
140 | ||
141 | // DIPOLE MAGNET | |
142 | par[0] = 0.; | |
143 | par[1] = 280.; | |
144 | par[2] = 250.; | |
cfce8870 | 145 | gMC->Gsvolu("DDIP", "TUBE", idtmed[1801], par, 3); |
fe4da5cc | 146 | |
147 | // COIL | |
148 | par[0] = 250.; | |
149 | par[1] = 125.; | |
150 | par[2] = 165.; | |
151 | par[3] = 204.; | |
152 | par[4] = 244.; | |
153 | ||
cfce8870 | 154 | gMC->Gsvolu("DIPC", "CONE", idtmed[1810], par, 5); |
155 | gMC->Gspos("DIPC", 1, "DDIP", 0., 0., 0., 0, "ONLY"); | |
fe4da5cc | 156 | par[0] = 250.; |
157 | par[1] = 115.; | |
158 | par[2] = 125.; | |
159 | par[3] = 194.; | |
160 | par[4] = 204.; | |
cfce8870 | 161 | gMC->Gsvolu("DIIC", "CONE", idtmed[1807], par, 5); |
162 | gMC->Gspos("DIIC", 1, "DDIP", 0., 0., 0., 0, "ONLY"); | |
fe4da5cc | 163 | |
164 | // YOKE | |
165 | par[0] = 250.; | |
166 | par[1] = 165.; | |
167 | par[2] = 195.; | |
168 | par[3] = 244.; | |
169 | par[4] = 274.; | |
170 | ||
cfce8870 | 171 | gMC->Gsvolu("DIPY", "CONE", idtmed[1834], par, 5); |
172 | gMC->Gspos("DIPY", 1, "DDIP", 0., 0., 0., 0, "ONLY"); | |
173 | gMC->Gspos("DDIP", 1, "ALIC", 0., 0., 725.+250, 0, "ONLY"); | |
fe4da5cc | 174 | } |
175 | ||
176 | //_____________________________________________________________________________ | |
b8032157 | 177 | void AliDIPOv1::DrawModule() |
fe4da5cc | 178 | { |
179 | // | |
180 | // Draw a shaded view of the muon absorber | |
181 | // | |
182 | ||
fe4da5cc | 183 | // Set everything unseen |
cfce8870 | 184 | gMC->Gsatt("*", "seen", -1); |
fe4da5cc | 185 | // |
186 | // Set ALIC mother transparent | |
cfce8870 | 187 | gMC->Gsatt("ALIC","SEEN",0); |
fe4da5cc | 188 | // |
189 | // Set the volumes visible | |
cfce8870 | 190 | gMC->Gsatt("DDIP","seen",1); |
191 | gMC->Gsatt("DIPC","seen",1); | |
192 | gMC->Gsatt("DIIC","seen",1); | |
193 | gMC->Gsatt("DIPY","seen",1); | |
fe4da5cc | 194 | // |
cfce8870 | 195 | gMC->Gdopt("hide", "on"); |
196 | gMC->Gdopt("shad", "on"); | |
197 | gMC->Gsatt("*", "fill", 7); | |
198 | gMC->SetClipBox("."); | |
199 | gMC->SetClipBox("."); | |
200 | gMC->DefaultRange(); | |
201 | gMC->Gdraw("alic", 30, 30, 0, 17, 13.5, .019, .019); | |
202 | gMC->Gdhead(1111, "Magnetic Dipole Version 1"); | |
203 | gMC->Gdman(16, 4, "MAN"); | |
fe4da5cc | 204 | } |
205 | ||
206 | //_____________________________________________________________________________ | |
207 | void AliDIPOv1::CreateMaterials() | |
208 | { | |
209 | // | |
210 | // Create Materials for Dipole Magnet version 1 | |
211 | // | |
212 | ||
b43eb0dc | 213 | Int_t isxfld = gAlice->Field()->Integ(); |
214 | Float_t sxmgmx = gAlice->Field()->Max(); | |
fe4da5cc | 215 | |
216 | Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 }; | |
217 | Float_t zsteel[4] = { 26.,24.,28.,14. }; | |
218 | Float_t wsteel[4] = { .715,.18,.1,.005 }; | |
219 | Float_t epsil, stmin, deemax, tmaxfd, stemax; | |
220 | ||
221 | // STEEL | |
222 | ||
223 | ||
224 | // --- Define the various materials for GEANT --- | |
ad51aeb0 | 225 | AliMaterial(9, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2); |
226 | AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500); | |
227 | AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 0, 17.1); | |
228 | AliMaterial(16, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16); | |
229 | AliMixture(24, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel); | |
fe4da5cc | 230 | |
231 | // **************** | |
232 | // Defines tracking media parameters. | |
233 | // Les valeurs sont commentees pour laisser le defaut | |
234 | // a GEANT (version 3-21, page CONS200), f.m. | |
235 | epsil = .001; // Tracking precision, | |
236 | stemax = -1.; // Maximum displacement for multiple scat | |
237 | tmaxfd = -20.; // Maximum angle due to field deflection | |
238 | deemax = -.3; // Maximum fractional energy loss, DLS | |
239 | stmin = -.8; | |
240 | // *************** | |
241 | ||
242 | // Air | |
243 | ||
b43eb0dc | 244 | AliMedium(1, "AIR_DI_US ", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); |
245 | AliMedium(2, "AIR_DI_US ", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
246 | AliMedium(3, "AIR_L3_US ", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
fe4da5cc | 247 | |
248 | // Aluminum | |
249 | ||
b43eb0dc | 250 | AliMedium(8, "ALU_DI_US ", 9, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); |
251 | AliMedium(11, "ALU_DI_SH ", 9, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
fe4da5cc | 252 | |
253 | // Iron | |
254 | ||
b43eb0dc | 255 | AliMedium(31, "FE_NF_US ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); |
256 | AliMedium(32, "FE_DI_US ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
257 | AliMedium(33, "FE_L3_US ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
258 | AliMedium(34, "FE_NF_SH ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
259 | AliMedium(35, "FE_DI_SH ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
260 | AliMedium(36, "FE_L3_SH ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
fe4da5cc | 261 | |
262 | // Vacuum | |
263 | ||
b43eb0dc | 264 | AliMedium(37, "VA_NF_US ", 16, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); |
265 | AliMedium(38, "VA_DI_US ", 16, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
266 | AliMedium(39, "VA_L3_US ", 16, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
fe4da5cc | 267 | |
268 | // Steel | |
269 | ||
b43eb0dc | 270 | AliMedium(75, "ST_L3_US ", 24, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); |
fe4da5cc | 271 | } |
272 |