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 <TGeoGlobalMagField.h>
40 #include <TVirtualMC.h>
49 //_____________________________________________________________________________
53 // Default constructor
57 //_____________________________________________________________________________
58 AliBODY::AliBODY(const char *name, const char *title)
59 : AliModule(name,title)
62 // Standard constructor of the Alice external volume
64 //PH SetMarkerColor(7);
65 //PH SetMarkerStyle(2);
66 //PH SetMarkerSize(0.4);
69 //_____________________________________________________________________________
70 void AliBODY::CreateGeometry()
73 // Create the geometry of the Alice external body
77 <img src="picts/AliBODYTree.gif">
81 // If the ZDC is present we have an asymmetric box
82 // made by a four sides polygone
86 <img src="picts/AliBODYLarge.gif">
90 // If the ZDC is not present make just a BOX
94 <img src="picts/AliBODYSmall.gif">
99 Int_t *idtmed = fIdtmed->GetArray()+1;
101 if(gAlice->GetModule("ZDC")) {
103 // If the ZDC is present we have an asymmetric box
104 // made by a four sides polygone
118 gMC->Gsvolu("ALIC","PGON",idtmed[1],dALIC,10);
119 } else if ( gAlice->GetModule("ACORDE")) {
121 // If the Cosmic Ray Trigger is present we need a large box
127 gMC->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
131 // If the ZDC and ACORDE are not present make just a BOX
136 gMC->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
140 //_____________________________________________________________________________
141 void AliBODY::CreateMaterials()
143 // Create materials and media
144 Int_t isxfld = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Integ();
145 Float_t sxmgmx = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Max();
149 Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
150 Float_t zAir[4]={6.,7.,8.,18.};
151 Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
152 Float_t dAir = 1.20479E-3 * 960./1014.;
153 Float_t dAir1 = 1.20479E-10;
155 AliMixture(1,"Vacuum $",aAir,zAir,dAir1,4,wAir);
156 AliMixture(2,"Air $",aAir,zAir,dAir,4,wAir);
157 AliMaterial(3,"Be $", 9.01,4 ,1.848 ,35.30,36.70);
159 AliMedium(1,"Vacuum $",1,0,isxfld,sxmgmx,10,1,0.1,0.1,10);
160 AliMedium(2,"Air $",2,0,isxfld,sxmgmx,10,-1,-0.1,0.1 ,-10);
161 AliMedium(3,"Be pipe $",3,0,isxfld,sxmgmx,10,0.1,0.1,0.01,0.01);