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.8.12.1 2002/07/24 10:08:27 alibrary
21 Revision 1.10 2002/07/10 10:16:15 morsch
22 Bigger volume for CRT.
24 Revision 1.9 2002/06/20 15:33:13 morsch
25 Larger BOX in case CRT is present.
27 Revision 1.8 2000/10/02 21:28:15 fca
28 Removal of useless dependecies via forward declarations
30 Revision 1.7 2000/06/11 12:32:51 morsch
31 Coding rule violations corrected
33 Revision 1.6 1999/09/29 09:24:30 fca
34 Introduction of the Copyright and cvs Log
38 ///////////////////////////////////////////////////////////////////////////////
40 // Alice external volume //
41 // This class contains the description of the Alice external volume //
45 <img src="picts/AliBODYClass.gif">
48 <font size=+2 color=red>
49 <p>The responsible person for this module is
50 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
57 ///////////////////////////////////////////////////////////////////////////////
66 //_____________________________________________________________________________
70 // Default constructor
74 //_____________________________________________________________________________
75 AliBODY::AliBODY(const char *name, const char *title)
76 : AliModule(name,title)
79 // Standard constructor of the Alice external volume
86 //_____________________________________________________________________________
87 void AliBODY::CreateGeometry()
90 // Create the geometry of the Alice external body
94 <img src="picts/AliBODYTree.gif">
98 // If the ZDC is present we have an asymmetric box
99 // made by a four sides polygone
103 <img src="picts/AliBODYLarge.gif">
107 // If the ZDC is not present make just a BOX
111 <img src="picts/AliBODYSmall.gif">
116 Int_t *idtmed = fIdtmed->GetArray()+1;
118 if(gAlice->GetModule("ZDC")) {
120 // If the ZDC is present we have an asymmetric box
121 // made by a four sides polygone
133 gMC->Gsvolu("ALIC","PGON",idtmed[1],dALIC,10);
134 } else if ( gAlice->GetModule("CRT")) {
136 // If the Cosmic Ray Trigger is present we need a large box
142 gMC->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
146 // If the ZDC and CRT are not present make just a BOX
151 gMC->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
155 //_____________________________________________________________________________
156 void AliBODY::CreateMaterials()
158 // Create materials and media
159 Int_t isxfld = gAlice->Field()->Integ();
160 Float_t sxmgmx = gAlice->Field()->Max();
162 AliMaterial(1,"Vacuum $",1.e-16,1.e-16,1.e-16,1.e16,1.e16);
163 AliMaterial(2,"Air $",14.61,7.3,0.001205,30420,67500);
164 AliMaterial(3,"Be $", 9.01,4 ,1.848 ,35.30,36.70);
166 AliMedium(1,"Vacuum $",1,0,isxfld,sxmgmx,10,1,0.1,0.1,10);
167 AliMedium(2,"Air $",2,0,isxfld,sxmgmx,10,-1,-0.1,0.1 ,-10);
168 AliMedium(3,"Be pipe $",3,0,isxfld,sxmgmx,10,0.1,0.1,0.01,0.01);
171 //_____________________________________________________________________________
172 void AliBODY::DrawModule()
175 // Draw a view of the Alice outside box
177 // Set everything unseen
178 gMC->Gsatt("*", "seen", -1);
180 // Set ALIC mother visible
181 gMC->Gsatt("ALIC","SEEN",1);
183 // Set the volumes visible
185 gMC->Gdopt("hide","off");
186 if(gAlice->GetModule("ZDC")) {
191 gMC->Gdraw("alic", 40, 30, 0, 15, 10, .0014, .0014);
192 gMC->Gdhead(1111, "Aice Main body with Zero Degree Calorimeter");
195 // ZDC is not present
197 gMC->Gdraw("alic", 40, 30, 0, 10, 9, .0027, .0027);
198 gMC->Gdhead(1111, "Aice Main body");
200 gMC->Gdman(18, 4, "MAN");