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();
147 Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
148 Float_t zAir[4]={6.,7.,8.,18.};
149 Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
150 Float_t dAir = 1.20479E-3;
151 Float_t dAir1 = 1.20479E-10;
153 AliMixture(1,"Vacuum $",aAir,zAir,dAir1,4,wAir);
154 AliMixture(2,"Air $",aAir,zAir,dAir,4,wAir);
155 AliMaterial(3,"Be $", 9.01,4 ,1.848 ,35.30,36.70);
157 AliMedium(1,"Vacuum $",1,0,isxfld,sxmgmx,10,1,0.1,0.1,10);
158 AliMedium(2,"Air $",2,0,isxfld,sxmgmx,10,-1,-0.1,0.1 ,-10);
159 AliMedium(3,"Be pipe $",3,0,isxfld,sxmgmx,10,0.1,0.1,0.01,0.01);
162 //_____________________________________________________________________________
163 void AliBODY::DrawModule() const
166 // Draw a view of the Alice outside box
168 // Set everything unseen
169 gMC->Gsatt("*", "seen", -1);
171 // Set ALIC mother visible
172 gMC->Gsatt("ALIC","SEEN",1);
174 // Set the volumes visible
176 gMC->Gdopt("hide","off");
177 if(gAlice->GetModule("ZDC")) {
182 gMC->Gdraw("alic", 40, 30, 0, 15, 10, .0014, .0014);
183 gMC->Gdhead(1111, "Aice Main body with Zero Degree Calorimeter");
186 // ZDC is not present
188 gMC->Gdraw("alic", 40, 30, 0, 10, 9, .0027, .0027);
189 gMC->Gdhead(1111, "Aice Main body");
191 gMC->Gdman(18, 4, "MAN");