1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 ///////////////////////////////////////////////////////////////////////////////
20 // Magnetic Dipole version 1 //
24 <img src="picts/AliDIPOv1Class.gif">
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>.
36 ///////////////////////////////////////////////////////////////////////////////
38 #include <TVirtualMC.h>
40 #include "AliDIPOv1.h"
46 //_____________________________________________________________________________
47 AliDIPOv1::AliDIPOv1()
50 // Default constructor for the magnetic dipole version 1
54 //_____________________________________________________________________________
55 AliDIPOv1::AliDIPOv1(const char *name, const char *title)
59 // Standard constructor for magnetic dipole version 1
66 //_____________________________________________________________________________
67 void AliDIPOv1::CreateGeometry()
70 // Creation of the geometry of the magnetic DIPOLE version 1
74 <img src="picts/AliDIPOv1Tree.gif">
79 <img src="picts/AliDIPOv1.gif">
85 Int_t *idtmed = fIdtmed->GetArray()-1799;
87 //abs_d = 90.; // DEFINES DRIFT LENGTH
90 //theta1 = 24.; // 1. angle defining the front absorber
91 //theta2 = 5.; // 2. angle defining the front absorbe
92 //acc_max = 9.; // ANGLE POLAIRE MAXIMUM
93 //acc_min = 2.; // ANGLE POLAIRE MINIMUM DE DETECTION
95 //d_steel = 1.; // THICKNESS OF STEEL SUPPORT
98 //abs_cc = 315.; // DEFINES LENGTH OF CARBON
100 //abs_s = 150.; // DEFINES W-SHIELD LENGTH
101 //abs_n = 80.; // START OF NOSE
116 //zcone_e = 859.0875;
136 gMC->Gsvolu("DDIP", "TUBE", idtmed[1801], par, 3);
145 gMC->Gsvolu("DIPC", "CONE", idtmed[1810], par, 5);
146 gMC->Gspos("DIPC", 1, "DDIP", 0., 0., 0., 0, "ONLY");
152 gMC->Gsvolu("DIIC", "CONE", idtmed[1807], par, 5);
153 gMC->Gspos("DIIC", 1, "DDIP", 0., 0., 0., 0, "ONLY");
162 gMC->Gsvolu("DIPY", "CONE", idtmed[1834], par, 5);
163 gMC->Gspos("DIPY", 1, "DDIP", 0., 0., 0., 0, "ONLY");
164 gMC->Gspos("DDIP", 1, "ALIC", 0., 0., 725.+250, 0, "ONLY");
167 //_____________________________________________________________________________
168 void AliDIPOv1::DrawModule() const
171 // Draw a shaded view of the muon absorber
174 // Set everything unseen
175 gMC->Gsatt("*", "seen", -1);
177 // Set ALIC mother transparent
178 gMC->Gsatt("ALIC","SEEN",0);
180 // Set the volumes visible
181 gMC->Gsatt("DDIP","seen",1);
182 gMC->Gsatt("DIPC","seen",1);
183 gMC->Gsatt("DIIC","seen",1);
184 gMC->Gsatt("DIPY","seen",1);
186 gMC->Gdopt("hide", "on");
187 gMC->Gdopt("shad", "on");
188 gMC->Gsatt("*", "fill", 7);
189 gMC->SetClipBox(".");
190 gMC->SetClipBox(".");
192 gMC->Gdraw("alic", 30, 30, 0, 17, 13.5, .019, .019);
193 gMC->Gdhead(1111, "Magnetic Dipole Version 1");
194 gMC->Gdman(16, 4, "MAN");
197 //_____________________________________________________________________________
198 void AliDIPOv1::CreateMaterials()
201 // Create Materials for Dipole Magnet version 1
204 Int_t isxfld = gAlice->Field()->Integ();
205 Float_t sxmgmx = gAlice->Field()->Max();
207 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
208 Float_t zsteel[4] = { 26.,24.,28.,14. };
209 Float_t wsteel[4] = { .715,.18,.1,.005 };
210 Float_t epsil, stmin, deemax, tmaxfd, stemax;
215 // --- Define the various materials for GEANT ---
216 AliMaterial(9, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
217 AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
218 AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 0, 17.1);
219 AliMaterial(16, "VACUUM$ ", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
220 AliMixture(24, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
223 // Defines tracking media parameters.
224 // Les valeurs sont commentees pour laisser le defaut
225 // a GEANT (version 3-21, page CONS200), f.m.
226 epsil = .001; // Tracking precision,
227 stemax = -1.; // Maximum displacement for multiple scat
228 tmaxfd = -20.; // Maximum angle due to field deflection
229 deemax = -.3; // Maximum fractional energy loss, DLS
235 AliMedium(1, "AIR_DI_US ", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
236 AliMedium(2, "AIR_DI_US ", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
237 AliMedium(3, "AIR_L3_US ", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
241 AliMedium(8, "ALU_DI_US ", 9, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
242 AliMedium(11, "ALU_DI_SH ", 9, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
246 AliMedium(31, "FE_NF_US ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
247 AliMedium(32, "FE_DI_US ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
248 AliMedium(33, "FE_L3_US ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
249 AliMedium(34, "FE_NF_SH ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
250 AliMedium(35, "FE_DI_SH ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
251 AliMedium(36, "FE_L3_SH ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
255 AliMedium(37, "VA_NF_US ", 16, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
256 AliMedium(38, "VA_DI_US ", 16, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
257 AliMedium(39, "VA_L3_US ", 16, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
261 AliMedium(75, "ST_L3_US ", 24, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);