]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDv1.cxx
Corrections for gcc 4.0
[u/mrichter/AliRoot.git] / PMD / AliPMDv1.cxx
CommitLineData
c4561145 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 **************************************************************************/
d49fe99a 15/* $Id$ */
fe9578d7 16
c4561145 17//
18///////////////////////////////////////////////////////////////////////////////
19// //
20// Photon Multiplicity Detector Version 1 //
21// //
22//Begin_Html
23/*
24<img src="picts/AliPMDv1Class.gif">
25*/
26//End_Html
27// //
28///////////////////////////////////////////////////////////////////////////////
29////
30
788c3ee6 31#include "Riostream.h"
32#include <TVirtualMC.h>
bff3a244 33
34#include "AliConst.h"
4951e003 35#include "AliLog.h"
bff3a244 36#include "AliMC.h"
37#include "AliMagF.h"
38#include "AliPMDv1.h"
39#include "AliRun.h"
c4561145 40
5c3a1290 41const Int_t AliPMDv1::fgkNcolUM1 = 48; // Number of cols in UM, type 1
42const Int_t AliPMDv1::fgkNcolUM2 = 96; // Number of cols in UM, type 2
43const Int_t AliPMDv1::fgkNrowUM1 = 96; // Number of rows in UM, type 1
44const Int_t AliPMDv1::fgkNrowUM2 = 48; // Number of rows in UM, type 2
45const Float_t AliPMDv1::fgkCellRadius = 0.25; // Radius of a hexagonal cell
46const Float_t AliPMDv1::fgkCellWall = 0.02; // Thickness of cell Wall
47const Float_t AliPMDv1::fgkCellDepth = 0.50; // Gas thickness
48const Float_t AliPMDv1::fgkBoundary = 0.7; // Thickness of Boundary wall
49const Float_t AliPMDv1::fgkThBase = 0.3; // Thickness of Base plate
50const Float_t AliPMDv1::fgkThAir = 0.1; // Thickness of Air
51const Float_t AliPMDv1::fgkThPCB = 0.16; // Thickness of PCB
52const Float_t AliPMDv1::fgkThLead = 1.5; // Thickness of Pb
53const Float_t AliPMDv1::fgkThSteel = 0.5; // Thickness of Steel
54const Float_t AliPMDv1::fgkGap = 0.025; // Air Gap
55const Float_t AliPMDv1::fgkZdist = 361.5; // z-position of the detector
56const Float_t AliPMDv1::fgkSqroot3 = 1.7320508;// Square Root of 3
57const Float_t AliPMDv1::fgkSqroot3by2 = 0.8660254;// Square Root of 3 by 2
58
c4561145 59ClassImp(AliPMDv1)
60
61 //_____________________________________________________________________________
62 AliPMDv1::AliPMDv1()
63{
64 //
65 // Default constructor
66 //
67 fMedSens=0;
68}
69
70//_____________________________________________________________________________
71AliPMDv1::AliPMDv1(const char *name, const char *title)
72 : AliPMD(name,title)
73{
74 //
75 // Standard constructor
76 //
77 fMedSens=0;
78}
79
80//_____________________________________________________________________________
81void AliPMDv1::CreateGeometry()
82{
b1952773 83 // Create geometry for Photon Multiplicity Detector
84
c4561145 85 GetParameters();
86 CreateSupermodule();
87 CreatePMD();
88}
89
90//_____________________________________________________________________________
91void AliPMDv1::CreateSupermodule()
92{
b1952773 93 //
94 // Creates the geometry of the cells of PMD, places them in supermodule
95 // which is a rectangular object.
96 // Basic unit is ECAR, a hexagonal cell made of Ar+CO2, which is
97 // placed inside another hexagonal cell made of Cu (ECCU) with larger
98 // radius, compared to ECAR. The difference in radius gives the dimension
99 // of half width of each cell wall.
100 // These cells are placed in a rectangular strip which are of 2 types
101 // EST1 and EST2
102 // 2 types of unit modules are made EUM1 and EUM2 which contains these strips
103 // placed repeatedly
104 // Each supermodule (ESMA, ESMB), made of G10 is filled with following
105 //components. They have 9 unit moudles inside them
106 // ESMA, ESMB are placed in EPMD along with EMPB (Pb converter)
c4561145 107 // and EMFE (iron support)
108
c4561145 109
b1952773 110 Int_t i,j;
c4561145 111 Int_t number;
112 Int_t ihrotm,irotdm;
3cdb4e97 113 Float_t xb, yb, zb;
114
c4561145 115 Int_t *idtmed = fIdtmed->GetArray()-599;
116
117 AliMatrix(ihrotm, 90., 30., 90., 120., 0., 0.);
118 AliMatrix(irotdm, 90., 180., 90., 270., 180., 0.);
119
b1952773 120 // First create the sensitive medium of a hexagon cell (ECAR)
c4561145 121 // Inner hexagon filled with gas (Ar+CO2)
b1952773 122
c4561145 123 Float_t hexd2[10] = {0.,360.,6,2,-0.25,0.,0.23,0.25,0.,0.23};
3cdb4e97 124 hexd2[4] = -fgkCellDepth/2.;
125 hexd2[7] = fgkCellDepth/2.;
126 hexd2[6] = fgkCellRadius - fgkCellWall;
127 hexd2[9] = fgkCellRadius - fgkCellWall;
c4561145 128
129 gMC->Gsvolu("ECAR", "PGON", idtmed[604], hexd2,10);
130 gMC->Gsatt("ECAR", "SEEN", 0);
b1952773 131
132 // Place the sensitive medium inside a hexagon copper cell (ECCU)
c4561145 133 // Outer hexagon made of Copper
b1952773 134
c4561145 135 Float_t hexd1[10] = {0.,360.,6,2,-0.25,0.,0.25,0.25,0.,0.25};
3cdb4e97 136 hexd1[4] = -fgkCellDepth/2.;
137 hexd1[7] = fgkCellDepth/2.;
138 hexd1[6] = fgkCellRadius;
139 hexd1[9] = fgkCellRadius;
c4561145 140
141 gMC->Gsvolu("ECCU", "PGON", idtmed[614], hexd1,10);
b1952773 142 gMC->Gsatt("ECCU", "SEEN", 0);
c4561145 143
b1952773 144 // Place inner hex (sensitive volume) inside outer hex (copper)
145
a978c9e3 146 gMC->Gspos("ECAR", 1, "ECCU", 0., 0., 0., 0, "ONLY");
b1952773 147
148 // Now create Rectangular TWO strips (EST1, EST2)
149 // of 1 column and 48 or 96 cells length
c4561145 150
b1952773 151 // volume for first strip EST1 made of AIR
c4561145 152
b1952773 153 Float_t dbox1[3];
3cdb4e97 154 dbox1[0] = fgkNcolUM1*fgkCellRadius;
155 dbox1[1] = fgkCellRadius/fgkSqroot3by2;
156 dbox1[2] = fgkCellDepth/2.;
b1952773 157
158 gMC->Gsvolu("EST1","BOX", idtmed[698], dbox1, 3);
159 gMC->Gsatt("EST1", "SEEN", 0);
c4561145 160
b1952773 161 // volume for second strip EST2
c4561145 162
b1952773 163 Float_t dbox2[3];
3cdb4e97 164 dbox2[0] = fgkNcolUM2*fgkCellRadius;
b1952773 165 dbox2[1] = dbox1[1];
166 dbox2[2] = dbox1[2];
c4561145 167
b1952773 168 gMC->Gsvolu("EST2","BOX", idtmed[698], dbox2, 3);
169 gMC->Gsatt("EST2", "SEEN", 0);
c4561145 170
b1952773 171 // Place hexagonal cells ECCU placed inside EST1
172 yb = 0.;
173 zb = 0.;
3cdb4e97 174 xb = -(dbox1[0]) + fgkCellRadius;
175 for (i = 1; i <= fgkNcolUM1; ++i)
a978c9e3 176 {
177 number = i;
178 gMC->Gspos("ECCU", number, "EST1", xb,yb,zb, ihrotm, "ONLY");
179 xb += (fgkCellRadius*2.);
180 }
b1952773 181 // Place hexagonal cells ECCU placed inside EST2
a978c9e3 182 yb = 0.;
183 zb = 0.;
184 xb = -(dbox2[0]) + fgkCellRadius;
185 for (i = 1; i <= fgkNcolUM2; ++i)
186 {
187 number = i;
188 gMC->Gspos("ECCU", number, "EST2", xb,yb,zb, ihrotm, "ONLY");
189 xb += (fgkCellRadius*2.);
190 }
c4561145 191
b1952773 192 // 2 types of rectangular shaped unit modules EUM1 and EUM2 (defined by BOX)
a978c9e3 193
b1952773 194 // Create EUM1
a978c9e3 195
b1952773 196 Float_t dbox3[3];
3cdb4e97 197 dbox3[0] = dbox1[0]+fgkCellRadius/2.;
198 dbox3[1] = (dbox1[1]*fgkNrowUM1)-(fgkCellRadius*fgkSqroot3*(fgkNrowUM1-1)/6.);
199 dbox3[2] = fgkCellDepth/2.;
b1952773 200
201 gMC->Gsvolu("EUM1","BOX", idtmed[698], dbox3, 3);
202 gMC->Gsatt("EUM1", "SEEN", 1);
203
204 // Place rectangular strips EST1 inside EUM1 unit module
a978c9e3 205
b1952773 206 yb = -dbox3[1]+dbox1[1];
3cdb4e97 207 for (j = 1; j <= fgkNrowUM1; ++j)
b1952773 208 {
209 if(j%2 == 0)
210 {
a978c9e3 211 xb = fgkCellRadius/2.0;
b1952773 212 }
213 else
214 {
3cdb4e97 215 xb = -fgkCellRadius/2.0;
b1952773 216 }
217 number = j;
a978c9e3 218 gMC->Gspos("EST1",number, "EUM1", xb, yb , 0. , 0, "MANY");
3cdb4e97 219 yb = (-dbox3[1]+dbox1[1])+j*1.0*fgkCellRadius*fgkSqroot3;
c4561145 220 }
c4561145 221
b1952773 222 // Create EUM2
c4561145 223
b1952773 224 Float_t dbox4[3];
3cdb4e97 225 dbox4[0] = dbox2[0] + fgkCellRadius/2.;
226 dbox4[1] =(dbox2[1]*fgkNrowUM2)-(fgkCellRadius*fgkSqroot3*(fgkNrowUM2-1)/6.);
b1952773 227 dbox4[2] = dbox3[2];
a978c9e3 228
b1952773 229 gMC->Gsvolu("EUM2","BOX", idtmed[698], dbox4, 3);
230 gMC->Gsatt("EUM2", "SEEN", 1);
a978c9e3 231
b1952773 232 // Place rectangular strips EST2 inside EUM2 unit module
a978c9e3 233
b1952773 234 yb = -dbox4[1]+dbox2[1];
3cdb4e97 235 for (j = 1; j <= fgkNrowUM2; ++j)
a978c9e3 236 {
b1952773 237 if(j%2 == 0)
238 {
a978c9e3 239 xb = fgkCellRadius/2.0;
b1952773 240 }
241 else
242 {
3cdb4e97 243 xb = -fgkCellRadius/2.0;
b1952773 244 }
245 number = j;
a978c9e3 246 gMC->Gspos("EST2",number, "EUM2", xb, yb , 0. , 0, "MANY");
3cdb4e97 247 yb = (-dbox4[1]+dbox2[1])+j*1.0*fgkCellRadius*fgkSqroot3;
b1952773 248 }
c4561145 249
b1952773 250 // 2 types of Rectangular shaped supermodules (BOX)
251 //each with 6 unit modules
252
253 // volume for SUPERMODULE ESMA
254 //Space added to provide a gapping for HV between UM's
255
36031625 256 Float_t dboxSM1[3];
257 dboxSM1[0] = 3.0*dbox3[0]+(2.0*0.025);
258 dboxSM1[1] = 2.0*dbox3[1]+0.025;
3cdb4e97 259 dboxSM1[2] = fgkCellDepth/2.;
a978c9e3 260
36031625 261 gMC->Gsvolu("ESMA","BOX", idtmed[698], dboxSM1, 3);
b1952773 262 gMC->Gsatt("ESMA", "SEEN", 1);
a978c9e3 263
b1952773 264 //Position the 6 unit modules in EMSA
36031625 265 Float_t xa1,xa2,xa3,ya1,ya2;
266 xa1 = -dboxSM1[0] + dbox3[0];
267 xa2 = 0.;
268 xa3 = dboxSM1[0] - dbox3[0];
269 ya1 = dboxSM1[1] - dbox3[1];
270 ya2 = -dboxSM1[1] + dbox3[1];
b1952773 271
a978c9e3 272 gMC->Gspos("EUM1", 1, "ESMA", xa1, ya1, 0., 0, "ONLY");
273 gMC->Gspos("EUM1", 2, "ESMA", xa2, ya1, 0., 0, "ONLY");
274 gMC->Gspos("EUM1", 3, "ESMA", xa3, ya1, 0., 0, "ONLY");
275 gMC->Gspos("EUM1", 4, "ESMA", xa1, ya2, 0., 0, "ONLY");
276 gMC->Gspos("EUM1", 5, "ESMA", xa2, ya2, 0., 0, "ONLY");
277 gMC->Gspos("EUM1", 6, "ESMA", xa3, ya2, 0., 0, "ONLY");
b1952773 278
279
280 // volume for SUPERMODULE ESMB
281 //Space is added to provide a gapping for HV between UM's
36031625 282 Float_t dboxSM2[3];
283 dboxSM2[0] = 2.0*dbox4[0]+0.025;
284 dboxSM2[1] = 3.0*dbox4[1]+(2.0*0.025);
3cdb4e97 285 dboxSM2[2] = fgkCellDepth/2.;
b1952773 286
36031625 287 gMC->Gsvolu("ESMB","BOX", idtmed[698], dboxSM2, 3);
b1952773 288 gMC->Gsatt("ESMB", "SEEN", 1);
36031625 289
b1952773 290 //Position the 6 unit modules in EMSB
36031625 291 Float_t xb1,xb2,yb1,yb2,yb3;
292 xb1 = -dboxSM2[0] +dbox4[0];
293 xb2 = dboxSM2[0]-dbox4[0];
294 yb1 = dboxSM2[1]-dbox4[1];
295 yb2 = 0.;
296 yb3 = -dboxSM2[1]+dbox4[1];
b1952773 297
a978c9e3 298 gMC->Gspos("EUM2", 1, "ESMB", xb1, yb1, 0., 0, "ONLY");
299 gMC->Gspos("EUM2", 2, "ESMB", xb2, yb1, 0., 0, "ONLY");
300 gMC->Gspos("EUM2", 3, "ESMB", xb1, yb2, 0., 0, "ONLY");
301 gMC->Gspos("EUM2", 4, "ESMB", xb2, yb2, 0., 0, "ONLY");
302 gMC->Gspos("EUM2", 5, "ESMB", xb1, yb3, 0., 0, "ONLY");
303 gMC->Gspos("EUM2", 6, "ESMB", xb2, yb3, 0., 0, "ONLY");
304
b1952773 305 // Make a 3mm thick G10 Base plate for ESMA
36031625 306 Float_t dboxG1a[3];
307 dboxG1a[0] = dboxSM1[0];
308 dboxG1a[1] = dboxSM1[1];
3cdb4e97 309 dboxG1a[2] = fgkThBase/2.;
b1952773 310
36031625 311 gMC->Gsvolu("EBPA","BOX", idtmed[607], dboxG1a, 3);
b1952773 312 gMC->Gsatt("EBPA", "SEEN", 1);
313
314 // Make a 1.6mm thick G10 PCB for ESMA
36031625 315 Float_t dboxG2a[3];
316 dboxG2a[0] = dboxSM1[0];
317 dboxG2a[1] = dboxSM1[1];
3cdb4e97 318 dboxG2a[2] = fgkThPCB/2.;
b1952773 319
36031625 320 gMC->Gsvolu("EPCA","BOX", idtmed[607], dboxG2a, 3);
b1952773 321 gMC->Gsatt("EPCA", "SEEN", 1);
322
323
324 // Make a Full module EFPA of AIR to place EBPA,
325 // 1mm AIR, EPCA, ESMA,EPCA for PMD
326
36031625 327 Float_t dboxAlla[3];
328 dboxAlla[0] = dboxSM1[0];
329 dboxAlla[1] = dboxSM1[1];
3cdb4e97 330 dboxAlla[2] = (fgkThBase+fgkThAir+fgkThPCB+dboxSM1[2]+fgkThPCB)/2.;
b1952773 331
36031625 332 gMC->Gsvolu("EFPA","BOX", idtmed[698], dboxAlla, 3);
b1952773 333 gMC->Gsatt("EFPA", "SEEN", 1);
334
335
336 // Make a Full module EFCA of AIR to place EBPA,
337 // 1mm AIR, EPCA, ESMA,EPC for CPV
36031625 338 Float_t dboxAlla2[3];
339 dboxAlla2[0] = dboxSM1[0];
340 dboxAlla2[1] = dboxSM1[1];
3cdb4e97 341 dboxAlla2[2] = (fgkThBase+fgkThAir+fgkThPCB+dboxSM1[2]+fgkThPCB)/2.;
b1952773 342
36031625 343 gMC->Gsvolu("EFCA","BOX", idtmed[698], dboxAlla2, 3);
b1952773 344 gMC->Gsatt("EFCA", "SEEN", 1);
345
346 // Now place everything in EFPA for PMD
347
36031625 348 Float_t zbpa,zpcba1,zpcba2,zsma;
3cdb4e97 349 zpcba1 = - dboxAlla[2]+fgkThPCB/2.0;
a978c9e3 350 gMC->Gspos("EPCA", 1, "EFPA", 0., 0., zpcba1, 0, "ONLY");
36031625 351 zsma = zpcba1+dboxSM1[2];
a978c9e3 352 gMC->Gspos("ESMA", 1, "EFPA", 0., 0., zsma, 0, "ONLY");
3cdb4e97 353 zpcba2 = zsma+fgkThPCB/2.0;
a978c9e3 354 gMC->Gspos("EPCA", 2, "EFPA", 0., 0., zpcba2, 0, "ONLY");
3cdb4e97 355 zbpa = zpcba2+fgkThAir+fgkThBase/2.0;
a978c9e3 356 gMC->Gspos("EBPA", 1, "EFPA", 0., 0., zbpa, 0, "ONLY");
b1952773 357
358 // Now place everything in EFCA for CPV
359
36031625 360 Float_t zbpa2,zpcba12,zpcba22,zsma2;
3cdb4e97 361 zbpa2 = - dboxAlla2[2]+fgkThBase/2.0;
a978c9e3 362 gMC->Gspos("EBPA", 1, "EFCA", 0., 0., zbpa2, 0, "ONLY");
3cdb4e97 363 zpcba12 = zbpa2+fgkThAir+fgkThPCB/2.0;
a978c9e3 364 gMC->Gspos("EPCA", 1, "EFCA", 0., 0., zpcba12, 0, "ONLY");
36031625 365 zsma2 = zpcba12+dboxSM1[2];
a978c9e3 366 gMC->Gspos("ESMA", 1, "EFCA", 0., 0., zsma2, 0, "ONLY");
3cdb4e97 367 zpcba22 = zsma2+fgkThPCB/2.0;
a978c9e3 368 gMC->Gspos("EPCA", 2, "EFCA", 0., 0., zpcba22, 0, "ONLY");
c4561145 369
370
c4561145 371
b1952773 372 // Make a 3mm thick G10 Base plate for ESMB
36031625 373 Float_t dboxG1b[3];
374 dboxG1b[0] = dboxSM2[0];
375 dboxG1b[1] = dboxSM2[1];
3cdb4e97 376 dboxG1b[2] = fgkThBase/2.;
b1952773 377
36031625 378 gMC->Gsvolu("EBPB","BOX", idtmed[607], dboxG1b, 3);
b1952773 379 gMC->Gsatt("EBPB", "SEEN", 1);
380
381 // Make a 1.6mm thick G10 PCB for ESMB
36031625 382 Float_t dboxG2b[3];
383 dboxG2b[0] = dboxSM2[0];
384 dboxG2b[1] = dboxSM2[1];
3cdb4e97 385 dboxG2b[2] = fgkThPCB/2.;
c4561145 386
36031625 387 gMC->Gsvolu("EPCB","BOX", idtmed[607], dboxG2b, 3);
b1952773 388 gMC->Gsatt("EPCB", "SEEN", 1);
c4561145 389
b1952773 390 // Make a Full module EFPB of AIR to place EBPB,
391 //1mm AIR, EPCB, ESMB,EPCB for PMD
36031625 392 Float_t dboxAllb[3];
393 dboxAllb[0] = dboxSM2[0];
394 dboxAllb[1] = dboxSM2[1];
3cdb4e97 395 dboxAllb[2] = (fgkThBase+fgkThAir+fgkThPCB+dboxSM2[2]+fgkThPCB)/2.;
c4561145 396
36031625 397 gMC->Gsvolu("EFPB","BOX", idtmed[698], dboxAllb, 3);
b1952773 398 gMC->Gsatt("EFPB", "SEEN", 1);
c4561145 399
b1952773 400 // Make a Full module EFCB of AIR to place EBPB,
401 //1mm AIR, EPCB, ESMB,EPCB for CPV
36031625 402 Float_t dboxAllb2[3];
403 dboxAllb2[0] = dboxSM2[0];
404 dboxAllb2[1] = dboxSM2[1];
3cdb4e97 405 dboxAllb2[2] = (fgkThBase+fgkThAir+fgkThPCB+dboxSM2[2]+fgkThPCB)/2.;
c4561145 406
36031625 407 gMC->Gsvolu("EFCB","BOX", idtmed[698], dboxAllb2, 3);
b1952773 408 gMC->Gsatt("EFCB", "SEEN", 1);
c4561145 409
c4561145 410
b1952773 411 // Now place everything in EFPB for PMD
c4561145 412
36031625 413 Float_t zbpb,zpcbb1,zpcbb2,zsmb;
3cdb4e97 414 zpcbb1 = - dboxAllb[2]+fgkThPCB/2.0;
a978c9e3 415 gMC->Gspos("EPCB", 1, "EFPB", 0., 0., zpcbb1, 0, "ONLY");
36031625 416 zsmb = zpcbb1+dboxSM2[2];
a978c9e3 417 gMC->Gspos("ESMB", 1, "EFPB", 0., 0., zsmb, 0, "ONLY");
3cdb4e97 418 zpcbb2 = zsmb+fgkThPCB/2.0;
a978c9e3 419 gMC->Gspos("EPCB", 2, "EFPB", 0., 0., zpcbb2, 0, "ONLY");
3cdb4e97 420 zbpb = zpcbb2+fgkThAir+fgkThBase/2.0;
a978c9e3 421 gMC->Gspos("EBPB", 1, "EFPB", 0., 0., zbpb, 0, "ONLY");
c4561145 422
c4561145 423
b1952773 424 // Now place everything in EFCB for CPV
425
36031625 426 Float_t zbpb2,zpcbb12,zpcbb22,zsmb2;
3cdb4e97 427 zbpb2 = - dboxAllb2[2]+fgkThBase/2.0;
a978c9e3 428 gMC->Gspos("EBPB", 1, "EFCB", 0., 0., zbpb2, 0, "ONLY");
3cdb4e97 429 zpcbb12 = zbpb2+0.1+fgkThPCB/2.0;
a978c9e3 430 gMC->Gspos("EPCB", 1, "EFCB", 0., 0., zpcbb12, 0, "ONLY");
36031625 431 zsmb2 = zpcbb12+dboxSM2[2];
a978c9e3 432 gMC->Gspos("ESMB", 1, "EFCB", 0., 0., zsmb2, 0, "ONLY");
3cdb4e97 433 zpcbb22 = zsmb2+fgkThPCB/2.0;
a978c9e3 434 gMC->Gspos("EPCB", 2, "EFCB", 0., 0., zpcbb22, 0, "ONLY");
c4561145 435
c4561145 436
b1952773 437 // Master MODULE EMPA of aluminum for PMD
3cdb4e97 438 fDboxmm1[0] = dboxSM1[0]+fgkBoundary;
439 fDboxmm1[1] = dboxSM1[1]+fgkBoundary;
36031625 440 fDboxmm1[2] = dboxAlla[2];
c4561145 441
36031625 442 gMC->Gsvolu("EMPA","BOX", idtmed[603], fDboxmm1, 3);
b1952773 443 gMC->Gsatt("EMPA", "SEEN", 1);
c4561145 444
b1952773 445 // Master MODULE EMCA of aluminum for CPV
3cdb4e97 446 fDboxmm12[0] = dboxSM1[0]+fgkBoundary;
447 fDboxmm12[1] = dboxSM1[1]+fgkBoundary;
36031625 448 fDboxmm12[2] = dboxAlla[2];
c4561145 449
36031625 450 gMC->Gsvolu("EMCA","BOX", idtmed[603], fDboxmm12, 3);
b1952773 451 gMC->Gsatt("EMCA", "SEEN", 1);
c4561145 452
453
b1952773 454 //Position EFMA inside EMMA for PMD and CPV
a978c9e3 455 gMC->Gspos("EFPA", 1, "EMPA", 0., 0., 0., 0, "ONLY");
456 gMC->Gspos("EFCA", 1, "EMCA", 0., 0., 0., 0, "ONLY");
c4561145 457
c4561145 458
b1952773 459 // Master MODULE EMPB of aluminum for PMD
3cdb4e97 460 fDboxmm2[0] = dboxSM2[0]+fgkBoundary;
461 fDboxmm2[1] = dboxSM2[1]+fgkBoundary;
36031625 462 fDboxmm2[2] = dboxAllb[2];
c4561145 463
36031625 464 gMC->Gsvolu("EMPB","BOX", idtmed[603], fDboxmm2, 3);
b1952773 465 gMC->Gsatt("EMPB", "SEEN", 1);
c4561145 466
b1952773 467 // Master MODULE EMCB of aluminum for CPV
3cdb4e97 468 fDboxmm22[0] = dboxSM2[0]+fgkBoundary;
469 fDboxmm22[1] = dboxSM2[1]+fgkBoundary;
36031625 470 fDboxmm22[2] = dboxAllb[2];
c4561145 471
36031625 472 gMC->Gsvolu("EMCB","BOX", idtmed[603], fDboxmm22, 3);
b1952773 473 gMC->Gsatt("EMCB", "SEEN", 1);
c4561145 474
b1952773 475 //Position EFMB inside EMMB
a978c9e3 476 gMC->Gspos("EFPB", 1, "EMPB", 0., 0., 0., 0, "ONLY");
477 gMC->Gspos("EFCB", 1, "EMCB", 0., 0., 0., 0, "ONLY");
c4561145 478}
479
480//_____________________________________________________________________________
481
482void AliPMDv1::CreatePMD()
483{
484 //
485 // Create final detector from supermodules
b1952773 486 // -- Author : Bedanga and Viyogi June 2003
c4561145 487
488 Float_t xp, yp, zp;
c4561145 489 Int_t jhrot12,jhrot13, irotdm;
c4561145 490 Int_t *idtmed = fIdtmed->GetArray()-599;
491
b1952773 492 //VOLUMES Names : begining with "E" for all PMD volumes,
493
494 // --- DEFINE Iron, and lead volumes for SM A
495
36031625 496 Float_t dboxPba[3];
3cdb4e97 497 dboxPba[0] = fSMLengthax;
498 dboxPba[1] = fSMLengthay;
499 dboxPba[2] = fgkThLead/2.;
c4561145 500
36031625 501 gMC->Gsvolu("EPBA","BOX", idtmed[600], dboxPba, 3);
b1952773 502 gMC->Gsatt ("EPBA", "SEEN", 0);
c4561145 503
b1952773 504 // Fe Support
36031625 505 Float_t dboxFea[3];
3cdb4e97 506 dboxFea[0] = fSMLengthax;
507 dboxFea[1] = fSMLengthay;
508 dboxFea[2] = fgkThSteel/2.;
c4561145 509
36031625 510 gMC->Gsvolu("EFEA","BOX", idtmed[618], dboxFea, 3);
b1952773 511 gMC->Gsatt ("EFEA", "SEEN", 0);
c4561145 512
b1952773 513 // --- DEFINE Iron, and lead volumes for SM B
514
36031625 515 Float_t dboxPbb[3];
3cdb4e97 516 dboxPbb[0] = fSMLengthbx;
517 dboxPbb[1] = fSMLengthby;
518 dboxPbb[2] = fgkThLead/2.;
b1952773 519
36031625 520 gMC->Gsvolu("EPBB","BOX", idtmed[600], dboxPbb, 3);
b1952773 521 gMC->Gsatt ("EPBB", "SEEN", 0);
522
523 // Fe Support
36031625 524 Float_t dboxFeb[3];
3cdb4e97 525 dboxFeb[0] = fSMLengthbx;
526 dboxFeb[1] = fSMLengthby;
527 dboxFeb[2] = fgkThSteel/2.;
b1952773 528
36031625 529 gMC->Gsvolu("EFEB","BOX", idtmed[618], dboxFeb, 3);
b1952773 530 gMC->Gsatt ("EFEB", "SEEN", 0);
c4561145 531
c4561145 532 AliMatrix(irotdm, 90., 0., 90., 90., 180., 0.);
b1952773 533 AliMatrix(jhrot12, 90., 180., 90., 270., 0., 0.);
c4561145 534 AliMatrix(jhrot13, 90., 240., 90., 330., 0., 0.);
535
a978c9e3 536 // Gaspmd, the dimension of RECTANGULAR mother volume of PMD,
537 // Four mother volumes EPM1,EPM2 for A-type and
538 // volumes EPM3 and EPM4 for B-type. Four to create a hole
539 // and avoid overlap with beam pipe
540
541 Float_t gaspmd[3];
542 gaspmd[0] = fDboxmm1[0];
543 gaspmd[1] = fDboxmm1[1];
544 gaspmd[2] = 7.0; // for the entire detector, including connectors etc
545
546 gMC->Gsvolu("EPM1", "BOX", idtmed[698], gaspmd, 3);
547 gMC->Gsatt("EPM1", "SEEN", 1);
548 gMC->Gsvolu("EPM2", "BOX", idtmed[698], gaspmd, 3);
549 gMC->Gsatt("EPM2", "SEEN", 1);
b1952773 550
551 //Complete detector for Type A
552 //Position Super modules type A for both CPV and PMD in EPMD
36031625 553 Float_t zpsa,zpba,zfea,zcva;
554
a978c9e3 555 // zpsa = - gaspmd[2] + fSMthick/2.;
556 // -2.5 is given to place PMD at -361.5
557 // BM : In future after putting proper electronics
558 // -2.5 will be replaced by -gaspmd[2]
559 zpsa = -2.5 + fSMthick/2.;
36031625 560
a978c9e3 561 gMC->Gspos("EMPA", 1, "EPM1", 0., 0., zpsa, 0, "ONLY");
562 gMC->Gspos("EMPA", 2, "EPM2", 0., 0., zpsa, jhrot12, "ONLY");
3cdb4e97 563 zpba=zpsa+fSMthick/2.+dboxPba[2];
a978c9e3 564 gMC->Gspos("EPBA", 1, "EPM1", 0., 0., zpba, 0, "ONLY");
565 gMC->Gspos("EPBA", 2, "EPM2", 0., 0., zpba, 0, "ONLY");
36031625 566 zfea=zpba+dboxPba[2]+dboxFea[2];
a978c9e3 567 gMC->Gspos("EFEA", 1, "EPM1", 0., 0., zfea, 0, "ONLY");
568 gMC->Gspos("EFEA", 2, "EPM2", 0., 0., zfea, 0, "ONLY");
3cdb4e97 569 zcva=zfea+dboxFea[2]+fSMthick/2.;
a978c9e3 570 gMC->Gspos("EMCA", 1, "EPM1", 0., 0., zcva, 0, "ONLY");
571 gMC->Gspos("EMCA", 2, "EPM2", 0., 0., zcva, jhrot12, "ONLY");
b1952773 572
a978c9e3 573 gaspmd[0] = fDboxmm2[0];
574 gaspmd[1] = fDboxmm2[1];
575 gaspmd[2] = 7.0; // for the entire detector, including connectors etc
576
577 gMC->Gsvolu("EPM3", "BOX", idtmed[698], gaspmd, 3);
578 gMC->Gsatt("EPM3", "SEEN", 1);
579 gMC->Gsvolu("EPM4", "BOX", idtmed[698], gaspmd, 3);
580 gMC->Gsatt("EPM4", "SEEN", 1);
581
b1952773 582 //Complete detector for Type B
583 //Position Super modules type B for both CPV and PMD in EPMD
36031625 584 Float_t zpsb,zpbb,zfeb,zcvb;
a978c9e3 585 // zpsb = - gaspmd[2] + fSMthick/2.;
586 // -2.5 is given to place PMD at -361.5
587 // BM: In future after putting proper electronics
588 // -2.5 will be replaced by -gaspmd[2]
589
590 zpsb = -2.5 + fSMthick/2.;
591 gMC->Gspos("EMPB", 3, "EPM3", 0., 0., zpsb, 0, "ONLY");
592 gMC->Gspos("EMPB", 4, "EPM4", 0., 0., zpsb, jhrot12, "ONLY");
3cdb4e97 593 zpbb=zpsb+fSMthick/2.+dboxPbb[2];
a978c9e3 594 gMC->Gspos("EPBB", 3, "EPM3", 0., 0., zpbb, 0, "ONLY");
595 gMC->Gspos("EPBB", 4, "EPM4", 0., 0., zpbb, 0, "ONLY");
36031625 596 zfeb=zpbb+dboxPbb[2]+dboxFeb[2];
a978c9e3 597 gMC->Gspos("EFEB", 3, "EPM3", 0., 0., zfeb, 0, "ONLY");
598 gMC->Gspos("EFEB", 4, "EPM4", 0., 0., zfeb, 0, "ONLY");
3cdb4e97 599 zcvb=zfeb+dboxFeb[2]+fSMthick/2.;
a978c9e3 600 gMC->Gspos("EMCB", 3, "EPM3", 0., 0., zcvb, 0, "ONLY");
601 gMC->Gspos("EMCB", 4, "EPM4", 0., 0., zcvb, jhrot12, "ONLY");
c4561145 602
c4561145 603 // --- Place the EPMD in ALICE
604 xp = 0.;
605 yp = 0.;
3cdb4e97 606 zp = fgkZdist;
b1952773 607
a978c9e3 608 Float_t xsma,ysma;
609 Float_t xsmb,ysmb;
610 xsma = -fSMLengthbx;
611 ysma = fSMLengthby;
612 xsmb = -fSMLengthax;
613 ysmb = -fSMLengthay;
614
b1952773 615 //Position Full PMD in ALICE
a978c9e3 616 gMC->Gspos("EPM1", 1, "ALIC", xsma,ysma,zp, 0, "ONLY");
617 gMC->Gspos("EPM2", 1, "ALIC", -xsma,-ysma,zp, 0, "ONLY");
618 gMC->Gspos("EPM3", 1, "ALIC", xsmb,ysmb,zp, 0, "ONLY");
619 gMC->Gspos("EPM4", 1, "ALIC", -xsmb,-ysmb,zp, 0, "ONLY");
b1952773 620
c4561145 621}
622
623
624//_____________________________________________________________________________
36031625 625void AliPMDv1::DrawModule() const
c4561145 626{
c4561145 627 // Draw a shaded view of the Photon Multiplicity Detector
628 //
36031625 629 // cout << " Inside Draw Modules " << endl;
c4561145 630
631 gMC->Gsatt("*", "seen", -1);
632 gMC->Gsatt("alic", "seen", 0);
633 //
634 // Set the visibility of the components
635 //
636 gMC->Gsatt("ECAR","seen",0);
637 gMC->Gsatt("ECCU","seen",1);
b1952773 638 gMC->Gsatt("EST1","seen",1);
639 gMC->Gsatt("EST2","seen",1);
640 gMC->Gsatt("EUM1","seen",1);
641 gMC->Gsatt("EUM2","seen",1);
642 gMC->Gsatt("ESMA","seen",1);
643 gMC->Gsatt("EPMD","seen",1);
c4561145 644 //
645 gMC->Gdopt("hide", "on");
646 gMC->Gdopt("shad", "on");
647 gMC->Gsatt("*", "fill", 7);
648 gMC->SetClipBox(".");
649 gMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
650 gMC->DefaultRange();
651 gMC->Gdraw("alic", 40, 30, 0, 22, 20.5, .02, .02);
652 gMC->Gdhead(1111, "Photon Multiplicity Detector Version 1");
653
654 //gMC->Gdman(17, 5, "MAN");
655 gMC->Gdopt("hide", "off");
b1952773 656
bff3a244 657 AliDebug(1,"Outside Draw Modules");
c4561145 658}
659
660//_____________________________________________________________________________
661void AliPMDv1::CreateMaterials()
662{
c4561145 663 // Create materials for the PMD
664 //
665 // ORIGIN : Y. P. VIYOGI
666 //
36031625 667 // cout << " Inside create materials " << endl;
f017d70a 668
c4561145 669 Int_t *idtmed = fIdtmed->GetArray()-599;
670 Int_t isxfld = gAlice->Field()->Integ();
671 Float_t sxmgmx = gAlice->Field()->Max();
672
673 // --- Define the various materials for GEANT ---
f017d70a 674
c4561145 675 AliMaterial(1, "Pb $", 207.19, 82., 11.35, .56, 18.5);
f017d70a 676
677 // Argon
678
679 Float_t dAr = 0.001782; // --- Ar density in g/cm3 ---
680 Float_t x0Ar = 19.55 / dAr;
681 AliMaterial(2, "Argon$", 39.95, 18., dAr, x0Ar, 6.5e4);
682
683 // --- CO2 ---
684
685 Float_t aCO2[2] = { 12.,16. };
686 Float_t zCO2[2] = { 6.,8. };
687 Float_t wCO2[2] = { 1.,2. };
688 Float_t dCO2 = 0.001977;
689 AliMixture(3, "CO2 $", aCO2, zCO2, dCO2, -2, wCO2);
690
c4561145 691 AliMaterial(4, "Al $", 26.98, 13., 2.7, 8.9, 18.5);
f017d70a 692
693 // ArCO2
694
695 Float_t aArCO2[3] = {39.948,12.0107,15.9994};
696 Float_t zArCO2[3] = {18.,6.,8.};
697 Float_t wArCO2[3] = {0.7,0.08,0.22};
698 Float_t dArCO2 = dAr * 0.7 + dCO2 * 0.3;
699 AliMixture(5, "ArCO2$", aArCO2, zArCO2, dArCO2, 3, wArCO2);
700
c4561145 701 AliMaterial(6, "Fe $", 55.85, 26., 7.87, 1.76, 18.5);
f017d70a 702
703 // G10
c4561145 704
f017d70a 705 Float_t aG10[4]={1.,12.011,15.9994,28.086};
706 Float_t zG10[4]={1.,6.,8.,14.};
d49fe99a 707 //PH Float_t wG10[4]={0.148648649,0.104054054,0.483499056,0.241666667};
708 Float_t wG10[4]={0.15201,0.10641,0.49444,0.24714};
f017d70a 709 AliMixture(8,"G10",aG10,zG10,1.7,4,wG10);
c4561145 710
f017d70a 711 AliMaterial(15, "Cu $", 63.54, 29., 8.96, 1.43, 15.);
712
713 // Steel
714 Float_t aSteel[4] = { 55.847,51.9961,58.6934,28.0855 };
715 Float_t zSteel[4] = { 26.,24.,28.,14. };
716 Float_t wSteel[4] = { .715,.18,.1,.005 };
717 Float_t dSteel = 7.88;
718 AliMixture(19, "STAINLESS STEEL$", aSteel, zSteel, dSteel, 4, wSteel);
719
720 //Air
721
722 Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
723 Float_t zAir[4]={6.,7.,8.,18.};
724 Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
725 Float_t dAir1 = 1.20479E-10;
726 Float_t dAir = 1.20479E-3;
727 AliMixture(98, "Vacum$", aAir, zAir, dAir1, 4, wAir);
728 AliMixture(99, "Air $", aAir, zAir, dAir , 4, wAir);
729
c4561145 730 // Define tracking media
f017d70a 731 AliMedium(1, "Pb conv.$", 1, 0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
732 AliMedium(4, "Al $", 4, 0, 0, isxfld, sxmgmx, .1, .1, .01, .1);
733 AliMedium(5, "ArCO2 $", 5, 1, 0, isxfld, sxmgmx, .1, .1, .10, .1);
734 AliMedium(6, "Fe $", 6, 0, 0, isxfld, sxmgmx, .1, .1, .01, .1);
735 AliMedium(8, "G10plate$", 8, 0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
736 AliMedium(15, "Cu $", 15, 0, 0, isxfld, sxmgmx, .1, .1, .01, .1);
737 AliMedium(19, "S steel$", 19, 0, 0, isxfld, sxmgmx, 1., .1, .01, .1);
738 AliMedium(98, "Vacuum $", 98, 0, 0, isxfld, sxmgmx, 1., .1, .10, 10);
739 AliMedium(99, "Air gaps$", 99, 0, 0, isxfld, sxmgmx, 1., .1, .10, .1);
c4561145 740
741 // --- Generate explicitly delta rays in the iron, aluminium and lead ---
742 gMC->Gstpar(idtmed[600], "LOSS", 3.);
743 gMC->Gstpar(idtmed[600], "DRAY", 1.);
744
745 gMC->Gstpar(idtmed[603], "LOSS", 3.);
746 gMC->Gstpar(idtmed[603], "DRAY", 1.);
747
748 gMC->Gstpar(idtmed[604], "LOSS", 3.);
749 gMC->Gstpar(idtmed[604], "DRAY", 1.);
750
751 gMC->Gstpar(idtmed[605], "LOSS", 3.);
752 gMC->Gstpar(idtmed[605], "DRAY", 1.);
753
c4561145 754 gMC->Gstpar(idtmed[607], "LOSS", 3.);
755 gMC->Gstpar(idtmed[607], "DRAY", 1.);
756
757 // --- Energy cut-offs in the Pb and Al to gain time in tracking ---
758 // --- without affecting the hit patterns ---
759 gMC->Gstpar(idtmed[600], "CUTGAM", 1e-4);
760 gMC->Gstpar(idtmed[600], "CUTELE", 1e-4);
761 gMC->Gstpar(idtmed[600], "CUTNEU", 1e-4);
762 gMC->Gstpar(idtmed[600], "CUTHAD", 1e-4);
f017d70a 763
c4561145 764 gMC->Gstpar(idtmed[605], "CUTGAM", 1e-4);
765 gMC->Gstpar(idtmed[605], "CUTELE", 1e-4);
766 gMC->Gstpar(idtmed[605], "CUTNEU", 1e-4);
767 gMC->Gstpar(idtmed[605], "CUTHAD", 1e-4);
f017d70a 768
c4561145 769 gMC->Gstpar(idtmed[603], "CUTGAM", 1e-4);
770 gMC->Gstpar(idtmed[603], "CUTELE", 1e-4);
771 gMC->Gstpar(idtmed[603], "CUTNEU", 1e-4);
772 gMC->Gstpar(idtmed[603], "CUTHAD", 1e-4);
d49fe99a 773// gMC->Gstpar(idtmed[609], "CUTGAM", 1e-4);
774// gMC->Gstpar(idtmed[609], "CUTELE", 1e-4);
775// gMC->Gstpar(idtmed[609], "CUTNEU", 1e-4);
776// gMC->Gstpar(idtmed[609], "CUTHAD", 1e-4);
c4561145 777 // --- Prevent particles stopping in the gas due to energy cut-off ---
778 gMC->Gstpar(idtmed[604], "CUTGAM", 1e-5);
779 gMC->Gstpar(idtmed[604], "CUTELE", 1e-5);
780 gMC->Gstpar(idtmed[604], "CUTNEU", 1e-5);
781 gMC->Gstpar(idtmed[604], "CUTHAD", 1e-5);
782 gMC->Gstpar(idtmed[604], "CUTMUO", 1e-5);
b1952773 783
bff3a244 784 AliDebug(1,"Outside create materials");
b1952773 785
c4561145 786}
787
788//_____________________________________________________________________________
789void AliPMDv1::Init()
790{
791 //
792 // Initialises PMD detector after it has been built
793 //
b1952773 794
c4561145 795 //
bff3a244 796 AliDebug(2,"Inside Init");
797 AliDebug(2,"PMD simulation package (v1) initialised");
798 AliDebug(2,"parameters of pmd");
799 AliDebug(2,Form("%10.2f %10.2f %10.2f %10.2f\n",
800 fgkCellRadius,fgkCellWall,fgkCellDepth,fgkZdist));
c4561145 801 Int_t *idtmed = fIdtmed->GetArray()-599;
802 fMedSens=idtmed[605-1];
b1952773 803
c4561145 804}
805
806//_____________________________________________________________________________
807void AliPMDv1::StepManager()
808{
809 //
810 // Called at each step in the PMD
811 //
b1952773 812
c4561145 813 Int_t copy;
814 Float_t hits[4], destep;
815 Float_t center[3] = {0,0,0};
3cdb4e97 816 Int_t vol[8];
b1952773 817 //const char *namep;
c4561145 818
819 if(gMC->GetMedium() == fMedSens && (destep = gMC->Edep())) {
820
821 gMC->CurrentVolID(copy);
c4561145 822 //namep=gMC->CurrentVolName();
b1952773 823 //printf("Current vol is %s \n",namep);
c4561145 824 vol[0]=copy;
c4561145 825
b1952773 826 gMC->CurrentVolOffID(1,copy);
c4561145 827 //namep=gMC->CurrentVolOffName(1);
828 //printf("Current vol 11 is %s \n",namep);
c4561145 829 vol[1]=copy;
c4561145 830
b1952773 831 gMC->CurrentVolOffID(2,copy);
c4561145 832 //namep=gMC->CurrentVolOffName(2);
833 //printf("Current vol 22 is %s \n",namep);
c4561145 834 vol[2]=copy;
835
836 // if(strncmp(namep,"EHC1",4))vol[2]=1;
837
838 gMC->CurrentVolOffID(3,copy);
c4561145 839 //namep=gMC->CurrentVolOffName(3);
840 //printf("Current vol 33 is %s \n",namep);
c4561145 841 vol[3]=copy;
c4561145 842
b1952773 843 gMC->CurrentVolOffID(4,copy);
c4561145 844 //namep=gMC->CurrentVolOffName(4);
845 //printf("Current vol 44 is %s \n",namep);
c4561145 846 vol[4]=copy;
c4561145 847
b1952773 848 gMC->CurrentVolOffID(5,copy);
849 //namep=gMC->CurrentVolOffName(5);
850 //printf("Current vol 55 is %s \n",namep);
851 vol[5]=copy;
852
853 gMC->CurrentVolOffID(6,copy);
854 //namep=gMC->CurrentVolOffName(6);
855 //printf("Current vol 66 is %s \n",namep);
856 vol[6]=copy;
857
858 gMC->CurrentVolOffID(7,copy);
859 //namep=gMC->CurrentVolOffName(7);
860 //printf("Current vol 77 is %s \n",namep);
861 vol[7]=copy;
862
863
864 //printf("volume number %4d %4d %4d %4d %4d %4d %4d %4d %10.3f \n",vol[0],vol[1],vol[2],vol[3],vol[4],vol[5],vol[6],vol[7],destep*1000000);
865
c4561145 866 gMC->Gdtom(center,hits,1);
867 hits[3] = destep*1e9; //Number in eV
5d12ce38 868 AddHit(gAlice->GetMCApp()->GetCurrentTrackNumber(), vol, hits);
b1952773 869
c4561145 870 }
871}
872
873
874//------------------------------------------------------------------------
875// Get parameters
876
877void AliPMDv1::GetParameters()
878{
36031625 879 // This gives all the parameters of the detector
3cdb4e97 880 // such as Length of Supermodules, type A, type B,
881 // thickness of the Supermodule
b1952773 882 //
36031625 883
3cdb4e97 884 fSMLengthax = (3.0*(fgkNcolUM1*fgkCellRadius+fgkCellRadius/2.)
885 + (2.0*fgkGap)) + fgkBoundary;
886 fSMLengthbx = 2.0*(fgkNcolUM2*fgkCellRadius+fgkCellRadius/2.)
887 + fgkGap + fgkBoundary;
888
889 fSMLengthay = 2.0*(((fgkCellRadius/fgkSqroot3by2)*fgkNrowUM1)
890 - (fgkCellRadius*fgkSqroot3*(fgkNrowUM1-1)/6.))
891 + fgkGap + fgkBoundary;
892 fSMLengthby = 3.0*(((fgkCellRadius/fgkSqroot3by2)*fgkNrowUM2)
893 - (fgkCellRadius*fgkSqroot3*(fgkNrowUM2-1)/6.))
894 + (2.0*fgkGap) + fgkBoundary;
895
896 fSMthick = fgkThBase + fgkThAir + fgkThPCB
897 + fgkCellDepth + fgkThPCB + fgkThAir + fgkThPCB;
36031625 898
b1952773 899}