1 ///////////////////////////////////////////////////////////////////////////////
7 <img src="picts/AliMAGClass.gif">
10 <font size=+2 color=red>
11 <p>The responsible person for this module is
12 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
18 ///////////////////////////////////////////////////////////////////////////////
25 //_____________________________________________________________________________
29 // Default constructor for L3 magnet
33 //_____________________________________________________________________________
34 AliMAG::AliMAG(const char *name, const char *title)
35 : AliModule(name,title)
38 // Standard constructor for L3 magnet
42 <img src="picts/aliMAG.gif">
51 //_____________________________________________________________________________
52 void AliMAG::CreateGeometry()
55 // Create geometry for L3 magnet
59 <img src="picts/mag.gif">
64 <img src="picts/tree_mag.gif">
68 Int_t *idtmed = fIdtmed->GetArray()-299;
74 // ANGLE POLAIRE MAXIMUM
88 gMC->Gsvolu("L3MO", "PGON", idtmed[334], par, 10);
89 gMC->Gspos("L3MO", 1, "ALIC", 0., -30., 0., 0, "ONLY");
97 gMC->Gsvolu("L3CO", "PGON", idtmed[328], par, 10);
98 gMC->Gspos("L3CO", 1, "L3MO", 0., 0., 0., 0, "ONLY");
104 gMC->Gsvolu("L3C1", "PGON", idtmed[308], par, 10);
105 gMC->Gspos("L3C1", 1, "L3MO", 0., 0., 0., 0, "ONLY");
113 gMC->Gsvolu("L3YO", "PGON", idtmed[329], par, 10);
114 gMC->Gspos("L3YO", 1, "L3MO", 0., 0., 0., 0, "ONLY");
116 // Define the return yoke of L3 (DOOR)
124 gMC->Gsvolu("L3DO", "PGON", idtmed[334], par, 10);
132 gMC->Gsvolu("L3FR", "PGON", idtmed[329], par, 10);
138 gMC->Gsvolu("L3IR", "PGON", idtmed[309], par, 10);
154 dpar[12] = dpar[6] + 50.;
155 gMC->Gsvolu("L3O1", "PGON", idtmed[314], dpar, 13);
162 gMC->Gsvolu("L3O2", "PGON", idtmed[314], par, 10);
164 // THE DOOR OPENING HAS TO BE PLACED WITH 'MANY' SINCE THE REGION
165 // WILL CONTAIN A MUON CHAMBER, BEAM PIPE AND BEAM SHIELD
166 // PLACED WITH 'ONLY'.
168 gMC->Gspos("L3O1", 1, "L3FR", 0., 30., 0., 0, "MANY");
169 gMC->Gspos("L3O2", 1, "L3IR", 0., 30., 0., 0, "MANY");
171 gMC->Gspos("L3FR", 1, "L3DO", 0., 0., 0., 0, "MANY");
172 gMC->Gspos("L3IR", 1, "L3DO", 0., 0., 0., 0, "MANY");
174 gMC->Gspos("L3DO", 1, "ALIC", 0., -30., 0., 0, "MANY");
175 AliMatrix(idrotm[300], 90., 0., 90., 90., 180., 0.);
176 gMC->Gspos("L3DO", 2, "ALIC", 0., -30., 0., idrotm[300], "MANY");
179 //_____________________________________________________________________________
180 void AliMAG::CreateMaterials()
183 // Create materials for L3 magnet
186 Int_t ISXFLD = gAlice->Field()->Integ();
187 Float_t SXMGMX = gAlice->Field()->Max();
189 Float_t epsil, stmin, deemax, tmaxfd, stemax;
190 // --- Define the various materials for GEANT ---
193 AliMaterial(9, "Al$", 26.98, 13., 2.7, 8.9, 37.2);
194 AliMaterial(29, "Al$", 26.98, 13., 2.7, 8.9, 37.2);
197 AliMaterial(10, "Fe$", 55.85, 26., 7.87, 1.76, 17.1);
198 AliMaterial(30, "Fe$", 55.85, 26., 7.87, 1.76, 17.1);
201 AliMaterial(15, "Air$", 14.61, 7.3, .001205, 30420., 67500);
202 AliMaterial(35, "Air$", 14.61, 7.3, .001205, 30420., 67500);
205 // Defines tracking media parameters.
206 // Les valeurs sont commentees pour laisser le defaut
207 // a GEANT (version 3-21, page CONS200), f.m.
208 epsil = .001; // Tracking precision,
209 stemax = -1.; // Maximum displacement for multiple scat
210 tmaxfd = -20.; // Maximum angle due to field deflection
211 deemax = -.3; // Maximum fractional energy loss, DLS
217 AliMedium(10, "FE_C0 ", 10, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
218 AliMedium(30, "FE_C1 ", 30, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
222 AliMedium(9, "ALU_C0 ", 9, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
223 AliMedium(29, "ALU_C1 ", 29, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
227 AliMedium(15, "AIR_C0 ", 15, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
228 AliMedium(35, "AIR_C1 ", 35, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
231 //_____________________________________________________________________________
232 void AliMAG::DrawModule()
235 // Draw a shaded view of the L3 magnet
239 //_____________________________________________________________________________
243 // Initialise L3 magnet after it has been built
247 for(i=0;i<35;i++) printf("*");
248 printf(" MAG_INIT ");
249 for(i=0;i<35;i++) printf("*");
252 // Here the MAG initialisation code (if any!)
253 for(i=0;i<80;i++) printf("*");