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 ///////////////////////////////////////////////////////////////////////////////
20 // Alice external volume //
21 // This class contains the description of the Alice external volume //
25 <img src="picts/AliBODYClass.gif">
28 <font size=+2 color=red>
29 <p>The responsible person for this module is
30 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
37 ///////////////////////////////////////////////////////////////////////////////
39 #include <TVirtualMC.h>
47 //_____________________________________________________________________________
51 // Default constructor
55 //_____________________________________________________________________________
56 AliBODY::AliBODY(const char *name, const char *title)
57 : AliModule(name,title)
60 // Standard constructor of the Alice external volume
67 //_____________________________________________________________________________
68 void AliBODY::CreateGeometry()
71 // Create the geometry of the Alice external body
75 <img src="picts/AliBODYTree.gif">
79 // If the ZDC is present we have an asymmetric box
80 // made by a four sides polygone
84 <img src="picts/AliBODYLarge.gif">
88 // If the ZDC is not present make just a BOX
92 <img src="picts/AliBODYSmall.gif">
97 Int_t *idtmed = fIdtmed->GetArray()+1;
99 if(gAlice->GetModule("ZDC")) {
101 // If the ZDC is present we have an asymmetric box
102 // made by a four sides polygone
116 gMC->Gsvolu("ALIC","PGON",idtmed[1],dALIC,10);
117 } else if ( gAlice->GetModule("CRT")) {
119 // If the Cosmic Ray Trigger is present we need a large box
125 gMC->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
129 // If the ZDC and CRT are not present make just a BOX
134 gMC->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
138 //_____________________________________________________________________________
139 void AliBODY::CreateMaterials()
141 // Create materials and media
142 Int_t isxfld = gAlice->Field()->Integ();
143 Float_t sxmgmx = gAlice->Field()->Max();
145 AliMaterial(1,"Vacuum $",1.e-16,1.e-16,1.e-16,1.e16,1.e16);
146 AliMaterial(2,"Air $",14.61,7.3,0.001205,30420,67500);
147 AliMaterial(3,"Be $", 9.01,4 ,1.848 ,35.30,36.70);
149 AliMedium(1,"Vacuum $",1,0,isxfld,sxmgmx,10,1,0.1,0.1,10);
150 AliMedium(2,"Air $",2,0,isxfld,sxmgmx,10,-1,-0.1,0.1 ,-10);
151 AliMedium(3,"Be pipe $",3,0,isxfld,sxmgmx,10,0.1,0.1,0.01,0.01);
154 //_____________________________________________________________________________
155 void AliBODY::DrawModule() const
158 // Draw a view of the Alice outside box
160 // Set everything unseen
161 gMC->Gsatt("*", "seen", -1);
163 // Set ALIC mother visible
164 gMC->Gsatt("ALIC","SEEN",1);
166 // Set the volumes visible
168 gMC->Gdopt("hide","off");
169 if(gAlice->GetModule("ZDC")) {
174 gMC->Gdraw("alic", 40, 30, 0, 15, 10, .0014, .0014);
175 gMC->Gdhead(1111, "Aice Main body with Zero Degree Calorimeter");
178 // ZDC is not present
180 gMC->Gdraw("alic", 40, 30, 0, 10, 9, .0027, .0027);
181 gMC->Gdhead(1111, "Aice Main body");
183 gMC->Gdman(18, 4, "MAN");