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