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 Revision 1.8 2000/10/02 21:28:15 fca
19 Removal of useless dependecies via forward declarations
21 Revision 1.7 2000/06/11 12:35:56 morsch
22 Coding rule violations corrected
24 Revision 1.6 1999/09/29 09:24:30 fca
25 Introduction of the Copyright and cvs Log
29 ///////////////////////////////////////////////////////////////////////////////
35 <img src="picts/AliMAGClass.gif">
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>.
46 ///////////////////////////////////////////////////////////////////////////////
55 //_____________________________________________________________________________
59 // Default constructor for L3 magnet
63 //_____________________________________________________________________________
64 AliMAG::AliMAG(const char *name, const char *title)
65 : AliModule(name,title)
68 // Standard constructor for L3 magnet
72 <img src="picts/aliMAG.gif">
81 //_____________________________________________________________________________
82 void AliMAG::CreateGeometry()
85 // Create geometry for L3 magnet
89 <img src="picts/mag.gif">
94 <img src="picts/tree_mag.gif">
98 Int_t *idtmed = fIdtmed->GetArray()-299;
104 // ANGLE POLAIRE MAXIMUM
118 gMC->Gsvolu("L3MO", "PGON", idtmed[334], par, 10);
119 gMC->Gspos("L3MO", 1, "ALIC", 0., -30., 0., 0, "ONLY");
127 gMC->Gsvolu("L3CO", "PGON", idtmed[328], par, 10);
128 gMC->Gspos("L3CO", 1, "L3MO", 0., 0., 0., 0, "ONLY");
134 gMC->Gsvolu("L3C1", "PGON", idtmed[308], par, 10);
135 gMC->Gspos("L3C1", 1, "L3MO", 0., 0., 0., 0, "ONLY");
143 gMC->Gsvolu("L3YO", "PGON", idtmed[329], par, 10);
144 gMC->Gspos("L3YO", 1, "L3MO", 0., 0., 0., 0, "ONLY");
146 // Define the return yoke of L3 (DOOR)
154 gMC->Gsvolu("L3DO", "PGON", idtmed[334], par, 10);
162 gMC->Gsvolu("L3FR", "PGON", idtmed[329], par, 10);
168 gMC->Gsvolu("L3IR", "PGON", idtmed[309], par, 10);
184 dpar[12] = dpar[6] + 50.;
185 gMC->Gsvolu("L3O1", "PGON", idtmed[314], dpar, 13);
192 gMC->Gsvolu("L3O2", "PGON", idtmed[314], par, 10);
194 // THE DOOR OPENING HAS TO BE PLACED WITH 'MANY' SINCE THE REGION
195 // WILL CONTAIN A MUON CHAMBER, BEAM PIPE AND BEAM SHIELD
196 // PLACED WITH 'ONLY'.
198 gMC->Gspos("L3O1", 1, "L3FR", 0., 30., 0., 0, "MANY");
199 gMC->Gspos("L3O2", 1, "L3IR", 0., 30., 0., 0, "MANY");
201 gMC->Gspos("L3FR", 1, "L3DO", 0., 0., 0., 0, "MANY");
202 gMC->Gspos("L3IR", 1, "L3DO", 0., 0., 0., 0, "MANY");
204 gMC->Gspos("L3DO", 1, "ALIC", 0., -30., 0., 0, "MANY");
205 AliMatrix(idrotm[300], 90., 0., 90., 90., 180., 0.);
206 gMC->Gspos("L3DO", 2, "ALIC", 0., -30., 0., idrotm[300], "MANY");
209 //_____________________________________________________________________________
210 void AliMAG::CreateMaterials()
213 // Create materials for L3 magnet
216 Int_t isxfld = gAlice->Field()->Integ();
217 Float_t sxmgmx = gAlice->Field()->Max();
219 Float_t epsil, stmin, deemax, tmaxfd, stemax;
220 // --- Define the various materials for GEANT ---
223 AliMaterial(9, "Al$", 26.98, 13., 2.7, 8.9, 37.2);
224 AliMaterial(29, "Al$", 26.98, 13., 2.7, 8.9, 37.2);
227 AliMaterial(10, "Fe$", 55.85, 26., 7.87, 1.76, 17.1);
228 AliMaterial(30, "Fe$", 55.85, 26., 7.87, 1.76, 17.1);
231 AliMaterial(15, "Air$", 14.61, 7.3, .001205, 30420., 67500);
232 AliMaterial(35, "Air$", 14.61, 7.3, .001205, 30420., 67500);
235 // Defines tracking media parameters.
236 // Les valeurs sont commentees pour laisser le defaut
237 // a GEANT (version 3-21, page CONS200), f.m.
238 epsil = .001; // Tracking precision,
239 stemax = -1.; // Maximum displacement for multiple scat
240 tmaxfd = -20.; // Maximum angle due to field deflection
241 deemax = -.3; // Maximum fractional energy loss, DLS
247 AliMedium(10, "FE_C0 ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
248 AliMedium(30, "FE_C1 ", 30, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
252 AliMedium(9, "ALU_C0 ", 9, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
253 AliMedium(29, "ALU_C1 ", 29, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
257 AliMedium(15, "AIR_C0 ", 15, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
258 AliMedium(35, "AIR_C1 ", 35, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin);
261 //_____________________________________________________________________________
262 void AliMAG::DrawModule()
265 // Draw a shaded view of the L3 magnet
269 //_____________________________________________________________________________
273 // Initialise L3 magnet after it has been built
277 printf("\n%s: ",ClassName());
278 for(i=0;i<35;i++) printf("*");
279 printf(" MAG_INIT ");
280 for(i=0;i<35;i++) printf("*");
281 printf("\n%s: ",ClassName());
283 // Here the MAG initialisation code (if any!)
284 for(i=0;i<80;i++) printf("*");