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.7 2000/06/11 12:32:51 morsch
19 Coding rule violations corrected
21 Revision 1.6 1999/09/29 09:24:30 fca
22 Introduction of the Copyright and cvs Log
26 ///////////////////////////////////////////////////////////////////////////////
28 // Alice external volume //
29 // This class contains the description of the Alice external volume //
33 <img src="picts/AliBODYClass.gif">
36 <font size=+2 color=red>
37 <p>The responsible person for this module is
38 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
45 ///////////////////////////////////////////////////////////////////////////////
54 //_____________________________________________________________________________
58 // Default constructor
62 //_____________________________________________________________________________
63 AliBODY::AliBODY(const char *name, const char *title)
64 : AliModule(name,title)
67 // Standard constructor of the Alice external volume
74 //_____________________________________________________________________________
75 void AliBODY::CreateGeometry()
78 // Create the geometry of the Alice external body
82 <img src="picts/AliBODYTree.gif">
86 // If the ZDC is present we have an asymmetric box
87 // made by a four sides polygone
91 <img src="picts/AliBODYLarge.gif">
95 // If the ZDC is not present make just a BOX
99 <img src="picts/AliBODYSmall.gif">
104 Int_t *idtmed = fIdtmed->GetArray()+1;
106 if(gAlice->GetModule("ZDC")) {
108 // If the ZDC is present we have an asymmetric box
109 // made by a four sides polygone
121 gMC->Gsvolu("ALIC","PGON",idtmed[1],dALIC,10);
124 // If the ZDC is not present make just a BOX
129 gMC->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
133 //_____________________________________________________________________________
134 void AliBODY::CreateMaterials()
136 // Create materials and media
137 Int_t isxfld = gAlice->Field()->Integ();
138 Float_t sxmgmx = gAlice->Field()->Max();
140 AliMaterial(1,"Vacuum $",1.e-16,1.e-16,1.e-16,1.e16,1.e16);
141 AliMaterial(2,"Air $",14.61,7.3,0.001205,30420,67500);
142 AliMaterial(3,"Be $", 9.01,4 ,1.848 ,35.30,36.70);
144 AliMedium(1,"Vacuum $",1,0,isxfld,sxmgmx,10,1,0.1,0.1,10);
145 AliMedium(2,"Air $",2,0,isxfld,sxmgmx,10,-1,-0.1,0.1 ,-10);
146 AliMedium(3,"Be pipe $",3,0,isxfld,sxmgmx,10,0.1,0.1,0.01,0.01);
149 //_____________________________________________________________________________
150 void AliBODY::DrawModule()
153 // Draw a view of the Alice outside box
155 // Set everything unseen
156 gMC->Gsatt("*", "seen", -1);
158 // Set ALIC mother visible
159 gMC->Gsatt("ALIC","SEEN",1);
161 // Set the volumes visible
163 gMC->Gdopt("hide","off");
164 if(gAlice->GetModule("ZDC")) {
169 gMC->Gdraw("alic", 40, 30, 0, 15, 10, .0014, .0014);
170 gMC->Gdhead(1111, "Aice Main body with Zero Degree Calorimeter");
173 // ZDC is not present
175 gMC->Gdraw("alic", 40, 30, 0, 10, 9, .0027, .0027);
176 gMC->Gdhead(1111, "Aice Main body");
178 gMC->Gdman(18, 4, "MAN");