1 ///////////////////////////////////////////////////////////////////////////////
3 // Alice external volume //
4 // This class contains the description of the Alice external volume //
8 <img src="picts/AliBODYClass.gif">
11 <font size=+2 color=red>
12 <p>The responsible person for this module is
13 <a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
20 ///////////////////////////////////////////////////////////////////////////////
27 //_____________________________________________________________________________
31 // Default constructor
35 //_____________________________________________________________________________
36 AliBODY::AliBODY(const char *name, const char *title)
37 : AliModule(name,title)
40 // Standard constructor of the Alice external volume
47 //_____________________________________________________________________________
48 void AliBODY::CreateGeometry()
51 // Create the geometry of the Alice external body
55 <img src="picts/AliBODYTree.gif">
59 // If the ZDC is present we have an asymmetric box
60 // made by a four sides polygone
64 <img src="picts/AliBODYLarge.gif">
68 // If the ZDC is not present make just a BOX
72 <img src="picts/AliBODYSmall.gif">
77 Int_t *idtmed = fIdtmed->GetArray()+1;
79 if(gAlice->GetModule("ZDC")) {
81 // If the ZDC is present we have an asymmetric box
82 // made by a four sides polygone
94 gMC->Gsvolu("ALIC","PGON",idtmed[1],DALIC,10);
97 // If the ZDC is not present make just a BOX
102 gMC->Gsvolu("ALIC","BOX ",idtmed[1],DALIC,3);
106 //_____________________________________________________________________________
107 void AliBODY::CreateMaterials()
109 Int_t ISXFLD = gAlice->Field()->Integ();
110 Float_t SXMGMX = gAlice->Field()->Max();
112 AliMaterial(1,"Vacuum $",1.e-16,1.e-16,1.e-16,1.e16,1.e16);
113 AliMaterial(2,"Air $",14.61,7.3,0.001205,30420,67500);
114 AliMaterial(3,"Be $", 9.01,4 ,1.848 ,35.30,36.70);
116 AliMedium(1,"Vacuum $",1,0,ISXFLD,SXMGMX,10,1,0.1,0.1,10);
117 AliMedium(2,"Air $",2,0,ISXFLD,SXMGMX,10,-1,-0.1,0.1 ,-10);
118 AliMedium(3,"Be pipe $",3,0,ISXFLD,SXMGMX,10,0.1,0.1,0.01,0.01);
121 //_____________________________________________________________________________
122 void AliBODY::DrawModule()
125 // Draw a view of the Alice outside box
127 // Set everything unseen
128 gMC->Gsatt("*", "seen", -1);
130 // Set ALIC mother visible
131 gMC->Gsatt("ALIC","SEEN",1);
133 // Set the volumes visible
135 gMC->Gdopt("hide","off");
136 if(gAlice->GetModule("ZDC")) {
141 gMC->Gdraw("alic", 40, 30, 0, 15, 10, .0014, .0014);
142 gMC->Gdhead(1111, "Aice Main body with Zero Degree Calorimeter");
145 // ZDC is not present
147 gMC->Gdraw("alic", 40, 30, 0, 10, 9, .0027, .0027);
148 gMC->Gdhead(1111, "Aice Main body");
150 gMC->Gdman(18, 4, "MAN");