]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STRUCT/AliBODY.cxx
Corrected Rotation Matrix and CVS log
[u/mrichter/AliRoot.git] / STRUCT / AliBODY.cxx
CommitLineData
4c039060 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
fe4da5cc 20///////////////////////////////////////////////////////////////////////////////
21// //
22// Alice external volume //
23// This class contains the description of the Alice external volume //
24// //
25//Begin_Html
26/*
1439f98e 27<img src="picts/AliBODYClass.gif">
fe4da5cc 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
fe4da5cc 41#include "AliRun.h"
b8032157 42#include "AliBODY.h"
fe4da5cc 43
44ClassImp(AliBODY)
45
46//_____________________________________________________________________________
b8032157 47AliBODY::AliBODY()
fe4da5cc 48{
49 //
50 // Default constructor
51 //
52}
53
54//_____________________________________________________________________________
55AliBODY::AliBODY(const char *name, const char *title)
b8032157 56 : AliModule(name,title)
fe4da5cc 57{
58 //
59 // Standard constructor of the Alice external volume
60 //
61 SetMarkerColor(7);
62 SetMarkerStyle(2);
63 SetMarkerSize(0.4);
64}
65
fe4da5cc 66//_____________________________________________________________________________
67void AliBODY::CreateGeometry()
68{
69 //
70 // Create the geometry of the Alice external body
71 //
72 //Begin_Html
73 /*
1439f98e 74 <img src="picts/AliBODYTree.gif">
fe4da5cc 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 /*
1439f98e 83 <img src="picts/AliBODYLarge.gif">
fe4da5cc 84 */
85 //End_Html
86 //
87 // If the ZDC is not present make just a BOX
88 //
89 //Begin_Html
90 /*
1439f98e 91 <img src="picts/AliBODYSmall.gif">
fe4da5cc 92 */
93 //End_Html
94
95 Float_t DALIC[10];
ad51aeb0 96 Int_t *idtmed = fIdtmed->GetArray()+1;
fe4da5cc 97 //
b8032157 98 if(gAlice->GetModule("ZDC")) {
fe4da5cc 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;
cfce8870 113 gMC->Gsvolu("ALIC","PGON",idtmed[1],DALIC,10);
fe4da5cc 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;
cfce8870 121 gMC->Gsvolu("ALIC","BOX ",idtmed[1],DALIC,3);
fe4da5cc 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//_____________________________________________________________________________
b8032157 141void AliBODY::DrawModule()
fe4da5cc 142{
143 //
144 // Draw a view of the Alice outside box
145 //
fe4da5cc 146 // Set everything unseen
cfce8870 147 gMC->Gsatt("*", "seen", -1);
fe4da5cc 148 //
149 // Set ALIC mother visible
cfce8870 150 gMC->Gsatt("ALIC","SEEN",1);
fe4da5cc 151 //
152 // Set the volumes visible
153 //
cfce8870 154 gMC->Gdopt("hide","off");
b8032157 155 if(gAlice->GetModule("ZDC")) {
fe4da5cc 156 //
157 // ZDC is present
158 //
cfce8870 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");
fe4da5cc 162 } else {
163 //
164 // ZDC is not present
165 //
cfce8870 166 gMC->Gdraw("alic", 40, 30, 0, 10, 9, .0027, .0027);
167 gMC->Gdhead(1111, "Aice Main body");
fe4da5cc 168 }
cfce8870 169 gMC->Gdman(18, 4, "MAN");
fe4da5cc 170}
171
b8032157 172