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.11 2002/10/14 14:57:39 hristov
19 Merging the VirtualMC branch to the main development branch (HEAD)
21 Revision 1.8.12.1 2002/07/24 10:08:27 alibrary
24 Revision 1.10 2002/07/10 10:16:15 morsch
25 Bigger volume for CRT.
27 Revision 1.9 2002/06/20 15:33:13 morsch
28 Larger BOX in case CRT is present.
30 Revision 1.8 2000/10/02 21:28:15 fca
31 Removal of useless dependecies via forward declarations
33 Revision 1.7 2000/06/11 12:32:51 morsch
34 Coding rule violations corrected
36 Revision 1.6 1999/09/29 09:24:30 fca
37 Introduction of the Copyright and cvs Log
41 ///////////////////////////////////////////////////////////////////////////////
43 // Alice external volume //
44 // This class contains the description of the Alice external volume //
48 <img src="picts/AliBODYClass.gif">
51 <font size=+2 color=red>
52 <p>The responsible person for this module is
53 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
60 ///////////////////////////////////////////////////////////////////////////////
68 //_____________________________________________________________________________
72 // Default constructor
76 //_____________________________________________________________________________
77 AliBODY::AliBODY(const char *name, const char *title)
78 : AliModule(name,title)
81 // Standard constructor of the Alice external volume
88 //_____________________________________________________________________________
89 void AliBODY::CreateGeometry()
92 // Create the geometry of the Alice external body
96 <img src="picts/AliBODYTree.gif">
100 // If the ZDC is present we have an asymmetric box
101 // made by a four sides polygone
105 <img src="picts/AliBODYLarge.gif">
109 // If the ZDC is not present make just a BOX
113 <img src="picts/AliBODYSmall.gif">
118 Int_t *idtmed = fIdtmed->GetArray()+1;
120 if(gAlice->GetModule("ZDC")) {
122 // If the ZDC is present we have an asymmetric box
123 // made by a four sides polygone
135 gMC->Gsvolu("ALIC","PGON",idtmed[1],dALIC,10);
136 } else if ( gAlice->GetModule("CRT")) {
138 // If the Cosmic Ray Trigger is present we need a large box
144 gMC->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
148 // If the ZDC and CRT are not present make just a BOX
153 gMC->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
157 //_____________________________________________________________________________
158 void AliBODY::CreateMaterials()
160 // Create materials and media
161 Int_t isxfld = gAlice->Field()->Integ();
162 Float_t sxmgmx = gAlice->Field()->Max();
164 AliMaterial(1,"Vacuum $",1.e-16,1.e-16,1.e-16,1.e16,1.e16);
165 AliMaterial(2,"Air $",14.61,7.3,0.001205,30420,67500);
166 AliMaterial(3,"Be $", 9.01,4 ,1.848 ,35.30,36.70);
168 AliMedium(1,"Vacuum $",1,0,isxfld,sxmgmx,10,1,0.1,0.1,10);
169 AliMedium(2,"Air $",2,0,isxfld,sxmgmx,10,-1,-0.1,0.1 ,-10);
170 AliMedium(3,"Be pipe $",3,0,isxfld,sxmgmx,10,0.1,0.1,0.01,0.01);
173 //_____________________________________________________________________________
174 void AliBODY::DrawModule()
177 // Draw a view of the Alice outside box
179 // Set everything unseen
180 gMC->Gsatt("*", "seen", -1);
182 // Set ALIC mother visible
183 gMC->Gsatt("ALIC","SEEN",1);
185 // Set the volumes visible
187 gMC->Gdopt("hide","off");
188 if(gAlice->GetModule("ZDC")) {
193 gMC->Gdraw("alic", 40, 30, 0, 15, 10, .0014, .0014);
194 gMC->Gdhead(1111, "Aice Main body with Zero Degree Calorimeter");
197 // ZDC is not present
199 gMC->Gdraw("alic", 40, 30, 0, 10, 9, .0027, .0027);
200 gMC->Gdhead(1111, "Aice Main body");
202 gMC->Gdman(18, 4, "MAN");