]>
Commit | Line | Data |
---|---|---|
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$ | |
b7f65909 | 18 | Revision 1.7 1999/11/03 18:01:40 fca |
19 | Remove non orthogonal unused matrix | |
20 | ||
a694ef05 | 21 | Revision 1.6 1999/09/29 09:24:28 fca |
22 | Introduction of the Copyright and cvs Log | |
23 | ||
4c039060 | 24 | */ |
25 | ||
6edc06da | 26 | /////////////////////////////////////////////////////////////////////////////// |
27 | // // | |
28 | // Photon Multiplicity Detector Version 1 // | |
29 | // // | |
30 | //Begin_Html | |
31 | /* | |
1439f98e | 32 | <img src="picts/AliPMDv1Class.gif"> |
6edc06da | 33 | */ |
34 | //End_Html | |
35 | // // | |
36 | /////////////////////////////////////////////////////////////////////////////// | |
37 | ||
38 | #include "AliPMDv1.h" | |
39 | #include "AliRun.h" | |
40 | #include "AliMC.h" | |
41 | #include "AliConst.h" | |
42 | ||
43 | static Int_t maxbox, kdet; | |
44 | static Float_t thmin,thmax,zdist,zdist1,thlow,thhigh; | |
45 | ||
46 | ClassImp(AliPMDv1) | |
47 | ||
48 | //_____________________________________________________________________________ | |
49 | AliPMDv1::AliPMDv1() | |
50 | { | |
51 | // | |
52 | // Default constructor | |
53 | // | |
54 | fMedSens=0; | |
55 | } | |
56 | ||
57 | //_____________________________________________________________________________ | |
58 | AliPMDv1::AliPMDv1(const char *name, const char *title) | |
59 | : AliPMD(name,title) | |
60 | { | |
61 | // | |
62 | // Standard constructor | |
63 | // | |
64 | fMedSens=0; | |
65 | } | |
66 | //_____________________________________________________________________________ | |
67 | void AliPMDv1::CreateGeometry() | |
68 | { | |
69 | // | |
70 | // Create geometry for Photon Multiplicity Detector Version 1 | |
71 | // | |
72 | //Begin_Html | |
73 | /* | |
1439f98e | 74 | <img src="picts/AliPMDv1.gif"> |
6edc06da | 75 | */ |
76 | //End_Html | |
77 | //Begin_Html | |
78 | /* | |
1439f98e | 79 | <img src="picts/AliPMDv1Tree.gif"> |
6edc06da | 80 | */ |
81 | //End_Html | |
82 | CreatePads(); | |
83 | CreateInside(); | |
84 | } | |
85 | ||
86 | //_____________________________________________________________________________ | |
87 | void AliPMDv1::CreateInside() | |
88 | { | |
89 | // | |
90 | // Create inside of Pads | |
91 | // | |
92 | // -- Author : Y.P. VIYOGI, 07/05/1996. | |
93 | // -- Modified: P.V.K.S.Baba(JU), 15-12-97. | |
94 | // Sipmd, the dimension of TUBE mother volume of PMD, other dimensions | |
95 | // like sip01.. are to place more tubes in the volume at different eta bins. | |
96 | Float_t sipmd[3] = { 40.,270.,15.}; | |
97 | Float_t sip01[3] = { 10.,57.89,25.}; | |
98 | Float_t sip02[3] = { 10.,64.03,25.}; | |
99 | Float_t sip03[3] = { 10.,70.80,25.}; | |
100 | Float_t sip04[3] = { 10.,78.32,25.}; | |
101 | Float_t sip05[3] = { 10.,86.68,25.}; | |
102 | Float_t sip06[3] = { 10.,95.91,25.}; | |
103 | Float_t sip07[3] = { 10.,106.14,25.}; | |
104 | Float_t sip08[3] = { 10.,117.48,25.}; | |
105 | Float_t sip09[3] = { 10.,130.18,25.}; | |
106 | Float_t sip10[3] = { 10.,144.18,25.}; | |
107 | Float_t sip11[3] = { 10.,159.87,25.}; | |
108 | Float_t sip12[3] = { 10.,177.43,25.}; | |
109 | Float_t sip13[3] = { 10.,197.11,25.}; | |
110 | Float_t sip14[3] = { 10.,219.28,25.}; | |
111 | Float_t sipmdl[5] = { 10.,310.,25.,90.,270. }; | |
112 | Float_t sipmdr[5] = { 10.,310.,25.,270.,90. }; | |
113 | ||
b7f65909 | 114 | const Float_t root3_4 = TMath::Sqrt(3.)/4.; |
115 | const Float_t root3_2 = TMath::Sqrt(3.)/2.; | |
6edc06da | 116 | // Float_t xiqa[4], yiqa[4]; |
117 | Int_t i; | |
118 | // Float_t siqad[4]; | |
119 | Float_t xp, yp, zp; | |
120 | // Int_t idrotm[100]; | |
121 | Int_t num_mod; | |
122 | Int_t jhrotc,jhrotac; | |
6edc06da | 123 | // const Float_t delx=78.8; |
124 | const Float_t delx=76.75; | |
125 | // const Float_t dely=delx*root3_2; | |
126 | // const Float_t delz=1.6/2.; | |
127 | AliMatrix(jhrotc, 90., 30., 90., 120., 0., 0.); | |
128 | AliMatrix(jhrotac, 90., 330., 90., 240., 0., 0.); | |
6edc06da | 129 | Float_t x1= delx*root3_4; |
130 | Float_t x2= delx*root3_4 + delx*root3_2; | |
131 | Float_t x3= delx*root3_4 + 2*delx*root3_2; | |
132 | Float_t xpos[13]={-x1,-x1,-x1,-x1,-x2,-x2,-x2,-x2,-x2,-x3,-x3,-x3,-x3}; | |
133 | Float_t x4=delx/4.; | |
134 | Float_t ypos[13]={(-70.-x4-delx),-(70.+x4),(70.+x4),(70.+x4+delx),-x4+2*delx,-x4+delx,-x4,-x4-delx,-x4-2*delx,-3*x4-delx,-x4-delx/2.,-3*x4+delx,-3*x4+2*delx}; | |
135 | // Float_t ypos[13]={(-70.-x4-delx),-(70.+x4),(70.+x4),(70.+x4+delx),(4*dely),(2*dely),0.,-(2*dely),-(4*dely),-3*x4-delx,-x4-delx/2.,-3*x4+delx,-3*x4+2*delx}; | |
ad51aeb0 | 136 | Int_t *idtmed = fIdtmed->GetArray()-599; |
6edc06da | 137 | |
138 | // VOLUMES Names : begining with D for all PMD volumes, | |
139 | // The names of SIZE variables begin with S and have more meaningful | |
140 | // characters as shown below. | |
141 | ||
142 | // VOLUME SIZE MEDIUM : REMARKS | |
143 | // ------ ----- ------ : --------------------------- | |
144 | ||
145 | // DPMD SIPMD AIR : INSIDE PMD and its SIZE | |
146 | ||
147 | ||
148 | ||
149 | // *** Define the DPMD Volume and fill with air *** | |
150 | ||
cfce8870 | 151 | gMC->Gsvolu("DPMD", "TUBE", idtmed[698], sipmd, 3); |
152 | gMC->Gsvolu("PM01", "TUBE", idtmed[698], sip01, 3); | |
153 | gMC->Gsvolu("PM02", "TUBE", idtmed[698], sip02, 3); | |
154 | gMC->Gsvolu("PM03", "TUBE", idtmed[698], sip03, 3); | |
155 | gMC->Gsvolu("PM04", "TUBE", idtmed[698], sip04, 3); | |
156 | gMC->Gsvolu("PM05", "TUBE", idtmed[698], sip05, 3); | |
157 | gMC->Gsvolu("PM06", "TUBE", idtmed[698], sip06, 3); | |
158 | gMC->Gsvolu("PM07", "TUBE", idtmed[698], sip07, 3); | |
159 | gMC->Gsvolu("PM08", "TUBE", idtmed[698], sip08, 3); | |
160 | gMC->Gsvolu("PM09", "TUBE", idtmed[698], sip09, 3); | |
161 | gMC->Gsvolu("PM10", "TUBE", idtmed[698], sip10, 3); | |
162 | gMC->Gsvolu("PM11", "TUBE", idtmed[698], sip11, 3); | |
163 | gMC->Gsvolu("PM12", "TUBE", idtmed[698], sip12, 3); | |
164 | gMC->Gsvolu("PM13", "TUBE", idtmed[698], sip13, 3); | |
165 | gMC->Gsvolu("PM14", "TUBE", idtmed[698], sip14, 3); | |
166 | gMC->Gsvolu("PMDL", "TUBS", idtmed[698], sipmdl, 5); | |
167 | gMC->Gsvolu("PMDR", "TUBS", idtmed[698], sipmdr, 5); | |
6edc06da | 168 | // |
169 | const Int_t npad2=72; | |
170 | Float_t hexd1[10] = {0.,360.,6,2,-0.4,0.,0.53,0.4,0.,0.53}; | |
171 | Float_t dpara_sm[6] = {12.5,12.5,0.8,30.,0.,0.}; | |
172 | dpara_sm[0]=(npad2+0.25)*hexd1[6] + 1.2; | |
173 | dpara_sm[1] = dpara_sm[0] *root3_2; | |
174 | Float_t dpara_dm11[6] = {12.5,12.5,0.8,30.,0.,0.}; | |
175 | dpara_dm11[0]=dpara_sm[0]+.01; | |
176 | dpara_dm11[1] = dpara_dm11[0] *root3_2; | |
177 | dpara_dm11[2]= 6.2/2.; | |
178 | // | |
179 | for (i = 0; i < 2; ++i) { | |
180 | num_mod=i+1; | |
cfce8870 | 181 | gMC->Gsposp("DM11", num_mod, "DPMD", xpos[i],ypos[i],0., jhrotac, "ONLY", dpara_dm11, 6); |
182 | gMC->Gsposp("DM11", num_mod+13, "DPMD", TMath::Abs(xpos[i]),ypos[i],0., jhrotc, "ONLY", dpara_dm11, 6); | |
6edc06da | 183 | printf("Num_mod %d\n",num_mod); |
184 | } | |
185 | maxbox=13; | |
186 | for (i = 2; i < maxbox; ++i) { | |
187 | num_mod=i+1; | |
cfce8870 | 188 | gMC->Gsposp("DM11", num_mod, "DPMD", xpos[i],ypos[i],0., jhrotc, "ONLY", dpara_dm11, 6); |
189 | gMC->Gsposp("DM11", num_mod+13, "DPMD", TMath::Abs(xpos[i]),ypos[i],0., jhrotac, "ONLY", dpara_dm11, 6); | |
6edc06da | 190 | printf("Num_mod %d\n",num_mod); |
191 | } | |
cfce8870 | 192 | // gMC->Gspos("PM01", 1, "DPMD", 0.,0.,0., 0, "ONLY"); |
193 | // gMC->Gspos("PM02", 1, "DPMD", 0.,0.,0., 0, "ONLY"); | |
194 | // gMC->Gspos("PM03", 1, "DPMD", 0.,0.,0., 0, "ONLY"); | |
195 | // gMC->Gspos("PM04", 1, "DPMD", 0.,0.,0., 0, "ONLY"); | |
196 | // gMC->Gspos("PM05", 1, "DPMD", 0.,0.,0., 0, "ONLY"); | |
197 | // gMC->Gspos("PM06", 1, "DPMD", 0.,0.,0., 0, "ONLY"); | |
198 | // gMC->Gspos("PM07", 1, "DPMD", 0.,0.,0., 0, "ONLY"); | |
199 | // gMC->Gspos("PM08", 1, "DPMD", 0.,0.,0., 0, "ONLY"); | |
200 | // gMC->Gspos("PM09", 1, "DPMD", 0.,0.,0., 0, "ONLY"); | |
201 | // gMC->Gspos("PM10", 1, "DPMD", 0.,0.,0., 0, "ONLY"); | |
202 | // gMC->Gspos("PM11", 1, "DPMD", 0.,0.,0., 0, "ONLY"); | |
203 | // gMC->Gspos("PM12", 1, "DPMD", 0.,0.,0., 0, "ONLY"); | |
204 | // gMC->Gspos("PM13", 1, "DPMD", 0.,0.,0., 0, "ONLY"); | |
205 | // gMC->Gspos("PM14", 1, "DPMD", 0.,0.,0., 0, "ONLY"); | |
6edc06da | 206 | // --- Place the DPMD in ALICE with front edge 5.8m from vertex --- |
207 | xp = 0.; | |
208 | yp = 0.; | |
209 | zp = zdist1; | |
cfce8870 | 210 | // gMC->Gspos("PMDL", 1, "DPMD", xp,yp,0., 0, "ONLY"); |
211 | // gMC->Gspos("PMDR", 1, "DPMD", xp,yp,0., 0, "ONLY"); | |
212 | gMC->Gspos("DPMD", 1, "ALIC", xp,yp,zp, 0, "ONLY"); | |
6edc06da | 213 | |
214 | } | |
215 | ||
216 | //_____________________________________________________________________________ | |
217 | void AliPMDv1::CreatePads() | |
218 | { | |
219 | // | |
220 | // Create the geometry of the pads | |
221 | // *** DEFINITION OF THE GEOMETRY OF THE PMD *** | |
222 | // *** HEXAGONAL PADS WITH 10 MM SQUARE EQUIVALENT | |
223 | // -- Author : S. Chattopadhyay, 02/04/1999. | |
224 | ||
225 | // Basic unit is DP11, a hexagonal cell, which is placed inside another | |
226 | // hexagonal cell (DS11) of larger radius, compared to DP11. The difference in r// adius gives the dimension of half width of each cell wall. | |
227 | // These cells are placed as 72 x 72 array in a | |
228 | // rhombus shaped supermodule (DW11). The rhombus shaped modules are designed | |
229 | // to have closed packed structure. | |
230 | // Each supermodule (SUPR), made of G10 is filled with following components | |
231 | // SMSS --> SS backing, | |
232 | // SMAR --> Gap between gas hexagonal cells and G10 backing. | |
233 | // DW11 --> Ar-Co2 filled gas hexagonal cells. | |
234 | // SMAR | |
235 | // These supermodules are placed inside the main module (DM11), with Fe and | |
236 | // Pb converter positioned between CPV and PMD. | |
237 | // DM11 made of | |
238 | // SUPR (rotated to place steel on the other side), this works as preshower | |
239 | // when PMD is placed in -ve z. | |
240 | // SUPB --> Pb converter | |
241 | // SUFE --> Fe backing | |
242 | // SUPR --> supermodule without rotation (this acts as CPV). | |
243 | // | |
244 | ||
6edc06da | 245 | const Int_t npad2 = 72; |
246 | Float_t hexd1[10] = {0.,360.,6,2,-0.4,0.,0.53,0.4,0.,0.53}; | |
247 | //total wall thickness=0.2*2 | |
248 | Float_t hexd2[10] = {0.,360.,6,2,-0.4,0.,0.51,0.4,0.,0.51}; | |
249 | Int_t i, j; | |
250 | Float_t xb, yb, zb;//, sw[3]; | |
251 | Int_t number; | |
252 | Int_t ihrotm,irotdm; | |
b7f65909 | 253 | const Float_t root3_cons = TMath::Sqrt(3.) /2.; |
ad51aeb0 | 254 | Int_t *idtmed = fIdtmed->GetArray()-599; |
6edc06da | 255 | |
256 | AliMatrix(ihrotm, 90., 30., 90., 120., 0., 0.); | |
257 | AliMatrix(irotdm, 90., 180., 90., 270., 180., 0.); | |
258 | zdist1 = fIn[2]; | |
259 | zdist = TMath::Abs(zdist1); | |
260 | // | |
261 | Int_t xrow=1; | |
262 | Float_t dpara[6] = {12.5,12.5,0.4,30.,0.,0.}; | |
263 | dpara[0]=(npad2+0.25)*hexd1[6]; | |
264 | dpara[1] = dpara[0] *root3_cons; | |
265 | // | |
266 | //Subhasis, dimensional parameters of rhombus (dpara) as given to gsvolu | |
267 | // rhombus to accomodate 72 x 72 hexagons, and with total 1.2cm extension | |
268 | //(1mm tolerance on both side and 5mm thick G10 wall) | |
269 | // | |
270 | ||
271 | // **** PAD SIZE 10 MM SQUARE EQUIVALENT | |
272 | // | |
273 | // Inner hex filled with gas | |
cfce8870 | 274 | gMC->Gsvolu("DP11", "PGON", idtmed[604], hexd2,10); |
275 | gMC->Gsatt("DP11", "SEEN", 1); | |
6edc06da | 276 | |
277 | // Outer hex filled with Plastic | |
cfce8870 | 278 | //plastic gMC->Gsvolu("DS11", "PGON", idtmed[616], hexd1,10); |
6edc06da | 279 | // Iron |
cfce8870 | 280 | gMC->Gsvolu("DS11", "PGON", idtmed[601], hexd1,10); |
281 | gMC->Gsatt("DS11", "SEEN", 1); | |
6edc06da | 282 | // --- place inner hex inside outer hex |
cfce8870 | 283 | gMC->Gsposp("DP11", 1, "DS11", 0., 0., 0., 0, "ONLY", hexd2, 10); |
6edc06da | 284 | // Rhombus shaped supermodules (defined by PARA) |
285 | // volume for SUPERMODULE | |
286 | Float_t dpara_sm[6] = {12.5,12.5,0.8,30.,0.,0.}; | |
287 | dpara_sm[0]=(npad2+0.25)*hexd1[6] + 1.2; | |
288 | dpara_sm[1] = dpara_sm[0] *root3_cons; | |
289 | // | |
cfce8870 | 290 | gMC->Gsvolu("SUPR","PARA", idtmed[607], dpara_sm, 6); |
291 | gMC->Gsatt("SUPR", "SEEN", 1); | |
6edc06da | 292 | // SS |
293 | Float_t dpara_ss[6] = {12.5,12.5,8.,30.,0.,0.}; | |
294 | dpara_ss[0]= dpara[0]; | |
295 | dpara_ss[1]= dpara[1]; | |
296 | dpara_ss[2]= 0.3/2.; | |
297 | // | |
cfce8870 | 298 | gMC->Gsvolu("SMSS","PARA", idtmed[601], dpara_ss, 6); |
299 | gMC->Gsatt("SMSS", "SEEN", 1); | |
6edc06da | 300 | // Air |
301 | Float_t dpara_air[6] = {12.5,12.5,8.,30.,0.,0.}; | |
302 | dpara_air[0]= dpara[0] - 0.5; | |
303 | dpara_air[1]= dpara_air[0] * root3_cons; | |
304 | dpara_air[2]= 0.1/2.; | |
cfce8870 | 305 | // gMC->Gsvolu("SMAR","PARA", idtmed[604], dpara_air, 6); |
306 | gMC->Gsvolu("SMAR","PARA", idtmed[698], dpara_air, 6); | |
307 | gMC->Gsatt("SMAR", "SEEN", 1); | |
6edc06da | 308 | // |
309 | // volume for gas chamber (DW11) | |
310 | // | |
cfce8870 | 311 | // gMC->Gsvolu("DW11","PARA", idtmed[604], dpara, 6); |
312 | gMC->Gsvolu("DW11","PARA", idtmed[698], dpara, 6); | |
313 | gMC->Gsatt("DW11", "SEEN", 1); | |
6edc06da | 314 | // Place outer hex inside DW11 |
315 | yb = -dpara[1] + (1./root3_cons)*hexd1[6]; | |
316 | zb = 0.; | |
317 | for (j = 1; j <= npad2; ++j) { | |
318 | xb =-(dpara[0] + dpara[1]*0.577) + 2*hexd1[6]; | |
319 | if(xrow >= 2){ | |
320 | xb = xb+(xrow-1)*hexd1[6]; | |
321 | } | |
322 | for (i = 1; i <= npad2; ++i) { | |
323 | number = i+(j-1)*npad2; | |
cfce8870 | 324 | gMC->Gsposp("DS11", number, "DW11", xb, yb, zb, ihrotm, "ONLY", hexd1, 10); |
6edc06da | 325 | xb += (hexd1[6]*2.); |
326 | } | |
327 | xrow = xrow+1; | |
b7f65909 | 328 | yb += (hexd1[6]*TMath::Sqrt(3.)); |
6edc06da | 329 | } |
330 | Float_t z_ss,z_air1,z_air2,z_gas; | |
331 | // Place other components inside super module | |
332 | z_ss=-dpara_sm[2]+dpara_ss[2]; | |
cfce8870 | 333 | gMC->Gspos("SMSS", 1, "SUPR", 0., 0., z_ss, 0, "ONLY"); |
6edc06da | 334 | z_air1=z_ss+dpara_ss[2] +dpara_air[2]; |
cfce8870 | 335 | gMC->Gspos("SMAR", 1, "SUPR", 0., 0., z_air1, 0, "ONLY"); |
6edc06da | 336 | z_gas=z_air1+dpara_air[2]+dpara[2]+0.1; |
cfce8870 | 337 | gMC->Gspos("DW11", 1, "SUPR", 0., 0., z_gas, 0, "ONLY"); |
6edc06da | 338 | z_air2=z_gas+dpara[2]+0.1+dpara_air[2]; |
cfce8870 | 339 | gMC->Gspos("SMAR", 2, "SUPR", 0., 0., z_air2, 0, "ONLY"); |
6edc06da | 340 | |
341 | // --- DEFINE MODules, iron, and lead voLUMES | |
342 | ||
343 | ||
344 | // volume for SUPERMODULE | |
345 | // Pb | |
346 | Float_t dpara_pb[6] = {12.5,12.5,8.,30.,0.,0.}; | |
347 | dpara_pb[0]=dpara_sm[0]; | |
348 | dpara_pb[1]=dpara_sm[1]; | |
349 | // dpara_pb[2]=1.1/2.; | |
350 | dpara_pb[2]=1.5/2.; | |
cfce8870 | 351 | gMC->Gsvolu("SUPB","PARA", idtmed[600], dpara_pb, 6); |
352 | gMC->Gsatt("SUPB", "SEEN", 1); | |
6edc06da | 353 | // Fe |
354 | Float_t dpara_fe[6] = {12.5,12.5,8.,30.,0.,0.}; | |
355 | dpara_fe[0]=dpara_sm[0]; | |
356 | dpara_fe[1]=dpara_sm[1]; | |
357 | dpara_fe[2]=0.5/2.; | |
cfce8870 | 358 | gMC->Gsvolu("SUFE","PARA", idtmed[601], dpara_fe, 6); |
359 | gMC->Gsatt("SUFE", "SEEN", 1); | |
6edc06da | 360 | // volume for DM11 |
361 | Float_t dpara_dm11[6] = {12.5,12.5,0.8,30.,0.,0.}; | |
362 | dpara_dm11[0]=dpara_sm[0]+.01; | |
363 | dpara_dm11[1] = dpara_dm11[0] *root3_cons; | |
364 | dpara_dm11[2]= 6.2/2.; | |
365 | ||
366 | // | |
cfce8870 | 367 | gMC->Gsvolu("DM11","PARA", idtmed[698], dpara_dm11, 6); |
368 | gMC->Gsatt("DM11", "SEEN", 1); | |
6edc06da | 369 | // position super module inside DM11 |
370 | Float_t z_ps,z_pb,z_fe,z_cv; | |
371 | z_ps=-dpara_dm11[2]+dpara_sm[2]; | |
cfce8870 | 372 | gMC->Gspos("SUPR", 1, "DM11", 0., 0., z_ps, irotdm, "ONLY"); |
6edc06da | 373 | z_pb=z_ps+dpara_sm[2]+dpara_pb[2]; |
cfce8870 | 374 | gMC->Gspos("SUPB", 1, "DM11", 0., 0., z_pb, 0, "ONLY"); |
6edc06da | 375 | z_fe=z_pb+dpara_pb[2]+dpara_fe[2]; |
cfce8870 | 376 | gMC->Gspos("SUFE", 1, "DM11", 0., 0., z_fe, 0, "ONLY"); |
6edc06da | 377 | z_cv=z_fe+dpara_fe[2]+dpara_sm[2]; |
cfce8870 | 378 | gMC->Gspos("SUPR", 2, "DM11", 0., 0., z_cv, 0, "ONLY"); |
6edc06da | 379 | // |
380 | } | |
381 | ||
382 | //_____________________________________________________________________________ | |
383 | void AliPMDv1::DrawModule() | |
384 | { | |
385 | // | |
386 | // Draw a shaded view of the Photon Multiplicity Detector | |
387 | // | |
388 | ||
cfce8870 | 389 | gMC->Gsatt("*", "seen", -1); |
390 | gMC->Gsatt("alic", "seen", 0); | |
6edc06da | 391 | // |
392 | // Set the visibility of the components | |
393 | // | |
cfce8870 | 394 | gMC->Gsatt("DP11","seen",0); |
395 | gMC->Gsatt("DS11","seen",1); | |
396 | gMC->Gsatt("DW11","seen",0); | |
397 | gMC->Gsatt("DM11","seen",1); | |
398 | gMC->Gsatt("DPMD","seen",0); | |
6edc06da | 399 | // |
cfce8870 | 400 | gMC->Gdopt("hide", "on"); |
401 | gMC->Gdopt("shad", "on"); | |
402 | gMC->Gsatt("*", "fill", 7); | |
403 | gMC->SetClipBox("."); | |
404 | gMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000); | |
405 | gMC->DefaultRange(); | |
406 | gMC->Gdraw("alic", 40, 30, 0, 22, 20.5, .02, .02); | |
407 | gMC->Gdhead(1111, "Photon Multiplicity Detector Version 1"); | |
408 | //gMC->Gdman(17, 5, "MAN"); | |
409 | gMC->Gdopt("hide", "off"); | |
6edc06da | 410 | } |
411 | ||
412 | //_____________________________________________________________________________ | |
413 | void AliPMDv1::CreateMaterials() | |
414 | { | |
415 | // | |
416 | // Create materials for the PMD version 1 | |
417 | // | |
418 | // ORIGIN : Y. P. VIYOGI | |
419 | // | |
420 | ||
6edc06da | 421 | // --- The Argon- CO2 mixture --- |
422 | Float_t ag[2] = { 39.95 }; | |
423 | Float_t zg[2] = { 18. }; | |
424 | Float_t wg[2] = { .8,.2 }; | |
425 | Float_t dar = .001782; // --- Ar density in g/cm3 --- | |
426 | // --- CO2 --- | |
427 | Float_t ac[2] = { 12.,16. }; | |
428 | Float_t zc[2] = { 6.,8. }; | |
429 | Float_t wc[2] = { 1.,2. }; | |
430 | Float_t dc = .001977; | |
431 | Float_t dco = .002; // --- CO2 density in g/cm3 --- | |
432 | ||
433 | Float_t absl, radl, a, d, z; | |
434 | Float_t dg; | |
435 | Float_t x0ar; | |
436 | Float_t buf[1]; | |
437 | Int_t nbuf; | |
438 | Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 }; | |
439 | Float_t zsteel[4] = { 26.,24.,28.,14. }; | |
440 | Float_t wsteel[4] = { .715,.18,.1,.005 }; | |
441 | ||
ad51aeb0 | 442 | Int_t *idtmed = fIdtmed->GetArray()-599; |
6edc06da | 443 | Int_t isxfld = gAlice->Field()->Integ(); |
444 | Float_t sxmgmx = gAlice->Field()->Max(); | |
445 | ||
446 | // --- Define the various materials for GEANT --- | |
447 | AliMaterial(1, "Pb $", 207.19, 82., 11.35, .56, 18.5); | |
448 | x0ar = 19.55 / dar; | |
449 | AliMaterial(2, "Argon$", 39.95, 18., dar, x0ar, 6.5e4); | |
450 | AliMixture(3, "CO2 $", ac, zc, dc, -2, wc); | |
451 | AliMaterial(4, "Al $", 26.98, 13., 2.7, 8.9, 18.5); | |
452 | AliMaterial(6, "Fe $", 55.85, 26., 7.87, 1.76, 18.5); | |
453 | AliMaterial(7, "W $", 183.85, 74., 19.3, .35, 10.3); | |
454 | AliMaterial(8, "G10 $", 20., 10., 1.7, 19.4, 999.); | |
455 | AliMaterial(9, "SILIC$", 28.09, 14., 2.33, 9.36, 45.); | |
456 | AliMaterial(10, "Be $", 9.01, 4., 1.848, 35.3, 36.7); | |
457 | AliMaterial(15, "Cu $", 63.54, 29., 8.96, 1.43, 15.); | |
458 | AliMaterial(16, "C $", 12.01, 6., 2.265, 18.8, 49.9); | |
459 | AliMaterial(17, "POLYCARBONATE $", 20., 10., 1.2, 34.6, 999.); | |
460 | ||
461 | AliMaterial(96, "MYLAR$", 8.73, 4.55, 1.39, 28.7, 62.); | |
462 | AliMaterial(97, "CONCR$", 20., 10., 2.5, 10.7, 40.); | |
463 | AliMaterial(98, "Vacum$", 1e-9, 1e-9, 1e-9, 1e16, 1e16); | |
464 | AliMaterial(99, "Air $", 14.61, 7.3, .0012, 30420., 67500.); | |
465 | AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel); | |
466 | // define gas-mixtures | |
467 | ||
468 | char namate[21]; | |
cfce8870 | 469 | gMC->Gfmate((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf); |
6edc06da | 470 | ag[1] = a; |
471 | zg[1] = z; | |
472 | dg = (dar * 4 + dco) / 5; | |
473 | AliMixture(5, "ArCO2$", ag, zg, dg, 2, wg); | |
474 | ||
475 | // Define tracking media | |
ad51aeb0 | 476 | AliMedium(1, "Pb conv.$", 1, 0, 0, isxfld, sxmgmx, 1., .1, .01, .1); |
477 | AliMedium(2, " S steel$", 19, 0, 0, isxfld, sxmgmx, 1., .1, .01, .1); | |
478 | AliMedium(7, "W conv.$", 7, 0, 0, isxfld, sxmgmx, 1., .1, .01, .1); | |
479 | AliMedium(8, "G10plate$", 8, 0, 0, isxfld, sxmgmx, 1., .1, .01, .1); | |
480 | AliMedium(4, "Al $", 4, 0, 0, isxfld, sxmgmx, .1, .1, .01, .1); | |
481 | AliMedium(6, "Fe $", 6, 0, 0, isxfld, sxmgmx, .1, .1, .01, .1); | |
482 | AliMedium(5, "ArCO2 $", 5, 1, 0, isxfld, sxmgmx, .1, .1, .1, .1); | |
483 | AliMedium(9, "SILICON $", 9, 1, 0, isxfld, sxmgmx, .1, .1, .1, .1); | |
484 | AliMedium(10, "Be $", 10, 0, 0, isxfld, sxmgmx, .1, .1, .01, .1); | |
485 | AliMedium(98, "Vacuum $", 98, 0, 0, isxfld, sxmgmx, 1., .1, .1, 10); | |
486 | AliMedium(99, "Air gaps$", 99, 0, 0, isxfld, sxmgmx, 1., .1, .1, .1); | |
487 | AliMedium(15, "Cu $", 15, 0, 0, isxfld, sxmgmx, .1, .1, .01, .1); | |
488 | AliMedium(16, "C $", 16, 0, 0, isxfld, sxmgmx, .1, .1, .01, .1); | |
489 | AliMedium(17, "PLOYCARB$", 17, 0, 0, isxfld, sxmgmx, .1, .1, .01, .1); | |
6edc06da | 490 | |
491 | // --- Generate explicitly delta rays in the iron, aluminium and lead --- | |
cfce8870 | 492 | gMC->Gstpar(idtmed[600], "LOSS", 3.); |
493 | gMC->Gstpar(idtmed[600], "DRAY", 1.); | |
6edc06da | 494 | |
cfce8870 | 495 | gMC->Gstpar(idtmed[603], "LOSS", 3.); |
496 | gMC->Gstpar(idtmed[603], "DRAY", 1.); | |
6edc06da | 497 | |
cfce8870 | 498 | gMC->Gstpar(idtmed[604], "LOSS", 3.); |
499 | gMC->Gstpar(idtmed[604], "DRAY", 1.); | |
6edc06da | 500 | |
cfce8870 | 501 | gMC->Gstpar(idtmed[605], "LOSS", 3.); |
502 | gMC->Gstpar(idtmed[605], "DRAY", 1.); | |
6edc06da | 503 | |
cfce8870 | 504 | gMC->Gstpar(idtmed[606], "LOSS", 3.); |
505 | gMC->Gstpar(idtmed[606], "DRAY", 1.); | |
6edc06da | 506 | |
cfce8870 | 507 | gMC->Gstpar(idtmed[607], "LOSS", 3.); |
508 | gMC->Gstpar(idtmed[607], "DRAY", 1.); | |
6edc06da | 509 | |
510 | // --- Energy cut-offs in the Pb and Al to gain time in tracking --- | |
511 | // --- without affecting the hit patterns --- | |
cfce8870 | 512 | gMC->Gstpar(idtmed[600], "CUTGAM", 1e-4); |
513 | gMC->Gstpar(idtmed[600], "CUTELE", 1e-4); | |
514 | gMC->Gstpar(idtmed[600], "CUTNEU", 1e-4); | |
515 | gMC->Gstpar(idtmed[600], "CUTHAD", 1e-4); | |
516 | gMC->Gstpar(idtmed[605], "CUTGAM", 1e-4); | |
517 | gMC->Gstpar(idtmed[605], "CUTELE", 1e-4); | |
518 | gMC->Gstpar(idtmed[605], "CUTNEU", 1e-4); | |
519 | gMC->Gstpar(idtmed[605], "CUTHAD", 1e-4); | |
520 | gMC->Gstpar(idtmed[606], "CUTGAM", 1e-4); | |
521 | gMC->Gstpar(idtmed[606], "CUTELE", 1e-4); | |
522 | gMC->Gstpar(idtmed[606], "CUTNEU", 1e-4); | |
523 | gMC->Gstpar(idtmed[606], "CUTHAD", 1e-4); | |
524 | gMC->Gstpar(idtmed[603], "CUTGAM", 1e-4); | |
525 | gMC->Gstpar(idtmed[603], "CUTELE", 1e-4); | |
526 | gMC->Gstpar(idtmed[603], "CUTNEU", 1e-4); | |
527 | gMC->Gstpar(idtmed[603], "CUTHAD", 1e-4); | |
528 | gMC->Gstpar(idtmed[609], "CUTGAM", 1e-4); | |
529 | gMC->Gstpar(idtmed[609], "CUTELE", 1e-4); | |
530 | gMC->Gstpar(idtmed[609], "CUTNEU", 1e-4); | |
531 | gMC->Gstpar(idtmed[609], "CUTHAD", 1e-4); | |
6edc06da | 532 | |
533 | // --- Prevent particles stopping in the gas due to energy cut-off --- | |
cfce8870 | 534 | gMC->Gstpar(idtmed[604], "CUTGAM", 1e-5); |
535 | gMC->Gstpar(idtmed[604], "CUTELE", 1e-5); | |
536 | gMC->Gstpar(idtmed[604], "CUTNEU", 1e-5); | |
537 | gMC->Gstpar(idtmed[604], "CUTHAD", 1e-5); | |
538 | gMC->Gstpar(idtmed[604], "CUTMUO", 1e-5); | |
6edc06da | 539 | } |
540 | ||
541 | //_____________________________________________________________________________ | |
542 | void AliPMDv1::Init() | |
543 | { | |
544 | // | |
545 | // Initialises PMD detector after it has been built | |
546 | // | |
547 | Int_t i; | |
548 | kdet=1; | |
549 | // | |
550 | printf("\n"); | |
551 | for(i=0;i<35;i++) printf("*"); | |
552 | printf(" PMD_INIT "); | |
553 | for(i=0;i<35;i++) printf("*"); | |
554 | printf("\n"); | |
555 | printf(" PMD simulation package (v1) initialised\n"); | |
556 | printf(" parameters of pmd\n"); | |
557 | printf("%6d %10.2f %10.2f %10.2f %10.2f %10.2f\n",kdet,thmin,thmax,zdist,thlow,thhigh); | |
558 | // | |
559 | for(i=0;i<80;i++) printf("*"); | |
560 | printf("\n"); | |
561 | // | |
ad51aeb0 | 562 | Int_t *idtmed = fIdtmed->GetArray()-599; |
6edc06da | 563 | fMedSens=idtmed[605-1]; |
564 | } | |
565 | ||
566 | //_____________________________________________________________________________ | |
567 | void AliPMDv1::StepManager() | |
568 | { | |
569 | // | |
570 | // Called at each step in the PMD | |
571 | // | |
572 | Int_t copy; | |
573 | Float_t hits[4], destep; | |
574 | Float_t center[3] = {0,0,0}; | |
575 | Int_t vol[5]; | |
0a6d8768 | 576 | // char *namep; |
6edc06da | 577 | |
cfce8870 | 578 | if(gMC->GetMedium() == fMedSens && (destep = gMC->Edep())) { |
6edc06da | 579 | |
0a6d8768 | 580 | gMC->CurrentVolID(copy); |
581 | // namep=gMC->CurrentVolName(); | |
582 | // printf("Current vol is %s \n",namep); | |
6edc06da | 583 | vol[0]=copy; |
0a6d8768 | 584 | gMC->CurrentVolOffID(1,copy); |
585 | // namep=gMC->CurrentVolOffName(1); | |
586 | // printf("Current vol 11 is %s \n",namep); | |
6edc06da | 587 | vol[1]=copy; |
0a6d8768 | 588 | gMC->CurrentVolOffID(2,copy); |
589 | // namep=gMC->CurrentVolOffName(2); | |
590 | // printf("Current vol 22 is %s \n",namep); | |
6edc06da | 591 | vol[2]=copy; |
592 | // if(strncmp(namep,"DW11",4))vol[2]=1; | |
0a6d8768 | 593 | gMC->CurrentVolOffID(3,copy); |
594 | // namep=gMC->CurrentVolOffName(3); | |
595 | // printf("Current vol 33 is %s \n",namep); | |
6edc06da | 596 | vol[3]=copy; |
0a6d8768 | 597 | gMC->CurrentVolOffID(4,copy); |
598 | // namep=gMC->CurrentVolOffName(4); | |
599 | // printf("Current vol 44 is %s \n",namep); | |
6edc06da | 600 | vol[4]=copy; |
601 | // printf("volume number %d,%d,%d,%d,%d \n",vol[0],vol[1],vol[2],vol[3],vol[4]); | |
cfce8870 | 602 | gMC->Gdtom(center,hits,1); |
6edc06da | 603 | hits[3] = destep*1e9; //Number in eV |
604 | AddHit(gAlice->CurrentTrack(), vol, hits); | |
605 | } | |
606 | } | |
607 | ||
608 |