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 **************************************************************************/
20 ///////////////////////////////////////////////////////////////////////////////
22 // Alice external volume //
23 // This class contains the description of the Alice external volume //
27 <img src="picts/AliBODYClass.gif">
30 <font size=+2 color=red>
31 <p>The responsible person for this module is
32 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
39 ///////////////////////////////////////////////////////////////////////////////
46 //_____________________________________________________________________________
50 // Default constructor
54 //_____________________________________________________________________________
55 AliBODY::AliBODY(const char *name, const char *title)
56 : AliModule(name,title)
59 // Standard constructor of the Alice external volume
66 //_____________________________________________________________________________
67 void AliBODY::CreateGeometry()
70 // Create the geometry of the Alice external body
74 <img src="picts/AliBODYTree.gif">
78 // If the ZDC is present we have an asymmetric box
79 // made by a four sides polygone
83 <img src="picts/AliBODYLarge.gif">
87 // If the ZDC is not present make just a BOX
91 <img src="picts/AliBODYSmall.gif">
96 Int_t *idtmed = fIdtmed->GetArray()+1;
98 if(gAlice->GetModule("ZDC")) {
100 // If the ZDC is present we have an asymmetric box
101 // made by a four sides polygone
113 gMC->Gsvolu("ALIC","PGON",idtmed[1],DALIC,10);
116 // If the ZDC is not present make just a BOX
121 gMC->Gsvolu("ALIC","BOX ",idtmed[1],DALIC,3);
125 //_____________________________________________________________________________
126 void AliBODY::CreateMaterials()
128 Int_t ISXFLD = gAlice->Field()->Integ();
129 Float_t SXMGMX = gAlice->Field()->Max();
131 AliMaterial(1,"Vacuum $",1.e-16,1.e-16,1.e-16,1.e16,1.e16);
132 AliMaterial(2,"Air $",14.61,7.3,0.001205,30420,67500);
133 AliMaterial(3,"Be $", 9.01,4 ,1.848 ,35.30,36.70);
135 AliMedium(1,"Vacuum $",1,0,ISXFLD,SXMGMX,10,1,0.1,0.1,10);
136 AliMedium(2,"Air $",2,0,ISXFLD,SXMGMX,10,-1,-0.1,0.1 ,-10);
137 AliMedium(3,"Be pipe $",3,0,ISXFLD,SXMGMX,10,0.1,0.1,0.01,0.01);
140 //_____________________________________________________________________________
141 void AliBODY::DrawModule()
144 // Draw a view of the Alice outside box
146 // Set everything unseen
147 gMC->Gsatt("*", "seen", -1);
149 // Set ALIC mother visible
150 gMC->Gsatt("ALIC","SEEN",1);
152 // Set the volumes visible
154 gMC->Gdopt("hide","off");
155 if(gAlice->GetModule("ZDC")) {
160 gMC->Gdraw("alic", 40, 30, 0, 15, 10, .0014, .0014);
161 gMC->Gdhead(1111, "Aice Main body with Zero Degree Calorimeter");
164 // ZDC is not present
166 gMC->Gdraw("alic", 40, 30, 0, 10, 9, .0027, .0027);
167 gMC->Gdhead(1111, "Aice Main body");
169 gMC->Gdman(18, 4, "MAN");