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