1 ///////////////////////////////////////////////////////////////////////////////
7 <img src="gif/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 ///////////////////////////////////////////////////////////////////////////////
26 //_____________________________________________________________________________
30 // Default constructor for L3 magnet
34 //_____________________________________________________________________________
35 AliMAG::AliMAG(const char *name, const char *title)
36 : AliDetector(name,title)
39 // Standard constructor for L3 magnet
43 <img src="gif/aliMAG.gif">
52 //_____________________________________________________________________________
53 void AliMAG::BuildGeometry()
56 // Build ROOT TNode geometry for L3 magnet
61 //_____________________________________________________________________________
62 void AliMAG::CreateGeometry()
65 // Create geometry for L3 magnet
69 <img src="gif/mag.gif">
74 <img src="gif/tree_mag.gif">
78 AliMC* pMC = AliMC::GetMC();
80 Int_t *idtmed = gAlice->Idtmed();
86 // ANGLE POLAIRE MAXIMUM
100 pMC->Gsvolu("L3MO", "PGON", idtmed[334], par, 10);
101 pMC->Gspos("L3MO", 1, "ALIC", 0., -30., 0., 0, "ONLY");
109 pMC->Gsvolu("L3CO", "PGON", idtmed[328], par, 10);
110 pMC->Gspos("L3CO", 1, "L3MO", 0., 0., 0., 0, "ONLY");
116 pMC->Gsvolu("L3C1", "PGON", idtmed[308], par, 10);
117 pMC->Gspos("L3C1", 1, "L3MO", 0., 0., 0., 0, "ONLY");
125 pMC->Gsvolu("L3YO", "PGON", idtmed[329], par, 10);
126 pMC->Gspos("L3YO", 1, "L3MO", 0., 0., 0., 0, "ONLY");
128 // Define the return yoke of L3 (DOOR)
136 pMC->Gsvolu("L3DO", "PGON", idtmed[334], par, 10);
144 pMC->Gsvolu("L3FR", "PGON", idtmed[329], par, 10);
150 pMC->Gsvolu("L3IR", "PGON", idtmed[309], par, 10);
166 dpar[12] = dpar[6] + 50.;
167 pMC->Gsvolu("L3O1", "PGON", idtmed[314], dpar, 13);
174 pMC->Gsvolu("L3O2", "PGON", idtmed[314], par, 10);
176 // THE DOOR OPENING HAS TO BE PLACED WITH 'MANY' SINCE THE REGION
177 // WILL CONTAIN A MUON CHAMBER, BEAM PIPE AND BEAM SHIELD
178 // PLACED WITH 'ONLY'.
180 pMC->Gspos("L3O1", 1, "L3FR", 0., 30., 0., 0, "MANY");
181 pMC->Gspos("L3O2", 1, "L3IR", 0., 30., 0., 0, "MANY");
183 pMC->Gspos("L3FR", 1, "L3DO", 0., 0., 0., 0, "MANY");
184 pMC->Gspos("L3IR", 1, "L3DO", 0., 0., 0., 0, "MANY");
186 pMC->Gspos("L3DO", 1, "ALIC", 0., -30., 0., 0, "MANY");
187 AliMatrix(idrotm[300], 90., 0., 90., 90., 180., 0.);
188 pMC->Gspos("L3DO", 2, "ALIC", 0., -30., 0., idrotm[300], "MANY");
191 //_____________________________________________________________________________
192 void AliMAG::CreateMaterials()
195 // Create materials for L3 magnet
198 Int_t ISXFLD = gAlice->Field()->Integ();
199 Float_t SXMGMX = gAlice->Field()->Max();
201 Float_t epsil, stmin, deemax, tmaxfd, stemax;
202 // --- Define the various materials for GEANT ---
205 AliMaterial(9, "Al$", 26.98, 13., 2.7, 8.9, 37.2);
206 AliMaterial(29, "Al$", 26.98, 13., 2.7, 8.9, 37.2);
209 AliMaterial(10, "Fe$", 55.85, 26., 7.87, 1.76, 17.1);
210 AliMaterial(30, "Fe$", 55.85, 26., 7.87, 1.76, 17.1);
213 AliMaterial(15, "Air$", 14.61, 7.3, .001205, 30420., 67500);
214 AliMaterial(35, "Air$", 14.61, 7.3, .001205, 30420., 67500);
217 // Defines tracking media parameters.
218 // Les valeurs sont commentees pour laisser le defaut
219 // a GEANT (version 3-21, page CONS200), f.m.
220 epsil = .001; // Tracking precision,
221 stemax = -1.; // Maximum displacement for multiple scat
222 tmaxfd = -20.; // Maximum angle due to field deflection
223 deemax = -.3; // Maximum fractional energy loss, DLS
229 AliMedium(310, "FE_C0 ", 10, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
230 AliMedium(330, "FE_C1 ", 30, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
234 AliMedium(309, "ALU_C0 ", 9, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
235 AliMedium(329, "ALU_C1 ", 29, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
239 AliMedium(315, "AIR_C0 ", 15, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
240 AliMedium(335, "AIR_C1 ", 35, 0, ISXFLD, SXMGMX, tmaxfd, stemax, deemax, epsil, stmin);
243 //_____________________________________________________________________________
244 void AliMAG::DrawDetector()
247 // Draw a shaded view of the L3 magnet
251 //_____________________________________________________________________________
255 // Initialise L3 magnet after it has been built
259 for(i=0;i<35;i++) printf("*");
260 printf(" MAG_INIT ");
261 for(i=0;i<35;i++) printf("*");
264 // Here the MAG initialisation code (if any!)
265 for(i=0;i<80;i++) printf("*");
269 //_____________________________________________________________________________
270 void AliMAG::StepManager()
273 // Called at every step in the L3 magnet