]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - STRUCT/AliBODY.cxx
Revised detailed geomtry from G. Chabratova.
[u/mrichter/AliRoot.git] / STRUCT / AliBODY.cxx
... / ...
CommitLineData
1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16/*
17$Log$
18*/
19
20///////////////////////////////////////////////////////////////////////////////
21// //
22// Alice external volume //
23// This class contains the description of the Alice external volume //
24// //
25//Begin_Html
26/*
27<img src="picts/AliBODYClass.gif">
28</pre>
29<br clear=left>
30<font size=+2 color=red>
31<p>The responsible person for this module is
32<a href="mailto:andreas.morsch@cern.ch">Andreas Morsch</a>.
33</font>
34<pre>
35*/
36//End_Html
37// //
38// //
39///////////////////////////////////////////////////////////////////////////////
40
41#include "AliRun.h"
42#include "AliBODY.h"
43
44ClassImp(AliBODY)
45
46//_____________________________________________________________________________
47AliBODY::AliBODY()
48{
49 //
50 // Default constructor
51 //
52}
53
54//_____________________________________________________________________________
55AliBODY::AliBODY(const char *name, const char *title)
56 : AliModule(name,title)
57{
58 //
59 // Standard constructor of the Alice external volume
60 //
61 SetMarkerColor(7);
62 SetMarkerStyle(2);
63 SetMarkerSize(0.4);
64}
65
66//_____________________________________________________________________________
67void AliBODY::CreateGeometry()
68{
69 //
70 // Create the geometry of the Alice external body
71 //
72 //Begin_Html
73 /*
74 <img src="picts/AliBODYTree.gif">
75 */
76 //End_Html
77 //
78 // If the ZDC is present we have an asymmetric box
79 // made by a four sides polygone
80 //
81 //Begin_Html
82 /*
83 <img src="picts/AliBODYLarge.gif">
84 */
85 //End_Html
86 //
87 // If the ZDC is not present make just a BOX
88 //
89 //Begin_Html
90 /*
91 <img src="picts/AliBODYSmall.gif">
92 */
93 //End_Html
94
95 Float_t DALIC[10];
96 Int_t *idtmed = fIdtmed->GetArray()+1;
97 //
98 if(gAlice->GetModule("ZDC")) {
99 //
100 // If the ZDC is present we have an asymmetric box
101 // made by a four sides polygone
102 //
103 DALIC[0]=45;
104 DALIC[1]=360;
105 DALIC[2]=4;
106 DALIC[3]=2;
107 DALIC[4]=-3000;
108 DALIC[5]=0;
109 DALIC[6]=2000;
110 DALIC[7]=15000;
111 DALIC[8]=0;
112 DALIC[9]=2000;
113 gMC->Gsvolu("ALIC","PGON",idtmed[1],DALIC,10);
114 } else {
115 //
116 // If the ZDC is not present make just a BOX
117 //
118 DALIC[0]=2000;
119 DALIC[1]=2000;
120 DALIC[2]=3000;
121 gMC->Gsvolu("ALIC","BOX ",idtmed[1],DALIC,3);
122 }
123}
124
125//_____________________________________________________________________________
126void AliBODY::CreateMaterials()
127{
128 Int_t ISXFLD = gAlice->Field()->Integ();
129 Float_t SXMGMX = gAlice->Field()->Max();
130 //
131 AliMaterial(1,"Vacuum $",1.e-16,1.e-16,1.e-16,1.e16,1.e16);
132 AliMaterial(2,"Air $",14.61,7.3,0.001205,30420,67500);
133 AliMaterial(3,"Be $", 9.01,4 ,1.848 ,35.30,36.70);
134 //
135 AliMedium(1,"Vacuum $",1,0,ISXFLD,SXMGMX,10,1,0.1,0.1,10);
136 AliMedium(2,"Air $",2,0,ISXFLD,SXMGMX,10,-1,-0.1,0.1 ,-10);
137 AliMedium(3,"Be pipe $",3,0,ISXFLD,SXMGMX,10,0.1,0.1,0.01,0.01);
138}
139
140//_____________________________________________________________________________
141void AliBODY::DrawModule()
142{
143 //
144 // Draw a view of the Alice outside box
145 //
146 // Set everything unseen
147 gMC->Gsatt("*", "seen", -1);
148 //
149 // Set ALIC mother visible
150 gMC->Gsatt("ALIC","SEEN",1);
151 //
152 // Set the volumes visible
153 //
154 gMC->Gdopt("hide","off");
155 if(gAlice->GetModule("ZDC")) {
156 //
157 // ZDC is present
158 //
159 gMC->DefaultRange();
160 gMC->Gdraw("alic", 40, 30, 0, 15, 10, .0014, .0014);
161 gMC->Gdhead(1111, "Aice Main body with Zero Degree Calorimeter");
162 } else {
163 //
164 // ZDC is not present
165 //
166 gMC->Gdraw("alic", 40, 30, 0, 10, 9, .0027, .0027);
167 gMC->Gdhead(1111, "Aice Main body");
168 }
169 gMC->Gdman(18, 4, "MAN");
170}
171
172