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