]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDv1.cxx
Introducing Id
[u/mrichter/AliRoot.git] / PMD / AliPMDv1.cxx
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 $Log$
17 Revision 1.17  2002/10/23 07:36:35  alibrary
18 Introducing Riostream.h
19
20 Revision 1.16  2001/05/21 17:44:04  hristov
21 Backslash to continue strings
22
23 Revision 1.15  2001/05/21 10:59:49  morsch
24 Lost changes from revision 1.13 recovered.
25
26 Revision 1.14  2001/05/21 09:39:28  morsch
27 Minor modifications on the geometry. (Tapan Nayak)
28
29 Revision 1.13  2001/05/16 14:57:19  alibrary
30 New files for folders and Stack
31
32 Revision 1.12  2001/05/14 14:01:04  morsch
33 AliPMDv0 coarse geometry and AliPMDv1 detailed simulation, completely revised versions by Tapan Nayak.
34
35 */
36 //
37 ///////////////////////////////////////////////////////////////////////////////
38 //                                                                           //
39 //  Photon Multiplicity Detector Version 1                                   //
40 //                                                                           //
41 //Begin_Html
42 /*
43 <img src="picts/AliPMDv1Class.gif">
44 */
45 //End_Html
46 //                                                                           //
47 ///////////////////////////////////////////////////////////////////////////////
48 ////
49
50 #include "AliPMDv1.h"
51 #include "AliRun.h"
52 #include "AliConst.h" 
53 #include "AliMagF.h" 
54 #include "Riostream.h"
55  
56 static Int_t   kdet, ncell_sm, ncell_hole;
57 static Float_t zdist, zdist1;
58 static Float_t sm_length, sm_thick, cell_radius, cell_wall, cell_depth;
59 static Float_t boundary, th_base, th_air, th_pcb;
60 static Float_t th_lead, th_steel;
61
62 ClassImp(AliPMDv1)
63  
64   //_____________________________________________________________________________
65   AliPMDv1::AliPMDv1()
66 {
67   //
68   // Default constructor 
69   //
70   fMedSens=0;
71 }
72  
73 //_____________________________________________________________________________
74 AliPMDv1::AliPMDv1(const char *name, const char *title)
75   : AliPMD(name,title)
76 {
77   //
78   // Standard constructor
79   //
80   fMedSens=0;
81 }
82
83 //_____________________________________________________________________________
84 void AliPMDv1::CreateGeometry()
85 {
86   //
87   // Create geometry for Photon Multiplicity Detector Version 3 :
88   // April 2, 2001
89   //
90   //Begin_Html
91   /*
92     <img src="picts/AliPMDv1.gif">
93   */
94   //End_Html
95   //Begin_Html
96   /*
97     <img src="picts/AliPMDv1Tree.gif">
98   */
99   //End_Html
100   GetParameters();
101   CreateSupermodule();
102   CreatePMD();
103 }
104
105 //_____________________________________________________________________________
106 void AliPMDv1::CreateSupermodule()
107 {
108   //
109   // Creates the geometry of the cells, places them in  supermodule which
110   // is a rhombus object.
111
112   // *** DEFINITION OF THE GEOMETRY OF THE PMD  *** 
113   // *** HEXAGONAL CELLS WITH CELL RADIUS 0.25 cm (see "GetParameters")
114   // -- Author :     S. Chattopadhyay, 02/04/1999. 
115
116   // Basic unit is ECAR, a hexagonal cell made of Ar+CO2, which is placed inside another 
117   // hexagonal cell made of Cu (ECCU) with larger radius, compared to ECAR. The difference
118   // in radius gives the dimension of half width of each cell wall.
119   // These cells are placed as 72 x 72 array in a 
120   // rhombus shaped supermodule (EHC1). The rhombus shaped modules are designed
121   // to have closed packed structure.
122   //
123   // Each supermodule (ESMA, ESMB), made of G10 is filled with following components
124   //  EAIR --> Air gap between gas hexagonal cells and G10 backing.
125   //  EHC1 --> Rhombus shaped parallelopiped containing the hexagonal cells
126   //  EAIR --> Air gap between gas hexagonal cells and G10 backing.
127   //
128   // ESMA, ESMB are placed in EMM1 along with EMPB (Pb converter) 
129   // and EMFE (iron support) 
130
131   // EMM1 made of
132   //    ESMB --> Normal supermodule, mirror image of ESMA
133   //    EMPB --> Pb converter
134   //    EMFE --> Fe backing
135   //    ESMA --> Normal supermodule
136   //
137   // ESMX, ESMY are placed in EMM2 along with EMPB (Pb converter) 
138   // and EMFE (iron support) 
139
140   // EMM2 made of 
141   //    ESMY --> Special supermodule, mirror image of ESMX, 
142   //    EMPB --> Pb converter
143   //    EMFE --> Fe backing
144   //    ESMX --> First of the two Special supermodules near the hole
145
146  // EMM3 made of
147   //    ESMQ --> Special supermodule, mirror image of ESMX, 
148   //    EMPB --> Pb converter
149   //    EMFE --> Fe backing
150   //    ESMP --> Second of the two Special supermodules near the hole
151   
152   // EMM2 and EMM3 are used to create the hexagonal  HOLE
153
154   //
155   //                                 EPMD
156   //                                   |             
157   //                                   |
158   //   ---------------------------------------------------------------------------
159   //   |              |                       |                     |            |
160   //  EHOL           EMM1                    EMM2                  EMM3         EALM
161   //                  |                       |                     |
162   //      --------------------   --------------------      -------------------- 
163   //      |    |      |     |    |     |      |     |      |     |      |     | 
164   //     ESMB  EMPB  EMFE ESMA  ESMY  EMPB  EMFE  ESMX    ESMQ  EMPB  EMFE  ESMP
165   //      |                      |                         |                 
166   //   ------------          ------------             -------------           
167   //  |     |     |         |     |     |             |     |     |           
168   // EAIR EHC1   EAIR      EAIR  EHC2  EAIR          EAIR  EHC3  EAIR          
169   //        |                     |                         |                  
170   //      ECCU                   ECCU                      ECCU                 
171   //       |                      |                         |                  
172   //      ECAR                   ECAR                      ECAR                 
173   
174
175   Int_t i, j;
176   Float_t xb, yb, zb;
177   Int_t number;
178   Int_t ihrotm,irotdm;
179   const Float_t root3_2 = TMath::Sqrt(3.) /2.; 
180   Int_t *idtmed = fIdtmed->GetArray()-599;
181  
182   AliMatrix(ihrotm, 90., 30.,   90.,  120., 0., 0.);
183   AliMatrix(irotdm, 90., 180.,  90.,  270., 180., 0.);
184  
185   zdist = TMath::Abs(zdist1);
186
187
188   //Subhasis, dimensional parameters of rhombus (dpara) as given to gsvolu
189   // rhombus to accomodate 72 x 72 hexagons, and with total 1.2cm extension  
190   //(1mm tolerance on both side and 5mm thick G10 wall)
191   // 
192   
193   // **** CELL SIZE 20 mm^2 EQUIVALENT
194
195   // Inner hexagon filled with gas (Ar+CO2)
196
197   Float_t hexd2[10] = {0.,360.,6,2,-0.25,0.,0.23,0.25,0.,0.23};
198
199   hexd2[4]= - cell_depth/2.;
200   hexd2[7]=   cell_depth/2.;
201   hexd2[6]=   cell_radius - cell_wall;
202   hexd2[9]=   cell_radius - cell_wall;
203   
204   gMC->Gsvolu("ECAR", "PGON", idtmed[604], hexd2,10);
205   gMC->Gsatt("ECAR", "SEEN", 0);
206
207   // Outer hexagon made of Copper
208
209   Float_t hexd1[10] = {0.,360.,6,2,-0.25,0.,0.25,0.25,0.,0.25};
210   //total wall thickness=0.2*2
211
212   hexd1[4]= - cell_depth/2.;
213   hexd1[7]=   cell_depth/2.;
214   hexd1[6]=   cell_radius;
215   hexd1[9]=   cell_radius;
216
217   gMC->Gsvolu("ECCU", "PGON", idtmed[614], hexd1,10);
218   gMC->Gsatt("ECCU", "SEEN", 1);
219
220   // --- place  inner hex inside outer hex 
221
222   gMC->Gsposp("ECAR", 1, "ECCU", 0., 0., 0., 0, "ONLY", hexd2, 10);
223
224 // Rhombus shaped supermodules (defined by PARA) 
225
226 // volume for SUPERMODULE 
227    
228   Float_t dpara_sm1[6] = {12.5,12.5,0.8,30.,0.,0.};
229   dpara_sm1[0]=(ncell_sm+0.25)*hexd1[6] ;
230   dpara_sm1[1] = dpara_sm1[0] *root3_2;
231   dpara_sm1[2] = sm_thick/2.;
232
233 //
234   gMC->Gsvolu("ESMA","PARA", idtmed[607], dpara_sm1, 6);
235   gMC->Gsatt("ESMA", "SEEN", 0);
236   //
237   gMC->Gsvolu("ESMB","PARA", idtmed[607], dpara_sm1, 6);
238   gMC->Gsatt("ESMB", "SEEN", 0);
239
240   // Air residing between the PCB and the base
241
242   Float_t dpara_air[6] = {12.5,12.5,8.,30.,0.,0.};
243   dpara_air[0]= dpara_sm1[0];
244   dpara_air[1]= dpara_sm1[1];
245   dpara_air[2]= th_air/2.;
246
247   gMC->Gsvolu("EAIR","PARA", idtmed[698], dpara_air, 6);
248   gMC->Gsatt("EAIR", "SEEN", 0);
249
250   // volume for honeycomb chamber EHC1 
251
252   Float_t dpara1[6] = {12.5,12.5,0.4,30.,0.,0.};
253   dpara1[0] = dpara_sm1[0];
254   dpara1[1] = dpara_sm1[1];
255   dpara1[2] = cell_depth/2.;
256
257   gMC->Gsvolu("EHC1","PARA", idtmed[698], dpara1, 6);
258   gMC->Gsatt("EHC1", "SEEN", 1);
259   
260
261
262   // Place hexagonal cells ECCU cells  inside EHC1 (72 X 72)
263
264   Int_t xrow=1;
265
266   yb = -dpara1[1] + (1./root3_2)*hexd1[6];
267   zb = 0.;
268
269   for (j = 1; j <= ncell_sm; ++j) {
270     xb =-(dpara1[0] + dpara1[1]*0.577) + 2*hexd1[6]; //0.577=tan(30deg)
271     if(xrow >= 2){
272       xb = xb+(xrow-1)*hexd1[6];
273     }
274     for (i = 1; i <= ncell_sm; ++i) {
275       number = i+(j-1)*ncell_sm;
276       gMC->Gsposp("ECCU", number, "EHC1", xb,yb,zb, ihrotm, "ONLY", hexd1,10);
277       xb += (hexd1[6]*2.);
278     }
279     xrow = xrow+1;
280     yb += (hexd1[6]*TMath::Sqrt(3.));
281   }
282
283
284   // Place EHC1 and EAIR into  ESMA and ESMB
285
286   Float_t z_air1,z_air2,z_gas; 
287
288   //ESMA is normal supermodule with base at bottom, with EHC1
289   z_air1= -dpara_sm1[2] + th_base + dpara_air[2]; 
290   gMC->Gspos("EAIR", 1, "ESMA", 0., 0., z_air1, 0, "ONLY");
291   z_gas=z_air1+dpara_air[2]+ th_pcb + dpara1[2]; 
292   gMC->Gspos("EHC1", 1, "ESMA", 0., 0., z_gas, 0, "ONLY");
293   z_air2=z_gas+dpara1[2]+ th_pcb + dpara_air[2]; 
294   gMC->Gspos("EAIR", 2, "ESMA", 0., 0., z_air2, 0, "ONLY");
295
296   // ESMB is mirror image of ESMA, with base at top, with EHC1
297
298   z_air1= -dpara_sm1[2] + th_pcb + dpara_air[2]; 
299   gMC->Gspos("EAIR", 3, "ESMB", 0., 0., z_air1, 0, "ONLY");
300   z_gas=z_air1+dpara_air[2]+ th_pcb + dpara1[2]; 
301   gMC->Gspos("EHC1", 2, "ESMB", 0., 0., z_gas, 0, "ONLY");
302   z_air2=z_gas+dpara1[2]+ th_pcb + dpara_air[2]; 
303   gMC->Gspos("EAIR", 4, "ESMB", 0., 0., z_air2, 0, "ONLY");
304
305
306 // special supermodule EMM2(GEANT only) containing 6 unit modules
307
308 // volume for SUPERMODULE 
309
310   Float_t dpara_sm2[6] = {12.5,12.5,0.8,30.,0.,0.};
311   dpara_sm2[0]=(ncell_sm+0.25)*hexd1[6] ;
312   dpara_sm2[1] = (ncell_sm - ncell_hole + 0.25) * root3_2 * hexd1[6];
313   dpara_sm2[2] = sm_thick/2.;
314
315   gMC->Gsvolu("ESMX","PARA", idtmed[607], dpara_sm2, 6);
316   gMC->Gsatt("ESMX", "SEEN", 0);
317   //
318   gMC->Gsvolu("ESMY","PARA", idtmed[607], dpara_sm2, 6);
319   gMC->Gsatt("ESMY", "SEEN", 0);
320
321   Float_t dpara2[6] = {12.5,12.5,0.4,30.,0.,0.};
322   dpara2[0] = dpara_sm2[0];
323   dpara2[1] = dpara_sm2[1];
324   dpara2[2] = cell_depth/2.;
325
326   gMC->Gsvolu("EHC2","PARA", idtmed[698], dpara2, 6);
327   gMC->Gsatt("EHC2", "SEEN", 1);
328
329
330   // Air residing between the PCB and the base
331
332   Float_t dpara2_air[6] = {12.5,12.5,8.,30.,0.,0.};
333   dpara2_air[0]= dpara_sm2[0];
334   dpara2_air[1]= dpara_sm2[1];
335   dpara2_air[2]= th_air/2.;
336
337   gMC->Gsvolu("EAIX","PARA", idtmed[698], dpara2_air, 6);
338   gMC->Gsatt("EAIX", "SEEN", 0);
339
340   // Place hexagonal single cells ECCU inside EHC2
341   // skip cells which go into the hole in top left corner.
342
343   xrow=1;
344   yb = -dpara2[1] + (1./root3_2)*hexd1[6];
345   zb = 0.;
346   for (j = 1; j <= (ncell_sm - ncell_hole); ++j) {
347     xb =-(dpara2[0] + dpara2[1]*0.577) + 2*hexd1[6];
348     if(xrow >= 2){
349       xb = xb+(xrow-1)*hexd1[6];
350     }
351     for (i = 1; i <= ncell_sm; ++i) {
352       number = i+(j-1)*ncell_sm;
353           gMC->Gsposp("ECCU", number, "EHC2", xb,yb,zb, ihrotm, "ONLY", hexd1,10);
354       xb += (hexd1[6]*2.);
355     }
356     xrow = xrow+1;
357     yb += (hexd1[6]*TMath::Sqrt(3.));
358   }
359
360
361   // ESMX is normal supermodule with base at bottom, with EHC2
362   
363   z_air1= -dpara_sm2[2] + th_base + dpara2_air[2]; 
364   gMC->Gspos("EAIX", 1, "ESMX", 0., 0., z_air1, 0, "ONLY");
365   z_gas=z_air1+dpara2_air[2]+ th_pcb + dpara2[2]; 
366   gMC->Gspos("EHC2", 1, "ESMX", 0., 0., z_gas, 0, "ONLY");
367   z_air2=z_gas+dpara2[2]+ th_pcb + dpara2_air[2]; 
368   gMC->Gspos("EAIX", 2, "ESMX", 0., 0., z_air2, 0, "ONLY");
369
370   // ESMY is mirror image of ESMX with base at bottom, with EHC2
371   
372   z_air1= -dpara_sm2[2] + th_pcb + dpara2_air[2]; 
373   gMC->Gspos("EAIX", 3, "ESMY", 0., 0., z_air1, 0, "ONLY");
374   z_gas=z_air1+dpara2_air[2]+ th_pcb + dpara2[2]; 
375   gMC->Gspos("EHC2", 2, "ESMY", 0., 0., z_gas, 0, "ONLY");
376   z_air2=z_gas+dpara2[2]+ th_pcb + dpara2_air[2]; 
377   gMC->Gspos("EAIX", 4, "ESMY", 0., 0., z_air2, 0, "ONLY");
378
379 //
380
381
382 // special supermodule EMM3 (GEANT only) containing 2 unit modules
383    
384 // volume for SUPERMODULE 
385
386   Float_t dpara_sm3[6] = {12.5,12.5,0.8,30.,0.,0.};
387   dpara_sm3[0]=(ncell_sm - ncell_hole +0.25)*hexd1[6] ;
388   dpara_sm3[1] = (ncell_hole + 0.25) * hexd1[6] * root3_2;
389   dpara_sm3[2] = sm_thick/2.;
390
391   gMC->Gsvolu("ESMP","PARA", idtmed[607], dpara_sm3, 6);
392   gMC->Gsatt("ESMP", "SEEN", 0);
393   //
394   gMC->Gsvolu("ESMQ","PARA", idtmed[607], dpara_sm3, 6);
395   gMC->Gsatt("ESMQ", "SEEN", 0);
396
397   Float_t dpara3[6] = {12.5,12.5,0.4,30.,0.,0.};
398   dpara3[0] = dpara_sm3[0];
399   dpara3[1] = dpara_sm3[1];
400   dpara3[2] = cell_depth/2.;
401
402   gMC->Gsvolu("EHC3","PARA", idtmed[698], dpara3, 6);
403   gMC->Gsatt("EHC3", "SEEN", 1);
404
405
406   // Air residing between the PCB and the base
407
408   Float_t dpara3_air[6] = {12.5,12.5,8.,30.,0.,0.};
409   dpara3_air[0]= dpara_sm3[0];
410   dpara3_air[1]= dpara_sm3[1];
411   dpara3_air[2]= th_air/2.;
412
413   gMC->Gsvolu("EAIP","PARA", idtmed[698], dpara3_air, 6);
414   gMC->Gsatt("EAIP", "SEEN", 0);
415
416
417   // Place hexagonal single cells ECCU inside EHC3
418   // skip cells which go into the hole in top left corner.
419
420   xrow=1;
421   yb = -dpara3[1] + (1./root3_2)*hexd1[6];
422   zb = 0.;
423   for (j = 1; j <= ncell_hole; ++j) {
424     xb =-(dpara3[0] + dpara3[1]*0.577) + 2*hexd1[6];
425     if(xrow >= 2){
426       xb = xb+(xrow-1)*hexd1[6];
427     }
428     for (i = 1; i <= (ncell_sm - ncell_hole); ++i) {
429       number = i+(j-1)*(ncell_sm - ncell_hole);
430           gMC->Gsposp("ECCU", number, "EHC3", xb,yb,zb, ihrotm, "ONLY", hexd1,10);
431       xb += (hexd1[6]*2.);
432     }
433     xrow = xrow+1;
434     yb += (hexd1[6]*TMath::Sqrt(3.));
435   }
436
437   // ESMP is normal supermodule with base at bottom, with EHC3
438   
439   z_air1= -dpara_sm3[2] + th_base + dpara3_air[2]; 
440   gMC->Gspos("EAIP", 1, "ESMP", 0., 0., z_air1, 0, "ONLY");
441   z_gas=z_air1+dpara3_air[2]+ th_pcb + dpara3[2]; 
442   gMC->Gspos("EHC3", 1, "ESMP", 0., 0., z_gas, 0, "ONLY");
443   z_air2=z_gas+dpara3[2]+ th_pcb + dpara3_air[2]; 
444   gMC->Gspos("EAIP", 2, "ESMP", 0., 0., z_air2, 0, "ONLY");
445
446   // ESMQ is mirror image of ESMP with base at bottom, with EHC3
447   
448   z_air1= -dpara_sm3[2] + th_pcb + dpara3_air[2]; 
449   gMC->Gspos("EAIP", 3, "ESMQ", 0., 0., z_air1, 0, "ONLY");
450   z_gas=z_air1+dpara3_air[2]+ th_pcb + dpara3[2]; 
451   gMC->Gspos("EHC3", 2, "ESMQ", 0., 0., z_gas, 0, "ONLY");
452   z_air2=z_gas+dpara3[2]+ th_pcb + dpara3_air[2]; 
453   gMC->Gspos("EAIP", 4, "ESMQ", 0., 0., z_air2, 0, "ONLY");
454
455 }
456  
457 //_____________________________________________________________________________
458
459 void AliPMDv1::CreatePMD()
460 {
461   //
462   // Create final detector from supermodules
463   //
464   // -- Author :     Y.P. VIYOGI, 07/05/1996. 
465   // -- Modified:    P.V.K.S.Baba(JU), 15-12-97. 
466   // -- Modified:    For New Geometry YPV, March 2001.
467
468
469   const Float_t root3_2 = TMath::Sqrt(3.)/2.;
470   const Float_t pi = 3.14159;
471   Int_t i,j;
472
473   Float_t  xp, yp, zp;
474
475   Int_t num_mod;
476   Int_t jhrot12,jhrot13, irotdm;
477
478   Int_t *idtmed = fIdtmed->GetArray()-599;
479   
480   //  VOLUMES Names : begining with "E" for all PMD volumes, 
481   // The names of SIZE variables begin with S and have more meaningful
482   // characters as shown below. 
483   
484   //            VOLUME  SIZE    MEDIUM  :       REMARKS 
485   //            ------  -----   ------  : --------------------------- 
486   
487   //            EPMD    GASPMD   AIR    : INSIDE PMD  and its SIZE 
488   
489   // *** Define the  EPMD   Volume and fill with air *** 
490
491
492   // Gaspmd, the dimension of HEXAGONAL mother volume of PMD,
493
494
495   Float_t gaspmd[10] = {0.,360.,6,2,-4.,12.,150.,4.,12.,150.};
496
497   gaspmd[5] = ncell_hole * cell_radius * 2. * root3_2;
498   gaspmd[8] = gaspmd[5];
499
500   gMC->Gsvolu("EPMD", "PGON", idtmed[698], gaspmd, 10);
501   gMC->Gsatt("EPMD", "SEEN", 0);
502
503   AliMatrix(irotdm, 90., 0.,  90.,  90., 180., 0.);
504    
505   AliMatrix(jhrot12, 90., 120., 90., 210., 0., 0.);
506   AliMatrix(jhrot13, 90., 240., 90., 330., 0., 0.);
507
508
509   Float_t dm_thick = 2. * sm_thick + th_lead + th_steel;
510
511   // dpara_emm1 array contains parameters of the imaginary volume EMM1, 
512   // EMM1 is a master module of type 1, which has 24 copies in the PMD.
513   // EMM1 : normal volume as in old cases
514
515
516   Float_t dpara_emm1[6] = {12.5,12.5,0.8,30.,0.,0.};
517   dpara_emm1[0] = sm_length/2.;
518   dpara_emm1[1] = dpara_emm1[0] *root3_2;
519   dpara_emm1[2] = dm_thick/2.;
520
521   gMC->Gsvolu("EMM1","PARA", idtmed[698], dpara_emm1, 6);
522   gMC->Gsatt("EMM1", "SEEN", 1);
523
524   //
525   // --- DEFINE Modules, iron, and lead volumes 
526   
527   //   Pb Convertor for EMM1
528   Float_t dpara_pb1[6] = {12.5,12.5,8.,30.,0.,0.};
529   dpara_pb1[0] = sm_length/2.;
530   dpara_pb1[1] = dpara_pb1[0] * root3_2;
531   dpara_pb1[2] = th_lead/2.;
532
533   gMC->Gsvolu("EPB1","PARA", idtmed[600], dpara_pb1, 6);
534   gMC->Gsatt ("EPB1", "SEEN", 0);
535
536   //   Fe Support for EMM1
537   Float_t dpara_fe1[6] = {12.5,12.5,8.,30.,0.,0.};
538   dpara_fe1[0] = dpara_pb1[0];
539   dpara_fe1[1] = dpara_pb1[1];
540   dpara_fe1[2] = th_steel/2.;
541
542   gMC->Gsvolu("EFE1","PARA", idtmed[618], dpara_fe1, 6);
543   gMC->Gsatt ("EFE1", "SEEN", 0);
544
545
546
547   //  
548   // position supermodule ESMA, ESMB, EPB1, EFE1 inside EMM1
549
550   Float_t z_ps,z_pb,z_fe,z_cv; 
551   
552   z_ps = - dpara_emm1[2] + sm_thick/2.;
553   gMC->Gspos("ESMB", 1, "EMM1", 0., 0., z_ps, 0, "ONLY");
554   z_pb=z_ps+sm_thick/2.+dpara_pb1[2];
555   gMC->Gspos("EPB1", 1, "EMM1", 0., 0., z_pb, 0, "ONLY");
556   z_fe=z_pb+dpara_pb1[2]+dpara_fe1[2];
557   gMC->Gspos("EFE1", 1, "EMM1", 0., 0., z_fe, 0, "ONLY");
558   z_cv=z_fe+dpara_fe1[2]+sm_thick/2.;
559   gMC->Gspos("ESMA", 1, "EMM1", 0., 0., z_cv, 0, "ONLY");
560
561
562
563   // EMM2 : special master module having full row of cells but the number
564   //        of rows limited by hole.
565
566   Float_t dpara_emm2[6] = {12.5,12.5,0.8,30.,0.,0.};
567   dpara_emm2[0] = sm_length/2.;
568   dpara_emm2[1] = (ncell_sm - ncell_hole + 0.25) * cell_radius * root3_2;
569   dpara_emm2[2] = dm_thick/2.;
570
571   gMC->Gsvolu("EMM2","PARA", idtmed[698], dpara_emm2, 6);
572   gMC->Gsatt("EMM2", "SEEN", 1);
573
574
575   //   Pb Convertor for EMM2
576   Float_t dpara_pb2[6] = {12.5,12.5,8.,30.,0.,0.};
577   dpara_pb2[0] = dpara_emm2[0];
578   dpara_pb2[1] = dpara_emm2[1];
579   dpara_pb2[2] = th_lead/2.;
580
581   gMC->Gsvolu("EPB2","PARA", idtmed[600], dpara_pb2, 6);
582   gMC->Gsatt ("EPB2", "SEEN", 0);
583
584   //   Fe Support for EMM2
585   Float_t dpara_fe2[6] = {12.5,12.5,8.,30.,0.,0.};
586   dpara_fe2[0] = dpara_pb2[0];
587   dpara_fe2[1] = dpara_pb2[1];
588   dpara_fe2[2] = th_steel/2.;
589
590   gMC->Gsvolu("EFE2","PARA", idtmed[618], dpara_fe2, 6);
591   gMC->Gsatt ("EFE2", "SEEN", 0);
592
593
594
595   // position supermodule  ESMX, ESMY inside EMM2
596
597   z_ps = - dpara_emm2[2] + sm_thick/2.;
598   gMC->Gspos("ESMY", 1, "EMM2", 0., 0., z_ps, 0, "ONLY");
599   z_pb = z_ps + sm_thick/2.+dpara_pb2[2];
600   gMC->Gspos("EPB2", 1, "EMM2", 0., 0., z_pb, 0, "ONLY");
601   z_fe = z_pb + dpara_pb2[2]+dpara_fe2[2];
602   gMC->Gspos("EFE2", 1, "EMM2", 0., 0., z_fe, 0, "ONLY");
603   z_cv = z_fe + dpara_fe2[2]+sm_thick/2.;
604   gMC->Gspos("ESMX", 1, "EMM2", 0., 0., z_cv, 0, "ONLY");
605   // 
606
607
608   // EMM3 : special master module having truncated rows and columns of cells 
609   //        limited by hole.
610
611   Float_t dpara_emm3[6] = {12.5,12.5,0.8,30.,0.,0.};
612   dpara_emm3[0] = dpara_emm2[1]/root3_2;
613   dpara_emm3[1] = (ncell_hole + 0.25) * cell_radius *root3_2;
614   dpara_emm3[2] = dm_thick/2.;
615
616   gMC->Gsvolu("EMM3","PARA", idtmed[698], dpara_emm3, 6);
617   gMC->Gsatt("EMM3", "SEEN", 1);
618
619
620   //   Pb Convertor for EMM3
621   Float_t dpara_pb3[6] = {12.5,12.5,8.,30.,0.,0.};
622   dpara_pb3[0] = dpara_emm3[0];
623   dpara_pb3[1] = dpara_emm3[1];
624   dpara_pb3[2] = th_lead/2.;
625
626   gMC->Gsvolu("EPB3","PARA", idtmed[600], dpara_pb3, 6);
627   gMC->Gsatt ("EPB3", "SEEN", 0);
628
629   //   Fe Support for EMM3
630   Float_t dpara_fe3[6] = {12.5,12.5,8.,30.,0.,0.};
631   dpara_fe3[0] = dpara_pb3[0];
632   dpara_fe3[1] = dpara_pb3[1];
633   dpara_fe3[2] = th_steel/2.;
634
635   gMC->Gsvolu("EFE3","PARA", idtmed[618], dpara_fe3, 6);
636   gMC->Gsatt ("EFE3", "SEEN", 0);
637
638
639
640   // position supermodule  ESMP, ESMQ inside EMM3
641
642   z_ps = - dpara_emm3[2] + sm_thick/2.;
643   gMC->Gspos("ESMQ", 1, "EMM3", 0., 0., z_ps, 0, "ONLY");
644   z_pb = z_ps + sm_thick/2.+dpara_pb3[2];
645   gMC->Gspos("EPB3", 1, "EMM3", 0., 0., z_pb, 0, "ONLY");
646   z_fe = z_pb + dpara_pb3[2]+dpara_fe3[2];
647   gMC->Gspos("EFE3", 1, "EMM3", 0., 0., z_fe, 0, "ONLY");
648   z_cv = z_fe + dpara_fe3[2] + sm_thick/2.;
649   gMC->Gspos("ESMP", 1, "EMM3", 0., 0., z_cv, 0, "ONLY");
650   // 
651
652   // EHOL is a tube structure made of air
653   //
654   //Float_t d_hole[3];
655   //d_hole[0] = 0.;
656   //d_hole[1] = ncell_hole * cell_radius *2. * root3_2 + boundary;
657   //d_hole[2] = dm_thick/2.;
658   //
659   //gMC->Gsvolu("EHOL", "TUBE", idtmed[698], d_hole, 3);
660   //gMC->Gsatt("EHOL", "SEEN", 1);
661
662   //Al-rod as boundary of the supermodules
663
664   Float_t Al_rod[3] ;
665   Al_rod[0] = sm_length * 3/2. - gaspmd[5]/2 - boundary ;
666   Al_rod[1] = boundary - 0.5*cell_radius*root3_2;
667   Al_rod[2] = dm_thick/2.;
668
669   gMC->Gsvolu("EALM","BOX ", idtmed[698], Al_rod, 3);
670   gMC->Gsatt ("EALM", "SEEN", 1);
671   Float_t xalm[3];
672   xalm[0]=Al_rod[0] + gaspmd[5] + 3.0*boundary;
673   xalm[1]=-xalm[0]/2.;
674   xalm[2]=xalm[1];
675
676   Float_t yalm[3];
677   yalm[0]=0.;
678   yalm[1]=xalm[0]*root3_2;
679   yalm[2]=-yalm[1];
680
681   // delx = full side of the supermodule
682   Float_t delx=sm_length * 3.;
683   Float_t x1= delx*root3_2 /2.;
684   Float_t x4=delx/4.; 
685
686
687   // placing master modules and Al-rod in PMD
688
689   Float_t dx = sm_length;
690   Float_t dy = dx * root3_2;
691
692   Float_t xsup[9] = {-dx/2., dx/2., 3.*dx/2., 
693                      -dx,    0.,       dx,
694                      -3.*dx/2., -dx/2., dx/2.};
695
696   Float_t ysup[9] = {dy,  dy,  dy, 
697                      0.,  0.,  0., 
698                     -dy, -dy, -dy};
699
700   // xpos and ypos are the x & y coordinates of the centres of EMM1 volumes
701
702   Float_t xoff = boundary * TMath::Tan(pi/6.);
703   Float_t xmod[3]={x4 + xoff , x4 + xoff, -2.*x4-boundary/root3_2};
704   Float_t ymod[3] = {-x1 - boundary, x1 + boundary, 0.};
705   Float_t xpos[9], ypos[9], x2, y2, x3, y3;
706
707   Float_t xemm2 = sm_length/2. - 
708                   (ncell_sm + ncell_hole + 0.25) * cell_radius * 0.5
709                   + xoff;
710   Float_t yemm2 = -(ncell_sm + ncell_hole + 0.25) * cell_radius * root3_2
711                   - boundary;
712
713   Float_t xemm3 = (ncell_sm + 0.5 * ncell_hole + 0.25) * cell_radius + xoff;
714   Float_t yemm3 = - (ncell_hole - 0.25) * cell_radius * root3_2 - boundary;
715
716   Float_t theta[3] = {0., 2.*pi/3., 4.*pi/3.};
717   Int_t irotate[3] = {0, jhrot12, jhrot13};
718
719   num_mod=0;
720   for (j=0; j<3; ++j)
721     {
722       gMC->Gsposp("EALM", j+1, "EPMD", xalm[j],yalm[j], 0., irotate[j], "ONLY", Al_rod, 3);
723       x2=xemm2*TMath::Cos(theta[j]) - yemm2*TMath::Sin(theta[j]);
724       y2=xemm2*TMath::Sin(theta[j]) + yemm2*TMath::Cos(theta[j]);
725
726       gMC->Gsposp("EMM2", j+1, "EPMD", x2,y2, 0., irotate[j], "ONLY", dpara_emm2, 6);
727
728       x3=xemm3*TMath::Cos(theta[j]) - yemm3*TMath::Sin(theta[j]);
729       y3=xemm3*TMath::Sin(theta[j]) + yemm3*TMath::Cos(theta[j]);
730
731       gMC->Gsposp("EMM3", j+4, "EPMD", x3,y3, 0., irotate[j], "ONLY", dpara_emm3, 6);
732
733       for (i=1; i<9; ++i)
734         {
735           xpos[i]=xmod[j] + xsup[i]*TMath::Cos(theta[j]) - ysup[i]*TMath::Sin(theta[j]);
736           ypos[i]=ymod[j] + xsup[i]*TMath::Sin(theta[j]) + ysup[i]*TMath::Cos(theta[j]);
737
738           if(fDebug) 
739               printf("%s: %f %f \n", ClassName(), xpos[i], ypos[i]);
740
741           num_mod = num_mod+1;
742
743           if(fDebug) 
744               printf("\n%s: Num_mod %d\n",ClassName(),num_mod);
745
746           gMC->Gsposp("EMM1", num_mod + 6, "EPMD", xpos[i],ypos[i], 0., irotate[j], "ONLY", dpara_emm1, 6);
747
748         }
749     }
750
751         
752   // place EHOL in the centre of EPMD
753   // gMC->Gspos("EHOL", 1, "EPMD", 0.,0.,0., 0, "ONLY");
754
755   // --- Place the EPMD in ALICE 
756   xp = 0.;
757   yp = 0.;
758   zp = zdist1;
759   
760   gMC->Gspos("EPMD", 1, "ALIC", xp,yp,zp, 0, "ONLY");
761     
762 }
763
764  
765 //_____________________________________________________________________________
766 void AliPMDv1::DrawModule()
767 {
768   //
769   // Draw a shaded view of the Photon Multiplicity Detector
770   //
771
772   gMC->Gsatt("*", "seen", -1);
773   gMC->Gsatt("alic", "seen", 0);
774   //
775   // Set the visibility of the components
776   // 
777   gMC->Gsatt("ECAR","seen",0);
778   gMC->Gsatt("ECCU","seen",1);
779   gMC->Gsatt("EHC1","seen",1);
780   gMC->Gsatt("EHC1","seen",1);
781   gMC->Gsatt("EHC2","seen",1);
782   gMC->Gsatt("EMM1","seen",1);
783   gMC->Gsatt("EHOL","seen",1);
784   gMC->Gsatt("EPMD","seen",0);
785   //
786   gMC->Gdopt("hide", "on");
787   gMC->Gdopt("shad", "on");
788   gMC->Gsatt("*", "fill", 7);
789   gMC->SetClipBox(".");
790   gMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
791   gMC->DefaultRange();
792   gMC->Gdraw("alic", 40, 30, 0, 22, 20.5, .02, .02);
793   gMC->Gdhead(1111, "Photon Multiplicity Detector Version 1");
794
795   //gMC->Gdman(17, 5, "MAN");
796   gMC->Gdopt("hide", "off");
797 }
798
799 //_____________________________________________________________________________
800 void AliPMDv1::CreateMaterials()
801 {
802   //
803   // Create materials for the PMD
804   //
805   // ORIGIN    : Y. P. VIYOGI 
806   //
807   
808   // --- The Argon- CO2 mixture --- 
809   Float_t ag[2] = { 39.95 };
810   Float_t zg[2] = { 18. };
811   Float_t wg[2] = { .8,.2 };
812   Float_t dar   = .001782;   // --- Ar density in g/cm3 --- 
813   // --- CO2 --- 
814   Float_t ac[2] = { 12.,16. };
815   Float_t zc[2] = { 6.,8. };
816   Float_t wc[2] = { 1.,2. };
817   Float_t dc    = .001977;
818   Float_t dco   = .002;  // --- CO2 density in g/cm3 ---
819   
820   Float_t absl, radl, a, d, z;
821   Float_t dg;
822   Float_t x0ar;
823   //Float_t x0xe=2.4;
824   //Float_t dxe=0.005858;
825   Float_t buf[1];
826   Int_t nbuf;
827   Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
828   Float_t zsteel[4] = { 26.,24.,28.,14. };
829   Float_t wsteel[4] = { .715,.18,.1,.005 };
830   
831   Int_t *idtmed = fIdtmed->GetArray()-599;
832   Int_t isxfld = gAlice->Field()->Integ();
833   Float_t sxmgmx = gAlice->Field()->Max();
834   
835   // --- Define the various materials for GEANT --- 
836   AliMaterial(1, "Pb    $", 207.19, 82., 11.35, .56, 18.5);
837   x0ar = 19.55 / dar;
838   AliMaterial(2, "Argon$", 39.95, 18., dar, x0ar, 6.5e4);
839   AliMixture(3, "CO2  $", ac, zc, dc, -2, wc);
840   AliMaterial(4, "Al   $", 26.98, 13., 2.7, 8.9, 18.5);
841   AliMaterial(6, "Fe   $", 55.85, 26., 7.87, 1.76, 18.5);
842   AliMaterial(7, "W    $", 183.85, 74., 19.3, .35, 10.3);
843   AliMaterial(8, "G10  $", 20., 10., 1.7, 19.4, 999.);
844   AliMaterial(9, "SILIC$", 28.09, 14., 2.33, 9.36, 45.);
845   AliMaterial(10, "Be   $", 9.01, 4., 1.848, 35.3, 36.7);
846   AliMaterial(15, "Cu   $", 63.54, 29., 8.96, 1.43, 15.);
847   AliMaterial(16, "C    $", 12.01, 6., 2.265, 18.8, 49.9);
848   AliMaterial(17, "POLYCARBONATE    $", 20., 10., 1.2, 34.6, 999.);
849   AliMixture(19, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel); 
850   // AliMaterial(31, "Xenon$", 131.3, 54., dxe, x0xe, 6.5e4);
851   
852   AliMaterial(96, "MYLAR$", 8.73, 4.55, 1.39, 28.7, 62.);
853   AliMaterial(97, "CONCR$", 20., 10., 2.5, 10.7, 40.);
854   AliMaterial(98, "Vacum$", 1e-9, 1e-9, 1e-9, 1e16, 1e16);
855   AliMaterial(99, "Air  $", 14.61, 7.3, .0012, 30420., 67500.);
856  
857   //    define gas-mixtures 
858   
859   char namate[21];
860   gMC->Gfmate((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf);
861   ag[1] = a;
862   zg[1] = z;
863   dg = (dar * 4 + dco) / 5;
864   AliMixture(5, "ArCO2$", ag, zg, dg, 2, wg);
865   
866   // Define tracking media 
867   AliMedium(1, "Pb conv.$", 1,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
868   AliMedium(7, "W  conv.$", 7,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
869   AliMedium(8, "G10plate$", 8,  0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
870   AliMedium(4, "Al      $", 4,  0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
871   AliMedium(6, "Fe      $", 6,  0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
872   AliMedium(5, "ArCO2   $", 5,  1, 0, isxfld, sxmgmx, .1,  .1, .1,  .1);
873   AliMedium(9, "SILICON $", 9,  1, 0, isxfld, sxmgmx, .1,  .1, .1,  .1);
874   AliMedium(10, "Be      $", 10, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
875   AliMedium(98, "Vacuum  $", 98, 0, 0, isxfld, sxmgmx, 1., .1, .1,  10);
876   AliMedium(99, "Air gaps$", 99, 0, 0, isxfld, sxmgmx, 1., .1, .1,  .1);
877   AliMedium(15, "Cu      $", 15, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
878   AliMedium(16, "C       $", 16, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
879   AliMedium(17, "PLOYCARB$", 17, 0, 0, isxfld, sxmgmx, .1,  .1, .01, .1);
880   AliMedium(19, " S steel$", 19, 0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
881   //  AliMedium(31, "Xenon   $", 31,  1, 0, isxfld, sxmgmx, .1,  .1, .1,  .1);
882   
883   // --- Generate explicitly delta rays in the iron, aluminium and lead --- 
884   gMC->Gstpar(idtmed[600], "LOSS", 3.);
885   gMC->Gstpar(idtmed[600], "DRAY", 1.);
886   
887   gMC->Gstpar(idtmed[603], "LOSS", 3.);
888   gMC->Gstpar(idtmed[603], "DRAY", 1.);
889   
890   gMC->Gstpar(idtmed[604], "LOSS", 3.);
891   gMC->Gstpar(idtmed[604], "DRAY", 1.);
892   
893   gMC->Gstpar(idtmed[605], "LOSS", 3.);
894   gMC->Gstpar(idtmed[605], "DRAY", 1.);
895   
896   gMC->Gstpar(idtmed[606], "LOSS", 3.);
897   gMC->Gstpar(idtmed[606], "DRAY", 1.);
898   
899   gMC->Gstpar(idtmed[607], "LOSS", 3.);
900   gMC->Gstpar(idtmed[607], "DRAY", 1.);
901   
902   // --- Energy cut-offs in the Pb and Al to gain time in tracking --- 
903   // --- without affecting the hit patterns --- 
904   gMC->Gstpar(idtmed[600], "CUTGAM", 1e-4);
905   gMC->Gstpar(idtmed[600], "CUTELE", 1e-4);
906   gMC->Gstpar(idtmed[600], "CUTNEU", 1e-4);
907   gMC->Gstpar(idtmed[600], "CUTHAD", 1e-4);
908   gMC->Gstpar(idtmed[605], "CUTGAM", 1e-4);
909   gMC->Gstpar(idtmed[605], "CUTELE", 1e-4);
910   gMC->Gstpar(idtmed[605], "CUTNEU", 1e-4);
911   gMC->Gstpar(idtmed[605], "CUTHAD", 1e-4);
912   gMC->Gstpar(idtmed[606], "CUTGAM", 1e-4);
913   gMC->Gstpar(idtmed[606], "CUTELE", 1e-4);
914   gMC->Gstpar(idtmed[606], "CUTNEU", 1e-4);
915   gMC->Gstpar(idtmed[606], "CUTHAD", 1e-4);
916   gMC->Gstpar(idtmed[603], "CUTGAM", 1e-4);
917   gMC->Gstpar(idtmed[603], "CUTELE", 1e-4);
918   gMC->Gstpar(idtmed[603], "CUTNEU", 1e-4);
919   gMC->Gstpar(idtmed[603], "CUTHAD", 1e-4);
920   gMC->Gstpar(idtmed[609], "CUTGAM", 1e-4);
921   gMC->Gstpar(idtmed[609], "CUTELE", 1e-4);
922   gMC->Gstpar(idtmed[609], "CUTNEU", 1e-4);
923   gMC->Gstpar(idtmed[609], "CUTHAD", 1e-4);
924   
925   // --- Prevent particles stopping in the gas due to energy cut-off --- 
926   gMC->Gstpar(idtmed[604], "CUTGAM", 1e-5);
927   gMC->Gstpar(idtmed[604], "CUTELE", 1e-5);
928   gMC->Gstpar(idtmed[604], "CUTNEU", 1e-5);
929   gMC->Gstpar(idtmed[604], "CUTHAD", 1e-5);
930   gMC->Gstpar(idtmed[604], "CUTMUO", 1e-5);
931 }
932
933 //_____________________________________________________________________________
934 void AliPMDv1::Init()
935 {
936   //
937   // Initialises PMD detector after it has been built
938   //
939   Int_t i;
940   kdet=1;
941   //
942   if(fDebug) {
943       printf("\n%s: ",ClassName());
944       for(i=0;i<35;i++) printf("*");
945       printf(" PMD_INIT ");
946       for(i=0;i<35;i++) printf("*");
947       printf("\n%s: ",ClassName());
948       printf("                 PMD simulation package (v1) initialised\n");
949       printf("%s: parameters of pmd\n",ClassName());
950       printf("%s: %10.2f %10.2f %10.2f \
951       %10.2f\n",ClassName(),cell_radius,cell_wall,cell_depth,zdist1 );
952       printf("%s: ",ClassName());
953       for(i=0;i<80;i++) printf("*");
954       printf("\n");
955   }
956   
957   Int_t *idtmed = fIdtmed->GetArray()-599;
958   fMedSens=idtmed[605-1];
959 }
960
961 //_____________________________________________________________________________
962 void AliPMDv1::StepManager()
963 {
964   //
965   // Called at each step in the PMD
966   //
967   Int_t   copy;
968   Float_t hits[4], destep;
969   Float_t center[3] = {0,0,0};
970   Int_t   vol[5];
971   //char *namep;
972   
973   if(gMC->GetMedium() == fMedSens && (destep = gMC->Edep())) {
974   
975     gMC->CurrentVolID(copy);
976
977     //namep=gMC->CurrentVolName();
978     //printf("Current vol is %s \n",namep);
979
980     vol[0]=copy;
981     gMC->CurrentVolOffID(1,copy);
982
983     //namep=gMC->CurrentVolOffName(1);
984     //printf("Current vol 11 is %s \n",namep);
985
986     vol[1]=copy;
987     gMC->CurrentVolOffID(2,copy);
988
989     //namep=gMC->CurrentVolOffName(2);
990     //printf("Current vol 22 is %s \n",namep);
991
992     vol[2]=copy;
993
994     //  if(strncmp(namep,"EHC1",4))vol[2]=1;
995
996     gMC->CurrentVolOffID(3,copy);
997
998     //namep=gMC->CurrentVolOffName(3);
999     //printf("Current vol 33 is %s \n",namep);
1000
1001     vol[3]=copy;
1002     gMC->CurrentVolOffID(4,copy);
1003
1004     //namep=gMC->CurrentVolOffName(4);
1005     //printf("Current vol 44 is %s \n",namep);
1006
1007     vol[4]=copy;
1008     //printf("volume number %d,%d,%d,%d,%d,%f \n",vol[0],vol[1],vol[2],vol[3],vol[4],destep*1000000);
1009
1010     gMC->Gdtom(center,hits,1);
1011     hits[3] = destep*1e9; //Number in eV
1012     AddHit(gAlice->CurrentTrack(), vol, hits);
1013   }
1014 }
1015
1016   
1017 //------------------------------------------------------------------------
1018 // Get parameters
1019
1020 void AliPMDv1::GetParameters()
1021 {
1022   Int_t ncell_um, num_um;
1023   ncell_um=24;
1024   num_um=3;
1025   ncell_hole=24;
1026   cell_radius=0.25;
1027   cell_wall=0.02;
1028   cell_depth=0.25 * 2.;
1029   //
1030   boundary=0.7;
1031   ncell_sm=ncell_um * num_um;  //no. of cells in a row in one supermodule
1032   sm_length= ((ncell_sm + 0.25 ) * cell_radius) * 2.;
1033   //
1034   th_base=0.3;
1035   th_air=0.1;
1036   th_pcb=0.16;
1037   //
1038   sm_thick = th_base + th_air + th_pcb + cell_depth + th_pcb + th_air + th_pcb;
1039   //
1040   th_lead=1.5;
1041   th_steel=0.5;
1042   //
1043   zdist1 = -365.;
1044 }
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057