Removed all geometry & segmentation info:
[u/mrichter/AliRoot.git] / MUON / AliMUONSt1GeometryBuilderV2.cxx
CommitLineData
ba030c0e 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
d1cd2474 16// $Id$
17//
5f1df83a 18// Authors: David Guez, Ivana Hrivnacova, Marion MacCormick; IPN Orsay
19//
d1cd2474 20// Class AliMUONSt1GeometryBuilderV2
21// ---------------------------------
22// MUON Station1 detailed geometry construction class.
5f1df83a 23// (Originally defined in AliMUONv2.cxx - now removed.)
24// Included in AliRoot 2004/01/23
d1cd2474 25
26#ifdef ST1_WITH_STL
27 #include <vector>
28#endif
ba030c0e 29
d1cd2474 30#ifdef ST1_WITH_ROOT
31 #include "TArrayI.h"
32#endif
ba030c0e 33
34#include <TVector2.h>
d1cd2474 35#include <TVector3.h>
36#include <TGeoMatrix.h>
ba030c0e 37#include <TClonesArray.h>
5f91c9e8 38#include <Riostream.h>
39#include <TSystem.h>
5d12ce38 40#include <TVirtualMC.h>
ba030c0e 41
5f91c9e8 42#include "AliMpFiles.h"
ab126d0a 43#include "AliMpSectorReader.h"
5f91c9e8 44#include "AliMpSector.h"
45#include "AliMpRow.h"
46#include "AliMpVRowSegment.h"
47#include "AliMpMotifMap.h"
48#include "AliMpMotifPosition.h"
ba030c0e 49
e118b27e 50#include "AliRun.h"
51#include "AliMagF.h"
52#include "AliLog.h"
53
d1cd2474 54#include "AliMUONSt1GeometryBuilderV2.h"
55#include "AliMUONSt1SpecialMotif.h"
56#include "AliMUON.h"
57#include "AliMUONChamber.h"
e118b27e 58#include "AliMUONGeometryModule.h"
a432117a 59#include "AliMUONGeometryEnvelopeStore.h"
ba030c0e 60
d1cd2474 61ClassImp(AliMUONSt1GeometryBuilderV2)
ba030c0e 62
5f91c9e8 63// Thickness Constants
d1cd2474 64const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzPadPlane=0.0148/2.; //Pad plane
65const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzFoam = 2.083/2.; //Foam of mechanicalplane
66const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzFR4 = 0.0031/2.; //FR4 of mechanical plane
67const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzSnPb = 0.0091/2.; //Pad/Kapton connection (66 pt)
68const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzKapton = 0.0122/2.; //Kapton
69const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzBergPlastic = 0.3062/2.;//Berg connector
70const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzBergCopper = 0.1882/2.; //Berg connector
71const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzDaughter = 0.0156/2.; //Daughter board
b367fd8f 72const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzGas = 0.42/2.; //Gas thickness
5f91c9e8 73
74// Quadrant Mother volume - TUBS1 - Middle layer of model
d1cd2474 75const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherIR1 = 18.3;
76const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherOR1 = 105.673;
77const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherThick1 = 6.5/2;
78const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherPhiL1 = 0.;
79const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherPhiU1 = 90.;
5f91c9e8 80
81// Quadrant Mother volume - TUBS2 - near and far layers of model
d1cd2474 82const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherIR2 = 20.7;
83const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherOR2 = 100.073;
84const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherThick2 = 3.0/2;
85const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherPhiL2 = 0.;
86const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherPhiU2 = 90.;
5f91c9e8 87
88// Sensitive copper pads, foam layer, PCB and electronics model parameters
d1cd2474 89const GReal_t AliMUONSt1GeometryBuilderV2::fgkHxHole=1.5/2.;
90const GReal_t AliMUONSt1GeometryBuilderV2::fgkHyHole=6./2.;
91const GReal_t AliMUONSt1GeometryBuilderV2::fgkHxBergPlastic=0.74/2.;
92const GReal_t AliMUONSt1GeometryBuilderV2::fgkHyBergPlastic=5.09/2.;
93const GReal_t AliMUONSt1GeometryBuilderV2::fgkHxBergCopper=0.25/2.;
94const GReal_t AliMUONSt1GeometryBuilderV2::fgkHyBergCopper=3.6/2.;
95const GReal_t AliMUONSt1GeometryBuilderV2::fgkHxKapton=0.8/2.;
96const GReal_t AliMUONSt1GeometryBuilderV2::fgkHyKapton=5.7/2.;
97const GReal_t AliMUONSt1GeometryBuilderV2::fgkHxDaughter=2.3/2.;
98const GReal_t AliMUONSt1GeometryBuilderV2::fgkHyDaughter=6.3/2.;
99const GReal_t AliMUONSt1GeometryBuilderV2::fgkOffsetX=1.46;
100const GReal_t AliMUONSt1GeometryBuilderV2::fgkOffsetY=0.71;
101const GReal_t AliMUONSt1GeometryBuilderV2::fgkDeltaFilleEtamX=1.46;
102const GReal_t AliMUONSt1GeometryBuilderV2::fgkDeltaFilleEtamY=0.051;
103
104const GReal_t AliMUONSt1GeometryBuilderV2::fgkDeltaQuadLHC=2.6; // LHC Origin wrt Quadrant Origin
b367fd8f 105const GReal_t AliMUONSt1GeometryBuilderV2::fgkFrameOffset=5.2;
106 // Fix (1) of overlap SQN* layers with SQM* ones (was 5.0)
107
108// Pad planes offsets
109const GReal_t AliMUONSt1GeometryBuilderV2::fgkPadXOffsetBP = 0.50 - 0.63/2; // = 0.185
110const GReal_t AliMUONSt1GeometryBuilderV2::fgkPadYOffsetBP = -0.31 - 0.42/2; // =-0.52
d1cd2474 111
112const char* AliMUONSt1GeometryBuilderV2::fgkHoleName="MCHL";
113const char* AliMUONSt1GeometryBuilderV2::fgkDaughterName="MCDB";
114const char AliMUONSt1GeometryBuilderV2::fgkFoamLayerSuffix='F'; // prefix for automatic volume naming
b367fd8f 115const char* AliMUONSt1GeometryBuilderV2::fgkQuadrantEnvelopeName="SE";
d1cd2474 116const char* AliMUONSt1GeometryBuilderV2::fgkQuadrantMLayerName="SQM";
117const char* AliMUONSt1GeometryBuilderV2::fgkQuadrantNLayerName="SQN";
118const char* AliMUONSt1GeometryBuilderV2::fgkQuadrantFLayerName="SQF";
e8c253a0 119const Int_t AliMUONSt1GeometryBuilderV2::fgkDaughterCopyNoOffset=1000;
5f91c9e8 120
121//______________________________________________________________________________
d1cd2474 122AliMUONSt1GeometryBuilderV2::AliMUONSt1GeometryBuilderV2(AliMUON* muon)
a432117a 123 : AliMUONVGeometryBuilder("st1V2.dat",
e118b27e 124 muon->Chamber(0).GetGeometry(),
125 muon->Chamber(1).GetGeometry()),
d1cd2474 126 fMUON(muon)
ba030c0e 127{
5f91c9e8 128 // set path to mapping data files
129 if (! gSystem->Getenv("MINSTALL")) {
130 TString dirPath = gSystem->Getenv("ALICE_ROOT");
131 dirPath += "/MUON/mapping";
3d16af90 132 AliMpFiles::SetTopPath(dirPath);
5f91c9e8 133 gSystem->Setenv("MINSTALL", dirPath.Data());
134 //cout << "AliMpFiles top path set to " << dirPath << endl;
135 }
136 //else
d1cd2474 137 // cout << gSystem->Getenv("MINSTALL") << endl;
ba030c0e 138}
139
5f91c9e8 140//______________________________________________________________________________
d1cd2474 141AliMUONSt1GeometryBuilderV2::AliMUONSt1GeometryBuilderV2()
142 : AliMUONVGeometryBuilder(),
143 fMUON(0)
ba030c0e 144{
d1cd2474 145// Default Constructor
146// --
ba030c0e 147}
148
5f91c9e8 149//______________________________________________________________________________
d1cd2474 150AliMUONSt1GeometryBuilderV2::AliMUONSt1GeometryBuilderV2(const AliMUONSt1GeometryBuilderV2& rhs)
151 : AliMUONVGeometryBuilder(rhs)
ba030c0e 152{
153// Dummy copy constructor
d1cd2474 154
8c343c7c 155 AliFatal("Copy constructor is not implemented.");
ba030c0e 156}
157
5f91c9e8 158//______________________________________________________________________________
d1cd2474 159AliMUONSt1GeometryBuilderV2::~AliMUONSt1GeometryBuilderV2()
ba030c0e 160{
161// Destructor
ba030c0e 162}
163
d1cd2474 164
165//______________________________________________________________________________
166AliMUONSt1GeometryBuilderV2&
167AliMUONSt1GeometryBuilderV2::operator = (const AliMUONSt1GeometryBuilderV2& rhs)
168{
169 // check assignement to self
170 if (this == &rhs) return *this;
171
8c343c7c 172 AliFatal("Assignment operator is not implemented.");
d1cd2474 173
174 return *this;
175}
176
5f91c9e8 177//
178// Private methods
179//
180
181//______________________________________________________________________________
b367fd8f 182TString
183AliMUONSt1GeometryBuilderV2::QuadrantEnvelopeName(Int_t chamber, Int_t quadrant) const
184{
185// Generate unique envelope name from chamber Id and quadrant number
186// ---
187
188 return Form("%s%d", Form("%s%d",fgkQuadrantEnvelopeName,chamber), quadrant);
189}
190
191//______________________________________________________________________________
d1cd2474 192void AliMUONSt1GeometryBuilderV2::CreateHole()
ba030c0e 193{
5f91c9e8 194// Create all the elements found inside a foam hole
ba030c0e 195// --
d1cd2474 196 Int_t* idtmed = fMUON->GetIdtmed()->GetArray()-1099;
197 Int_t idAir = idtmed[1100]; // medium 1
198 //Int_t idCopper = idtmed[1109]; // medium 10 = copper
199 Int_t idCopper = idtmed[1121]; // medium 22 = copper
ba030c0e 200
5f91c9e8 201 GReal_t par[3];
202 GReal_t posX,posY,posZ;
203
204 par[0] = fgkHxHole;
205 par[1] = fgkHyHole;
206 par[2] = fgkHzFoam;
207 gMC->Gsvolu(fgkHoleName,"BOX",idAir,par,3);
208
209 par[0] = fgkHxKapton;
210 par[1] = fgkHyKapton;
211 par[2] = fgkHzSnPb;
212 gMC->Gsvolu("SNPB", "BOX", idCopper, par, 3);
213 posX = 0.;
214 posY = 0.;
215 posZ = -fgkHzFoam+fgkHzSnPb;
216 gMC->Gspos("SNPB",1,fgkHoleName, posX, posY, posZ, 0,"ONLY");
ba030c0e 217
5f91c9e8 218 par[0] = fgkHxHole;
219 par[1] = fgkHyBergPlastic;
220 par[2] = fgkHzKapton;
221 gMC->Gsvolu("KAPT", "BOX", idCopper, par, 3);
222 posX = 0.;
223 posY = 0.;
224 posZ = 0.;
225 gMC->Gspos("KAPT",1,fgkHoleName, posX, posY, posZ, 0,"ONLY");
226}
ba030c0e 227
5f91c9e8 228//______________________________________________________________________________
d1cd2474 229void AliMUONSt1GeometryBuilderV2::CreateDaughterBoard()
5f91c9e8 230{
231// Create all the elements in a daughter board
232// --
d1cd2474 233 Int_t* idtmed = fMUON->GetIdtmed()->GetArray()-1099;
5f91c9e8 234 Int_t idAir = idtmed[1100]; // medium 1
d1cd2474 235 //Int_t idCopper = idtmed[1109]; // medium 10 = copper
236 //Int_t idPlastic =idtmed[1116]; // medium 17 = Plastic
237 Int_t idCopper = idtmed[1121]; // medium 22 = copper
238 Int_t idPlastic =idtmed[1127]; // medium 28 = Plastic
ba030c0e 239
5f91c9e8 240 GReal_t par[3];
241 GReal_t posX,posY,posZ;
ba030c0e 242
5f91c9e8 243 par[0]=fgkHxDaughter;
244 par[1]=fgkHyDaughter;
245 par[2]=TotalHzDaughter();
246 gMC->Gsvolu(fgkDaughterName,"BOX",idAir,par,3);
ba030c0e 247
5f91c9e8 248 par[0]=fgkHxBergPlastic;
249 par[1]=fgkHyBergPlastic;
250 par[2]=fgkHzBergPlastic;
251 gMC->Gsvolu("BRGP","BOX",idPlastic,par,3);
252 posX=0.;
253 posY=0.;
254 posZ = -TotalHzDaughter() + fgkHzBergPlastic;
255 gMC->Gspos("BRGP",1,fgkDaughterName,posX,posY,posZ,0,"ONLY");
256
257 par[0]=fgkHxBergCopper;
258 par[1]=fgkHyBergCopper;
259 par[2]=fgkHzBergCopper;
260 gMC->Gsvolu("BRGC","BOX",idCopper,par,3);
261 posX=0.;
262 posY=0.;
263 posZ=0.;
264 gMC->Gspos("BRGC",1,"BRGP",posX,posY,posZ,0,"ONLY");
265
266 par[0]=fgkHxDaughter;
267 par[1]=fgkHyDaughter;
268 par[2]=fgkHzDaughter;
269 gMC->Gsvolu("DGHT","BOX",idCopper,par,3);
270 posX=0.;
271 posY=0.;
272 posZ = -TotalHzDaughter() + 2.*fgkHzBergPlastic + fgkHzDaughter;
273 gMC->Gspos("DGHT",1,fgkDaughterName,posX,posY,posZ,0,"ONLY");
274}
275
276//______________________________________________________________________________
d1cd2474 277void AliMUONSt1GeometryBuilderV2::CreateInnerLayers()
5f91c9e8 278{
279// Create the layer of sensitive volumes with gas
280// and the copper layer.
281// --
282
283// Gas Medium
d1cd2474 284 Int_t* idtmed = fMUON->GetIdtmed()->GetArray()-1099;
285 //Int_t idArCO2 = idtmed[1108]; // medium 9 (ArCO2 80%)
286 //Int_t idCopper = idtmed[1109]; // medium 10 = copper
287 Int_t idArCO2 = idtmed[1124]; // medium 25 (ArCO2 80%)
288 Int_t idCopper = idtmed[1121]; // medium 22 = copper
5f91c9e8 289
290 Float_t par[11];
291
292//Make gas volume - composed of 11 trapezoids
293// section 1 of 11
294 par[0] = fgkHzGas;
295 par[1] = 0.;
296 par[2] = 0.;
297 par[3] = 71.33/2.;
298 par[4] = 9.76/2.;
299 par[5] = 48.77/2.;
300 par[6] = 15.3;
301 par[7] = 71.33/2.;
302 par[8] = 9.76/2.;
303 par[9] = 48.77/2.;
304 par[10] = 15.3;
305
306 gMC->Gsvolu("SA1G", "TRAP", idArCO2, par, 11);
307 gMC->Gsvolu("SA2G", "TRAP", idArCO2, par, 11);
ba030c0e 308
5f91c9e8 309 par[0] = fgkHzPadPlane;
310 gMC->Gsvolu("SA1C", "TRAP", idCopper,par, 11);
311
312// section 2 of 11
313 par[0] = fgkHzGas;
314 par[1] = 0.;
315 par[2] = 0.;
316 par[3] = 79.68/2.;
317 par[4] = 10.4/2.;
318 par[5] = 57.0/2.;
319 par[6] = 0.;
320 par[7] = 79.68/2.;
321 par[8] = 10.4/2.;
322 par[9] = 57.0/2.;
323 par[10] = 0.;
324 gMC->Gsvolu("SB1G", "TRAP", idArCO2, par, 11);
325 gMC->Gsvolu("SB2G", "TRAP", idArCO2, par, 11);
326
327 par[0] = fgkHzPadPlane;
328 gMC->Gsvolu("SB1C", "TRAP", idCopper,par, 11);
329
330// section 3 of 11
331 par[0] = fgkHzGas;
332 par[1] = 0.;
333 par[2] = 0.;
334 par[3] = 71.33/2.;
335 par[4] = 48.77/2.;
336 par[5] = 9.73/2.;
337 par[6] = -15.3;
338 par[7] = 71.33/2.;
339 par[8] = 48.77/2.;
340 par[9] = 9.73/2.;
341 par[10] = -15.3;
342
343 gMC->Gsvolu("SC1G", "TRAP", idArCO2, par, 11);
344 gMC->Gsvolu("SC2G", "TRAP", idArCO2, par, 11);
345
346 par[0] = fgkHzPadPlane;
347 gMC->Gsvolu("SC1C", "TRAP", idCopper,par, 11);
348
349// section 4 of 11
350 par[0] = fgkHzGas;
351 par[1] = 0.;
352 par[2] = 0.;
353 par[3] = 6.00/2.;
354 par[4] = 0.;
355 par[5] = 1.56/2.;
356 par[6] = 7.41;
357 par[7] = 6.00/2.;
358 par[8] = 0.;
359 par[9] = 1.56/2.;
360 par[10] = 7.41;
361 gMC->Gsvolu("SD1G", "TRAP", idArCO2, par, 11);
362 gMC->Gsvolu("SD2G", "TRAP", idArCO2, par, 11);
363
364 par[0] = fgkHzPadPlane;
365 gMC->Gsvolu("SD1C", "TRAP", idCopper,par, 11);
366
367// section 5 of 11
368 par[0] = fgkHzGas;
369 par[1] = 0.;
370 par[2] = 0.;
371 par[3] = 1.516/2.;
372 par[4] = 0.;
373 par[5] = 0.829/2.;
374 par[6] = 15.3;
375 par[7] = 1.516/2.;
376 par[8] = 0.;
377 par[9] = 0.829/2.;
378 par[10] = 15.3;
379 gMC->Gsvolu("SE1G", "TRAP", idArCO2, par, 11);
380 gMC->Gsvolu("SE2G", "TRAP", idArCO2, par, 11);
381
382 par[0] = fgkHzPadPlane;
383 gMC->Gsvolu("SE1C", "TRAP", idCopper,par, 11);
384
385// section 6 of 11
386 par[0] = fgkHzGas;
387 par[1] = 0.;
388 par[2] = 0.;
389 par[3] = 3.92/2.;
390 par[4] = 0.;
391 par[5] = 0.562/2.;
392 par[6] = -4.1;
393 par[7] = 3.92/2.;
394 par[8] = 0.;
395 par[9] = 0.562/2.;
396 par[10] = -4.1;
397 gMC->Gsvolu("SF1G", "TRAP", idArCO2, par, 11);
398 gMC->Gsvolu("SF2G", "TRAP", idArCO2, par, 11);
399
400 par[0] = fgkHzPadPlane;
401 gMC->Gsvolu("SF1C", "TRAP", idCopper,par, 11);
402
403// section 7 of 11
404 par[0] = fgkHzGas;
405 par[1] = 0.;
406 par[2] = 0.;
407 par[3] = 0.941/2.;
408 par[4] = 0.562/2.;
409 par[5] = 0.;
410 par[6] = -16.6;
411 par[7] = 0.941/2.;
412 par[8] = 0.562/2.;
413 par[9] = 0.;
414 par[10] =-16.6;
415 gMC->Gsvolu("SG1G", "TRAP", idArCO2, par, 11);
416 gMC->Gsvolu("SG2G", "TRAP", idArCO2, par, 11);
417
418 par[0] = fgkHzPadPlane;
419 gMC->Gsvolu("SG1C", "TRAP", idCopper,par, 11);
420
421// section 8 of 11
422 par[0] = fgkHzGas;
423 par[1] = 0.;
424 par[2] = 0.;
425 par[3] = 3.94/2.;
426 par[4] = 0.57/2.;
427 par[5] = 0.;
428 par[6] = 4.14;
429 par[7] = 3.94/2.;
430 par[8] = 0.57/2.;
431 par[9] = 0.;
432 par[10] = 4.14;
433 gMC->Gsvolu("SH1G", "TRAP", idArCO2, par, 11);
434 gMC->Gsvolu("SH2G", "TRAP", idArCO2, par, 11);
435
436 par[0] = fgkHzPadPlane;
437 gMC->Gsvolu("SH1C", "TRAP", idCopper,par, 11);
438
439// section 9 of 11
440 par[0] = fgkHzGas;
441 par[1] = 0.;
442 par[2] = 0.;
443 par[3] = 0.95/2.;
444 par[4] = 0.;
445 par[5] = 0.57/2;
446 par[6] = 16.7;
447 par[7] = 0.95/2.;
448 par[8] = 0.;
449 par[9] = 0.57/2;
450 par[10] = 16.7;
451 gMC->Gsvolu("SI1G", "TRAP", idArCO2, par, 11);
452 gMC->Gsvolu("SI2G", "TRAP", idArCO2, par, 11);
453
454 par[0] = fgkHzPadPlane;
455 gMC->Gsvolu("SI1C", "TRAP", idCopper,par, 11);
456
457// section 10 of 11
458 par[0] = fgkHzGas;
459 par[1] = 0.;
460 par[2] = 0.;
461 par[3] = 1.49/2.;
462 par[4] = 0.;
463 par[5] = 0.817/2.;
464 par[6] = -15.4;
465 par[7] = 1.49/2.;
466 par[8] = 0.;
467 par[9] = 0.817/2.;
468 par[10] = -15.4;
469 gMC->Gsvolu("SJ1G", "TRAP", idArCO2, par, 11);
470 gMC->Gsvolu("SJ2G", "TRAP", idArCO2, par, 11);
471
472 par[0] = fgkHzPadPlane;
473 gMC->Gsvolu("SJ1C", "TRAP", idCopper,par, 11);
474
475// section 11 of 11
476 par[0] = fgkHzGas;
477 par[1] = 0.;
478 par[2] = 0.;
479 par[3] = 5.93/2.;
480 par[4] = 0.;
481 par[5] = 1.49/2.;
482 par[6] = -7.16;
483 par[7] = 5.93/2.;
484 par[8] = 0.;
485 par[9] = 1.49/2.;
486 par[10] = -7.16;
487 gMC->Gsvolu("SK1G", "TRAP", idArCO2, par, 11);
488 gMC->Gsvolu("SK2G", "TRAP", idArCO2, par, 11);
489
490 par[0] = fgkHzPadPlane;
491 gMC->Gsvolu("SK1C", "TRAP", idCopper,par, 11);
ba030c0e 492}
5f91c9e8 493
494//______________________________________________________________________________
d1cd2474 495void AliMUONSt1GeometryBuilderV2::CreateQuadrant(Int_t chamber)
ba030c0e 496{
497// create the quadrant (bending and non-bending planes)
498// for the given chamber
499// --
5f91c9e8 500
ba030c0e 501 CreateFrame(chamber);
502
d1cd2474 503#ifdef ST1_WITH_STL
504 SpecialMap specialMap;
e8c253a0 505 specialMap[76] = AliMUONSt1SpecialMotif(TVector2( 0.1, 0.84), 90.);
506 specialMap[75] = AliMUONSt1SpecialMotif(TVector2( 0.5, 0.36));
507 specialMap[47] = AliMUONSt1SpecialMotif(TVector2(1.01, 0.36));
d1cd2474 508#endif
509
510#ifdef ST1_WITH_ROOT
511 SpecialMap specialMap;
e8c253a0 512 specialMap.Add(76, (Long_t) new AliMUONSt1SpecialMotif(TVector2( 0.1, 0.84), 90.));
513 specialMap.Add(75, (Long_t) new AliMUONSt1SpecialMotif(TVector2( 0.5, 0.36)));
514 specialMap.Add(47, (Long_t) new AliMUONSt1SpecialMotif(TVector2(1.01, 0.36)));
d1cd2474 515#endif
516
ab126d0a 517 AliMpSectorReader reader1(kStation1, kBendingPlane);
5f91c9e8 518 AliMpSector* sector1 = reader1.BuildSector();
ba030c0e 519
b367fd8f 520 //Bool_t reflectZ = true;
521 Bool_t reflectZ = false;
522 //TVector3 where = TVector3(2.5+0.1+0.56+0.001, 2.5+0.1+0.001, 0.);
523 TVector3 where = TVector3(fgkDeltaQuadLHC + fgkPadXOffsetBP,
524 fgkDeltaQuadLHC + fgkPadYOffsetBP, 0.);
5f91c9e8 525 PlaceSector(sector1, specialMap, where, reflectZ, chamber);
ba030c0e 526
d1cd2474 527#ifdef ST1_WITH_STL
ba030c0e 528 specialMap.clear();
e8c253a0 529 specialMap[76] = AliMUONSt1SpecialMotif(TVector2(1.01,0.59),90.);
530 specialMap[75] = AliMUONSt1SpecialMotif(TVector2(1.96, 0.17));
b367fd8f 531 specialMap[47] = AliMUONSt1SpecialMotif(TVector2(2.18,-0.98));
e8c253a0 532 specialMap[20] = AliMUONSt1SpecialMotif(TVector2(0.2 ,-0.08));
533 specialMap[46] = AliMUONSt1SpecialMotif(TVector2(0.2 , 0.25));
534 specialMap[74] = AliMUONSt1SpecialMotif(TVector2(0.28, 0.21));
b367fd8f 535 // Fix (7) - overlap of SQ42 with MCHL (after moving the whole sector
536 // in the true position)
537 // Was: specialMap[47] = AliMUONSt1SpecialMotif(TVector2(1.61,-1.18));
d1cd2474 538#endif
539
540#ifdef ST1_WITH_ROOT
541 specialMap.Delete();
e8c253a0 542 specialMap.Add(76,(Long_t) new AliMUONSt1SpecialMotif(TVector2(1.01,0.59),90.));
543 specialMap.Add(75,(Long_t) new AliMUONSt1SpecialMotif(TVector2(1.96, 0.17)));
b367fd8f 544 specialMap.Add(47,(Long_t) new AliMUONSt1SpecialMotif(TVector2(2.18,-0.98)));
e8c253a0 545 specialMap.Add(20,(Long_t) new AliMUONSt1SpecialMotif(TVector2(0.2 ,-0.08)));
546 specialMap.Add(46,(Long_t) new AliMUONSt1SpecialMotif(TVector2(0.2 , 0.25)));
b367fd8f 547 specialMap.Add(74,(Long_t) new AliMUONSt1SpecialMotif(TVector2(0.28, 0.21)));
548 // Fix (7) - overlap of SQ42 with MCHL (after moving the whole sector
549 // in the true position)
550 // Was: specialMap.Add(47,(Long_t) new AliMUONSt1SpecialMotif(TVector2(1.61,-1.18)));
d1cd2474 551#endif
552
ab126d0a 553 AliMpSectorReader reader2(kStation1, kNonBendingPlane);
5f91c9e8 554 AliMpSector* sector2 = reader2.BuildSector();
b367fd8f 555
556 //reflectZ = false;
557 reflectZ = true;
ab126d0a 558 TVector2 offset = sector2->Position();
e77b6d6b 559 where = TVector3(where.X()+offset.X(), where.Y()+offset.Y(), 0.);
b367fd8f 560 // Add the half-pad shift of the non-bending plane wrt bending plane
561 // (The shift is defined in the mapping as sector offset)
562 // Fix (4) - was TVector3(where.X()+0.63/2, ... - now it is -0.63/2
5f91c9e8 563 PlaceSector(sector2, specialMap, where, reflectZ, chamber);
d1cd2474 564
565#ifdef ST1_WITH_ROOT
566 specialMap.Delete();
567#endif
ba030c0e 568}
569
5f91c9e8 570//______________________________________________________________________________
d1cd2474 571void AliMUONSt1GeometryBuilderV2::CreateFoamBox(const char* name,const TVector2& dimensions)
ba030c0e 572{
5f91c9e8 573// create all the elements in the copper plane
574// --
ba030c0e 575
d1cd2474 576 Int_t* idtmed = fMUON->GetIdtmed()->GetArray()-1099;
5f91c9e8 577 Int_t idAir = idtmed[1100]; // medium 1
d1cd2474 578 //Int_t idFoam = idtmed[1115]; // medium 16 = Foam
579 //Int_t idFR4 = idtmed[1114]; // medium 15 = FR4
580 Int_t idFoam = idtmed[1125]; // medium 26 = Foam
581 Int_t idFR4 = idtmed[1122]; // medium 23 = FR4
ba030c0e 582
5f91c9e8 583 // mother volume
584 GReal_t par[3];
585 par[0] = dimensions.X();
586 par[1] = dimensions.Y();
587 par[2] = TotalHzPlane();
588 gMC->Gsvolu(name,"BOX",idAir,par,3);
589
590 // foam layer
591 GReal_t posX,posY,posZ;
592 char eName[5];
593 strcpy(eName,name);
594 eName[3]=fgkFoamLayerSuffix;
595 par[0] = dimensions.X();
596 par[1] = dimensions.Y();
597 par[2] = fgkHzFoam;
598 gMC->Gsvolu(eName,"BOX",idFoam,par,3);
599 posX=0.;
600 posY=0.;
601 posZ = -TotalHzPlane() + fgkHzFoam;
602 gMC->Gspos(eName,1,name,posX,posY,posZ,0,"ONLY");
ba030c0e 603
5f91c9e8 604 // mechanical plane FR4 layer
605 eName[3]='R';
606 par[0] = dimensions.X();
607 par[1] = dimensions.Y();
608 par[2] = fgkHzFR4;
609 gMC->Gsvolu(eName,"BOX",idFR4,par,3);
610 posX=0.;
611 posY=0.;
612 posZ = -TotalHzPlane()+ 2.*fgkHzFoam + fgkHzFR4;
613 gMC->Gspos(eName,1,name,posX,posY,posZ,0,"ONLY");
614}
ba030c0e 615
5f91c9e8 616//______________________________________________________________________________
d1cd2474 617void AliMUONSt1GeometryBuilderV2::CreatePlaneSegment(const char* name,const TVector2& dimensions,
5f91c9e8 618 Int_t nofHoles)
619{
620// Create a segment of a plane (this includes a foam layer,
621// holes in the foam to feed the kaptons through, kapton connectors
622// and the mother board.)
623// --
ba030c0e 624
5f91c9e8 625 CreateFoamBox(name,dimensions);
ba030c0e 626
5f91c9e8 627 char eName[5];
628 strcpy(eName,name);
629 eName[3]=fgkFoamLayerSuffix;
ba030c0e 630
5f91c9e8 631 for (Int_t holeNum=0;holeNum<nofHoles;holeNum++) {
632 GReal_t posX = ((2.*holeNum+1.)/nofHoles-1.)*dimensions.X();
633 GReal_t posY = 0.;
634 GReal_t posZ = 0.;
ba030c0e 635
5f91c9e8 636 gMC->Gspos(fgkHoleName,holeNum+1,eName,posX,posY,posZ,0,"ONLY");
637 }
ba030c0e 638}
639
5f91c9e8 640//______________________________________________________________________________
d1cd2474 641void AliMUONSt1GeometryBuilderV2::CreateFrame(Int_t chamber)
ba030c0e 642{
643// Create the non-sensitive elements of the frame for the <chamber>
5f91c9e8 644//
645//
646// Model and notation:
647//
648// The Quadrant volume name starts with SQ
649// The volume segments are numbered 00 to XX.
650//
651// OutTopFrame
652// (SQ02-16)
653// ------------
654// OutEdgeFrame / |
655// (SQ17-24) / | InVFrame (SQ00-01)
656// / |
657// | |
658// OutVFrame | _- -
659// (SQ25-39) | | InArcFrame (SQ42-45)
660// | |
661// -------------
662// InHFrame (SQ40-41)
663//
664//
665// 06 February 2003 - Overlapping volumes resolved.
666// One quarter chamber is comprised of three TUBS volumes: SQMx, SQNx, and SQFx,
667// where SQMx is the Quadrant Middle layer for chamber <x> ( posZ in [-3.25,3.25]),
668// SQNx is the Quadrant Near side layer for chamber <x> ( posZ in [-6.25,3-.25) ), and
669// SQFx is the Quadrant Far side layer for chamber <x> ( posZ in (3.25,6.25] ).
670//---
ba030c0e 671
d1cd2474 672 const Float_t kNearFarLHC=2.4; // Near and Far TUBS Origin wrt LHC Origin
ba030c0e 673
ba030c0e 674 // tracking medias
d1cd2474 675 Int_t* idtmed = fMUON->GetIdtmed()->GetArray()-1099;
5f91c9e8 676
ba030c0e 677 Int_t idAir = idtmed[1100]; // medium 1
d1cd2474 678 //Int_t idFrameEpoxy = idtmed[1115]; // medium 16 = Frame Epoxy ME730
679 //Int_t idInox = idtmed[1116]; // medium 17 Stainless Steel (18%Cr,9%Ni,Fe)
680 //Int_t idFR4 = idtmed[1110]; // medium 11 FR4
681 //Int_t idCopper = idtmed[1109]; // medium 10 Copper
682 //Int_t idAlu = idtmed[1103]; // medium 4 Aluminium
683 Int_t idFrameEpoxy = idtmed[1123]; // medium 24 = Frame Epoxy ME730 // was 20 not 16
684 Int_t idInox = idtmed[1128]; // medium 29 Stainless Steel (18%Cr,9%Ni,Fe) // was 21 not 17
685 Int_t idFR4 = idtmed[1122]; // medium 23 FR4 // was 15 not 11
686 Int_t idCopper = idtmed[1121]; // medium 22 Copper
687 Int_t idAlu = idtmed[1120]; // medium 21 Aluminium
5f91c9e8 688
689
690// Rotation Matrices
691 Int_t rot1, rot2, rot3;
692
693// Rotation matrices
d1cd2474 694 fMUON->AliMatrix(rot1, 90., 90., 90., 180., 0., 0.); // +90 deg in x-y plane
695 fMUON->AliMatrix(rot2, 90., 45., 90., 135., 0., 0.); // +45 deg in x-y plane
696 fMUON->AliMatrix(rot3, 90., 45., 90., 315.,180., 0.); // +45 deg in x-y + rotation 180° around y
5f91c9e8 697
698// Translation matrices ... NOT USED
d1cd2474 699// fMUON->AliMatrix(trans1, 90., 0., 90., 90., 0., 0.); // X-> X; Y -> Y; Z -> Z
700// fMUON->AliMatrix(trans2, 90., 180., 90., 90., 180., 0.); // X->-X; Y -> Y; Z ->-Z
701// fMUON->AliMatrix(trans3, 90., 180., 90., 270., 0., 0.); // X->-X; Y ->-Y; Z -> Z
702// fMUON->AliMatrix(trans4, 90., 0., 90., 270., 180., 0.); // X-> X; Y ->-Y; Z ->-Z
ba030c0e 703//
5f91c9e8 704 // ___________________Volume thicknesses________________________
ba030c0e 705
d1cd2474 706 const Float_t kHzFrameThickness = 1.59/2.; //equivalent thickness
707 const Float_t kHzOuterFrameEpoxy = 1.19/2.; //equivalent thickness
708 const Float_t kHzOuterFrameInox = 0.1/2.; //equivalent thickness
709 const Float_t kHzFoam = 2.083/2.; //evaluated elsewhere
710 // CHECK with fgkHzFoam
5f91c9e8 711
712// Pertaining to the top outer area
d1cd2474 713 const Float_t kHzTopAnodeSteel1 = 0.185/2.; //equivalent thickness
714 const Float_t kHzTopAnodeSteel2 = 0.51/2.; //equivalent thickness
715 const Float_t kHzAnodeFR4 = 0.08/2.; //equivalent thickness
716 const Float_t kHzTopEarthFaceCu = 0.364/2.; //equivalent thickness
717 const Float_t kHzTopEarthProfileCu = 1.1/2.; //equivalent thickness
718 const Float_t kHzTopPositionerSteel = 1.45/2.; //should really be 2.125/2.;
719 const Float_t kHzTopGasSupportAl = 0.85/2.; //equivalent thickness
5f91c9e8 720
721// Pertaining to the vertical outer area
d1cd2474 722 const Float_t kHzVerticalCradleAl = 0.8/2.; //equivalent thickness
723 const Float_t kHzLateralSightAl = 0.975/2.; //equivalent thickness
724 const Float_t kHzLateralPosnInoxFace = 2.125/2.;//equivalent thickness
725 const Float_t kHzLatPosInoxProfM = 6.4/2.; //equivalent thickness
726 const Float_t kHzLatPosInoxProfNF = 1.45/2.; //equivalent thickness
727 const Float_t kHzLateralPosnAl = 0.5/2.; //equivalent thickness
728 const Float_t kHzVertEarthFaceCu = 0.367/2.; //equivalent thickness
729 const Float_t kHzVertBarSteel = 0.198/2.; //equivalent thickness
730 const Float_t kHzVertEarthProfCu = 1.1/2.; //equivalent thickness
5f91c9e8 731
732 //_______________Parameter definitions in sequence _________
733
734// InVFrame parameters
d1cd2474 735 const Float_t kHxInVFrame = 1.85/2.;
736 const Float_t kHyInVFrame = 73.95/2.;
737 const Float_t kHzInVFrame = kHzFrameThickness;
ba030c0e 738
5f91c9e8 739//Flat 7.5mm vertical section
d1cd2474 740 const Float_t kHxV1mm = 0.75/2.;
741 const Float_t kHyV1mm = 1.85/2.;
742 const Float_t kHzV1mm = kHzFrameThickness;
ba030c0e 743
5f91c9e8 744// OuterTopFrame Structure
745//
746// FRAME
747// The frame is composed of a cuboid and two trapezoids
748// (TopFrameAnode, TopFrameAnodeA, TopFrameAnodeB).
749// Each shape is composed of two layers (Epoxy and Inox) and
750// takes the frame's inner anode circuitry into account in the material budget.
751//
752// ANODE
753// The overhanging anode part is composed froma cuboid and two trapezoids
754// (TopAnode, TopAnode1, and TopAnode2). These surfaces neglect implanted
755// resistors, but accounts for the major Cu, Pb/Sn, and FR4 material
756// contributions.
757// The stainless steel anode supports have been included.
758//
759// EARTHING (TopEarthFace, TopEarthProfile)
760// Al GAS SUPPORT (TopGasSupport)
761//
762// ALIGNMENT (TopPositioner) - Alignment system, three sights per quarter
763// chamber. This sight is forseen for the alignment of the horizontal level
764// (parallel to the OY axis of LHC). Its position will be evaluated relative
765// to a system of sights places on the cradles;
766//
767//---
ba030c0e 768
5f91c9e8 769//TopFrameAnode parameters - cuboid, 2 layers
d1cd2474 770 const Float_t kHxTFA = 34.1433/2.;
771 const Float_t kHyTFA = 7.75/2.;
772 const Float_t kHzTFAE = kHzOuterFrameEpoxy; // layer 1 thickness
773 const Float_t kHzTFAI = kHzOuterFrameInox; // layer 3 thickness
ba030c0e 774
5f91c9e8 775// TopFrameAnodeA parameters - trapezoid, 2 layers
d1cd2474 776 const Float_t kHzFAAE = kHzOuterFrameEpoxy; // layer 1 thickness
777 const Float_t kHzFAAI = kHzOuterFrameInox; // layer 3 thickness
778 const Float_t kTetFAA = 0.;
779 const Float_t kPhiFAA = 0.;
780 const Float_t kH1FAA = 8.7/2.;
781 const Float_t kBl1FAA = 4.35/2.;
782 const Float_t kTl1FAA = 7.75/2.;
783 const Float_t kAlp1FAA = 11.06;
784 const Float_t kH2FAA = 8.7/2.;
785 const Float_t kBl2FAA = 4.35/2.;
786 const Float_t kTl2FAA = 7.75/2.;
787 const Float_t kAlp2FAA = 11.06;
ba030c0e 788
5f91c9e8 789// TopFrameAnodeB parameters - trapezoid, 2 layers
d1cd2474 790 const Float_t kHzFABE = kHzOuterFrameEpoxy; // layer 1 thickness
791 const Float_t kHzFABI = kHzOuterFrameInox; // layer 3 thickness
792 const Float_t kTetFAB = 0.;
793 const Float_t kPhiFAB = 0.;
794 const Float_t kH1FAB = 8.70/2.;
795 const Float_t kBl1FAB = 0.;
796 const Float_t kTl1FAB = 4.35/2.;
797 const Float_t kAlp1FAB = 14.03;
798 const Float_t kH2FAB = 8.70/2.;
799 const Float_t kBl2FAB = 0.;
800 const Float_t kTl2FAB = 4.35/2.;
801 const Float_t kAlp2FAB = 14.03;
ba030c0e 802
5f91c9e8 803// TopAnode parameters - cuboid (part 1 of 3 parts)
d1cd2474 804 const Float_t kHxTA1 = 16.2/2.;
805 const Float_t kHyTA1 = 3.5/2.;
806 const Float_t kHzTA11 = kHzTopAnodeSteel1; // layer 1
807 const Float_t kHzTA12 = kHzAnodeFR4; // layer 2
5f91c9e8 808
809// TopAnode parameters - trapezoid 1 (part 2 of 3 parts)
d1cd2474 810 const Float_t kHzTA21 = kHzTopAnodeSteel2; // layer 1
811 const Float_t kHzTA22 = kHzAnodeFR4; // layer 2
812 const Float_t kTetTA2 = 0.;
813 const Float_t kPhiTA2= 0.;
814 const Float_t kH1TA2 = 7.268/2.;
815 const Float_t kBl1TA2 = 2.03/2.;
816 const Float_t kTl1TA2 = 3.5/2.;
817 const Float_t kAlp1TA2 = 5.78;
818 const Float_t kH2TA2 = 7.268/2.;
819 const Float_t kBl2TA2 = 2.03/2.;
820 const Float_t kTl2TA2 = 3.5/2.;
821 const Float_t kAlp2TA2 = 5.78;
5f91c9e8 822
823// TopAnode parameters - trapezoid 2 (part 3 of 3 parts)
d1cd2474 824 const Float_t kHzTA3 = kHzAnodeFR4; // layer 1
825 const Float_t kTetTA3 = 0.;
826 const Float_t kPhiTA3 = 0.;
827 const Float_t kH1TA3 = 7.268/2.;
828 const Float_t kBl1TA3 = 0.;
829 const Float_t kTl1TA3 = 2.03/2.;
830 const Float_t kAlp1TA3 = 7.95;
831 const Float_t kH2TA3 = 7.268/2.;
832 const Float_t kBl2TA3 = 0.;
833 const Float_t kTl2TA3 = 2.03/2.;
834 const Float_t kAlp2TA3 = 7.95;
ba030c0e 835
5f91c9e8 836// TopEarthFace parameters - single trapezoid
d1cd2474 837 const Float_t kHzTEF = kHzTopEarthFaceCu;
838 const Float_t kTetTEF = 0.;
839 const Float_t kPhiTEF = 0.;
840 const Float_t kH1TEF = 1.200/2.;
841 const Float_t kBl1TEF = 21.323/2.;
842 const Float_t kTl1TEF = 17.963/2.;
843 const Float_t kAlp1TEF = -54.46;
844 const Float_t kH2TEF = 1.200/2.;
845 const Float_t kBl2TEF = 21.323/2.;
846 const Float_t kTl2TEF = 17.963/2.;
847 const Float_t kAlp2TEF = -54.46;
5f91c9e8 848
849// TopEarthProfile parameters - single trapezoid
d1cd2474 850 const Float_t kHzTEP = kHzTopEarthProfileCu;
851 const Float_t kTetTEP = 0.;
852 const Float_t kPhiTEP = 0.;
853 const Float_t kH1TEP = 0.40/2.;
854 const Float_t kBl1TEP = 31.766/2.;
855 const Float_t kTl1TEP = 30.535/2.;
856 const Float_t kAlp1TEP = -56.98;
857 const Float_t kH2TEP = 0.40/2.;
858 const Float_t kBl2TEP = 31.766/2.;
859 const Float_t kTl2TEP = 30.535/2.;
860 const Float_t kAlp2TEP = -56.98;
5f91c9e8 861
862// TopPositioner parameters - single Stainless Steel trapezoid
d1cd2474 863 const Float_t kHzTP = kHzTopPositionerSteel;
864 const Float_t kTetTP = 0.;
865 const Float_t kPhiTP = 0.;
866 const Float_t kH1TP = 3.00/2.;
867 const Float_t kBl1TP = 7.023/2.;
868 const Float_t kTl1TP = 7.314/2.;
869 const Float_t kAlp1TP = 2.78;
870 const Float_t kH2TP = 3.00/2.;
871 const Float_t kBl2TP = 7.023/2.;
872 const Float_t kTl2TP = 7.314/2.;
873 const Float_t kAlp2TP = 2.78;
5f91c9e8 874
875// TopGasSupport parameters - single cuboid
d1cd2474 876 const Float_t kHxTGS = 8.50/2.;
877 const Float_t kHyTGS = 3.00/2.;
878 const Float_t kHzTGS = kHzTopGasSupportAl;
5f91c9e8 879
880// OutEdgeFrame parameters - 4 trapezoidal sections, 2 layers of material
881//
882//---
883
884// Trapezoid 1
d1cd2474 885 const Float_t kHzOETFE = kHzOuterFrameEpoxy; // layer 1
886 const Float_t kHzOETFI = kHzOuterFrameInox; // layer 3
ba030c0e 887
d1cd2474 888 const Float_t kTetOETF = 0.; // common to all 4 trapezoids
889 const Float_t kPhiOETF = 0.; // common to all 4 trapezoids
5f91c9e8 890
d1cd2474 891 const Float_t kH1OETF = 7.196/2.; // common to all 4 trapezoids
892 const Float_t kH2OETF = 7.196/2.; // common to all 4 trapezoids
5f91c9e8 893
d1cd2474 894 const Float_t kBl1OETF1 = 3.75/2;
895 const Float_t kTl1OETF1 = 3.996/2.;
896 const Float_t kAlp1OETF1 = 0.98;
5f91c9e8 897
d1cd2474 898 const Float_t kBl2OETF1 = 3.75/2;
899 const Float_t kTl2OETF1 = 3.996/2.;
900 const Float_t kAlp2OETF1 = 0.98;
5f91c9e8 901
902// Trapezoid 2
d1cd2474 903 const Float_t kBl1OETF2 = 3.01/2.;
904 const Float_t kTl1OETF2 = 3.75/2;
905 const Float_t kAlp1OETF2 = 2.94;
5f91c9e8 906
d1cd2474 907 const Float_t kBl2OETF2 = 3.01/2.;
908 const Float_t kTl2OETF2 = 3.75/2;
909 const Float_t kAlp2OETF2 = 2.94;
5f91c9e8 910
911// Trapezoid 3
b367fd8f 912 //const Float_t kBl1OETF3 = 1.767/2.;
913 //const Float_t kTl1OETF3 = 3.01/2.;
914 const Float_t kBl1OETF3 = 1.117/2.;
915 const Float_t kTl1OETF3 = 2.36/2.;
d1cd2474 916 const Float_t kAlp1OETF3 = 4.94;
b367fd8f 917 // Fix (5) - overlap of SQ21 with 041M and 125M
ba030c0e 918
b367fd8f 919 //const Float_t kBl2OETF3 = 1.767/2.;
920 //const Float_t kTl2OETF3 = 3.01/2.;
921 const Float_t kBl2OETF3 = 1.117/2.;
922 const Float_t kTl2OETF3 = 2.36/2.;
d1cd2474 923 const Float_t kAlp2OETF3 = 4.94;
b367fd8f 924 // Fix (5) - overlap of SQ21 with 041M and 125M
ba030c0e 925
5f91c9e8 926// Trapezoid 4
d1cd2474 927 const Float_t kBl1OETF4 = 0.;
928 const Float_t kTl1OETF4 = 1.77/2.;
929 const Float_t kAlp1OETF4 = 7.01;
ba030c0e 930
d1cd2474 931 const Float_t kBl2OETF4 = 0.;
932 const Float_t kTl2OETF4 = 1.77/2.;
933 const Float_t kAlp2OETF4 = 7.01;
5f91c9e8 934
935// Frame Structure (OutVFrame):
936//
937// OutVFrame and corner (OutVFrame cuboid, OutVFrame trapezoid)
938// EARTHING (VertEarthFaceCu,VertEarthSteel,VertEarthProfCu),
939// DETECTOR POSITIONNING (SuppLateralPositionner, LateralPositionner),
940// CRADLE (VertCradle), and
941// ALIGNMENT (LateralSightSupport, LateralSight)
942//
943//---
944
945// OutVFrame parameters - cuboid
d1cd2474 946 const Float_t kHxOutVFrame = 1.85/2.;
947 const Float_t kHyOutVFrame = 46.23/2.;
948 const Float_t kHzOutVFrame = kHzFrameThickness;
5f91c9e8 949
950// OutVFrame corner parameters - trapezoid
d1cd2474 951 const Float_t kHzOCTF = kHzFrameThickness;
952 const Float_t kTetOCTF = 0.;
953 const Float_t kPhiOCTF = 0.;
954 const Float_t kH1OCTF = 1.85/2.;
955 const Float_t kBl1OCTF = 0.;
956 const Float_t kTl1OCTF = 3.66/2.;
957 const Float_t kAlp1OCTF = 44.67;
958 const Float_t kH2OCTF = 1.85/2.;
959 const Float_t kBl2OCTF = 0.;
960 const Float_t kTl2OCTF = 3.66/2.;
961 const Float_t kAlp2OCTF = 44.67;
5f91c9e8 962
963// VertEarthFaceCu parameters - single trapezoid
d1cd2474 964 const Float_t kHzVFC = kHzVertEarthFaceCu;
965 const Float_t kTetVFC = 0.;
966 const Float_t kPhiVFC = 0.;
967 const Float_t kH1VFC = 1.200/2.;
968 const Float_t kBl1VFC = 46.11/2.;
969 const Float_t kTl1VFC = 48.236/2.;
970 const Float_t kAlp1VFC = 41.54;
971 const Float_t kH2VFC = 1.200/2.;
972 const Float_t kBl2VFC = 46.11/2.;
973 const Float_t kTl2VFC = 48.236/2.;
974 const Float_t kAlp2VFC = 41.54;
5f91c9e8 975
976// VertEarthSteel parameters - single trapezoid
d1cd2474 977 const Float_t kHzVES = kHzVertBarSteel;
978 const Float_t kTetVES = 0.;
979 const Float_t kPhiVES = 0.;
980 const Float_t kH1VES = 1.200/2.;
981 const Float_t kBl1VES = 30.486/2.;
982 const Float_t kTl1VES = 32.777/2.;
983 const Float_t kAlp1VES = 43.67;
984 const Float_t kH2VES = 1.200/2.;
985 const Float_t kBl2VES = 30.486/2.;
986 const Float_t kTl2VES = 32.777/2.;
987 const Float_t kAlp2VES = 43.67;
5f91c9e8 988
989// VertEarthProfCu parameters - single trapezoid
d1cd2474 990 const Float_t kHzVPC = kHzVertEarthProfCu;
991 const Float_t kTetVPC = 0.;
992 const Float_t kPhiVPC = 0.;
993 const Float_t kH1VPC = 0.400/2.;
994 const Float_t kBl1VPC = 29.287/2.;
995 const Float_t kTl1VPC = 30.091/2.;
996 const Float_t kAlp1VPC = 45.14;
997 const Float_t kH2VPC = 0.400/2.;
998 const Float_t kBl2VPC = 29.287/2.;
999 const Float_t kTl2VPC = 30.091/2.;
1000 const Float_t kAlp2VPC = 45.14;
5f91c9e8 1001
1002// SuppLateralPositionner - single cuboid
d1cd2474 1003 const Float_t kHxSLP = 2.80/2.;
1004 const Float_t kHySLP = 5.00/2.;
1005 const Float_t kHzSLP = kHzLateralPosnAl;
5f91c9e8 1006
1007// LateralPositionner - squared off U bend, face view
d1cd2474 1008 const Float_t kHxLPF = 5.2/2.;
1009 const Float_t kHyLPF = 3.0/2.;
1010 const Float_t kHzLPF = kHzLateralPosnInoxFace;
5f91c9e8 1011
1012// LateralPositionner - squared off U bend, profile view
d1cd2474 1013 const Float_t kHxLPP = 0.425/2.;
1014 const Float_t kHyLPP = 3.0/2.;
1015 const Float_t kHzLPP = kHzLatPosInoxProfM; // middle layer
1016 const Float_t kHzLPNF = kHzLatPosInoxProfNF; // near and far layers
5f91c9e8 1017
1018// VertCradle, 3 layers (copies), each composed of 4 trapezoids
1019// VertCradleA
d1cd2474 1020 const Float_t kHzVC1 = kHzVerticalCradleAl;
1021 const Float_t kTetVC1 = 0.;
1022 const Float_t kPhiVC1 = 0.;
1023 const Float_t kH1VC1 = 10.25/2.;
1024 const Float_t kBl1VC1 = 3.70/2.;
1025 const Float_t kTl1VC1 = 0.;
1026 const Float_t kAlp1VC1 = -10.23;
1027 const Float_t kH2VC1 = 10.25/2.;
1028 const Float_t kBl2VC1 = 3.70/2.;
1029 const Float_t kTl2VC1 = 0.;
1030 const Float_t kAlp2VC1 = -10.23;
5f91c9e8 1031
1032// VertCradleB
d1cd2474 1033 const Float_t kHzVC2 = kHzVerticalCradleAl;
1034 const Float_t kTetVC2 = 0.;
1035 const Float_t kPhiVC2 = 0.;
1036 const Float_t kH1VC2 = 10.25/2.;
1037 const Float_t kBl1VC2 = 6.266/2.;
1038 const Float_t kTl1VC2 = 3.70/2.;
1039 const Float_t kAlp1VC2 = -7.13;
1040 const Float_t kH2VC2 = 10.25/2.;
1041 const Float_t kBl2VC2 = 6.266/2.;
1042 const Float_t kTl2VC2 = 3.70/2.;
1043 const Float_t kAlp2VC2 = -7.13;
5f91c9e8 1044
1045// VertCradleC
d1cd2474 1046 const Float_t kHzVC3 = kHzVerticalCradleAl;
1047 const Float_t kTetVC3 = 0.;
1048 const Float_t kPhiVC3 = 0.;
1049 const Float_t kH1VC3 = 10.25/2.;
1050 const Float_t kBl1VC3 = 7.75/2.;
1051 const Float_t kTl1VC3 = 6.266/2.;
1052 const Float_t kAlp1VC3 = -4.14;
1053 const Float_t kH2VC3 = 10.25/2.;
1054 const Float_t kBl2VC3 = 7.75/2.;
1055 const Float_t kTl2VC3 = 6.266/2.;
1056 const Float_t kAlp2VC3 = -4.14;
5f91c9e8 1057
1058// VertCradleD
d1cd2474 1059 const Float_t kHzVC4 = kHzVerticalCradleAl;
1060 const Float_t kTetVC4 = 0.;
1061 const Float_t kPhiVC4 = 0.;
1062 const Float_t kH1VC4 = 10.27/2.;
1063 const Float_t kBl1VC4 = 8.273/2.;
1064 const Float_t kTl1VC4 = 7.75/2.;
1065 const Float_t kAlp1VC4 = -1.46;
1066 const Float_t kH2VC4 = 10.27/2.;
1067 const Float_t kBl2VC4 = 8.273/2.;
1068 const Float_t kTl2VC4 = 7.75/2.;
1069 const Float_t kAlp2VC4 = -1.46;
5f91c9e8 1070
1071// LateralSightSupport - single trapezoid
d1cd2474 1072 const Float_t kHzVSS = kHzLateralSightAl;
1073 const Float_t kTetVSS = 0.;
1074 const Float_t kPhiVSS = 0.;
1075 const Float_t kH1VSS = 5.00/2.;
1076 const Float_t kBl1VSS = 7.747/2;
1077 const Float_t kTl1VSS = 7.188/2.;
1078 const Float_t kAlp1VSS = -3.20;
1079 const Float_t kH2VSS = 5.00/2.;
1080 const Float_t kBl2VSS = 7.747/2.;
1081 const Float_t kTl2VSS = 7.188/2.;
1082 const Float_t kAlp2VSS = -3.20;
5f91c9e8 1083
1084// LateralSight (reference point) - 3 per quadrant, only 1 programmed for now
d1cd2474 1085 const Float_t kVSInRad = 0.6;
1086 const Float_t kVSOutRad = 1.3;
1087 const Float_t kVSLen = kHzFrameThickness;
5f91c9e8 1088
1089//---
ba030c0e 1090
5f91c9e8 1091// InHFrame parameters
d1cd2474 1092 const Float_t kHxInHFrame = 75.8/2.;
1093 const Float_t kHyInHFrame = 1.85/2.;
1094 const Float_t kHzInHFrame = kHzFrameThickness;
5f91c9e8 1095
1096//Flat 7.5mm horizontal section
d1cd2474 1097 const Float_t kHxH1mm = 1.85/2.;
1098 const Float_t kHyH1mm = 0.75/2.;
1099 const Float_t kHzH1mm = kHzFrameThickness;
ba030c0e 1100
5f91c9e8 1101//---
ba030c0e 1102
5f91c9e8 1103// InArcFrame parameters
d1cd2474 1104 const Float_t kIAF = 15.70;
1105 const Float_t kOAF = 17.55;
1106 const Float_t kHzAF = kHzFrameThickness;
1107 const Float_t kAFphi1 = 0.0;
1108 const Float_t kAFphi2 = 90.0;
ba030c0e 1109
5f91c9e8 1110//---
ba030c0e 1111
5f91c9e8 1112// ScrewsInFrame parameters HEAD
d1cd2474 1113 const Float_t kSCRUHMI = 0.;
1114 const Float_t kSCRUHMA = 0.690/2.;
1115 const Float_t kSCRUHLE = 0.4/2.;
5f91c9e8 1116// ScrewsInFrame parameters MIDDLE
d1cd2474 1117 const Float_t kSCRUMMI = 0.;
1118 const Float_t kSCRUMMA = 0.39/2.;
1119 const Float_t kSCRUMLE = kHzFrameThickness;
5f91c9e8 1120// ScrewsInFrame parameters NUT
d1cd2474 1121 const Float_t kSCRUNMI = 0.;
1122 const Float_t kSCRUNMA = 0.78/2.;
1123 const Float_t kSCRUNLE = 0.8/2.;
5f91c9e8 1124
1125 // ___________________Make volumes________________________
ba030c0e 1126
5f91c9e8 1127 Float_t par[11];
1128 Float_t posX,posY,posZ;
ba030c0e 1129
5f91c9e8 1130// Quadrant volume TUBS1, positioned at the end
1131 par[0] = fgkMotherIR1;
1132 par[1] = fgkMotherOR1;
1133 par[2] = fgkMotherThick1;
1134 par[3] = fgkMotherPhiL1;
1135 par[4] = fgkMotherPhiU1;
1136 gMC->Gsvolu(QuadrantMLayerName(chamber),"TUBS",idAir,par,5);
ba030c0e 1137
5f91c9e8 1138// Quadrant volume TUBS2, positioned at the end
1139 par[0] = fgkMotherIR2;
1140 par[1] = fgkMotherOR2;
1141 par[2] = fgkMotherThick2;
1142 par[3] = fgkMotherPhiL2;
1143 par[4] = fgkMotherPhiU2;
ba030c0e 1144
5f91c9e8 1145 gMC->Gsvolu(QuadrantNLayerName(chamber),"TUBS",idAir,par,5);
1146 gMC->Gsvolu(QuadrantFLayerName(chamber),"TUBS",idAir,par,5);
ba030c0e 1147
5f91c9e8 1148 if (chamber==1) {
1149 // InVFrame
d1cd2474 1150 par[0] = kHxInVFrame;
1151 par[1] = kHyInVFrame;
1152 par[2] = kHzInVFrame;
5f91c9e8 1153 gMC->Gsvolu("SQ00","BOX",idFrameEpoxy,par,3);
1154
1155 //Flat 1mm vertical section
d1cd2474 1156 par[0] = kHxV1mm;
1157 par[1] = kHyV1mm;
1158 par[2] = kHzV1mm;
5f91c9e8 1159 gMC->Gsvolu("SQ01","BOX",idFrameEpoxy,par,3);
1160
1161// OutTopFrame
1162//
1163// - 3 components (a cuboid and 2 trapezes) and 2 layers (Epoxy/Inox)
1164//
1165//---
ba030c0e 1166
5f91c9e8 1167 // TopFrameAnode - layer 1 of 2
d1cd2474 1168 par[0] = kHxTFA;
1169 par[1] = kHyTFA;
1170 par[2] = kHzTFAE;
5f91c9e8 1171 gMC->Gsvolu("SQ02","BOX",idFrameEpoxy,par,3);
1172
1173 // TopFrameAnode - layer 2 of 2
d1cd2474 1174 par[2] = kHzTFAI;
5f91c9e8 1175 gMC->Gsvolu("SQ03","BOX",idInox,par,3);
1176
1177 // TopFrameAnodeA - layer 1 of 2
d1cd2474 1178 par[0] = kHzFAAE;
1179 par[1] = kTetFAA;
1180 par[2] = kPhiFAA;
1181 par[3] = kH1FAA;
1182 par[4] = kBl1FAA;
1183 par[5] = kTl1FAA;
1184 par[6] = kAlp1FAA;
1185 par[7] = kH2FAA;
1186 par[8] = kBl2FAA;
1187 par[9] = kTl2FAA;
1188 par[10] = kAlp2FAA;
5f91c9e8 1189 gMC->Gsvolu("SQ04","TRAP",idFrameEpoxy,par,11);
1190
1191 // TopFrameAnodeA - layer 2 of 2
d1cd2474 1192 par[0] = kHzFAAI;
5f91c9e8 1193 gMC->Gsvolu("SQ05","TRAP",idInox,par,11);
ba030c0e 1194
5f91c9e8 1195 // TopFrameAnodeB - layer 1 of 2
d1cd2474 1196 par[0] = kHzFABE;
1197 par[1] = kTetFAB;
1198 par[2] = kPhiFAB;
1199 par[3] = kH1FAB;
1200 par[4] = kBl1FAB;
1201 par[5] = kTl1FAB;
1202 par[6] = kAlp1FAB;
1203 par[7] = kH2FAB;
1204 par[8] = kBl2FAB;
1205 par[9] = kTl2FAB;
1206 par[10] = kAlp2FAB;
5f91c9e8 1207 gMC->Gsvolu("SQ06","TRAP",idFrameEpoxy,par,11);
1208
1209 // OutTopTrapFrameB - layer 2 of 2
d1cd2474 1210 par[0] = kHzFABI;
5f91c9e8 1211 gMC->Gsvolu("SQ07","TRAP",idInox,par,11);
1212
1213 // TopAnode1 - layer 1 of 2
d1cd2474 1214 par[0] = kHxTA1;
1215 par[1] = kHyTA1;
1216 par[2] = kHzTA11;
5f91c9e8 1217 gMC->Gsvolu("SQ08","BOX",idInox,par,3);
1218
1219 // TopAnode1 - layer 2 of 2
d1cd2474 1220 par[2] = kHzTA12;
5f91c9e8 1221 gMC->Gsvolu("SQ09","BOX",idFR4,par,11);
1222
1223 // TopAnode2 - layer 1 of 2
d1cd2474 1224 par[0] = kHzTA21;
1225 par[1] = kTetTA2;
1226 par[2] = kPhiTA2;
1227 par[3] = kH1TA2;
1228 par[4] = kBl1TA2;
1229 par[5] = kTl1TA2;
1230 par[6] = kAlp1TA2;
1231 par[7] = kH2TA2;
1232 par[8] = kBl2TA2;
1233 par[9] = kTl2TA2;
1234 par[10] = kAlp2TA2;
5f91c9e8 1235 gMC->Gsvolu("SQ10","TRAP",idInox,par,11);
1236
1237 // TopAnode2 - layer 2 of 2
d1cd2474 1238 par[0] = kHzTA22;
5f91c9e8 1239 gMC->Gsvolu("SQ11","TRAP",idFR4,par,11);
1240
1241 // TopAnode3 - layer 1 of 1
d1cd2474 1242 par[0] = kHzTA3;
1243 par[1] = kTetTA3;
1244 par[2] = kPhiTA3;
1245 par[3] = kH1TA3;
1246 par[4] = kBl1TA3;
1247 par[5] = kTl1TA3;
1248 par[6] = kAlp1TA3;
1249 par[7] = kH2TA3;
1250 par[8] = kBl2TA3;
1251 par[9] = kTl2TA3;
1252 par[10] = kAlp2TA3;
5f91c9e8 1253 gMC->Gsvolu("SQ12","TRAP",idFR4,par,11);
1254
1255 // TopEarthFace
d1cd2474 1256 par[0] = kHzTEF;
1257 par[1] = kTetTEF;
1258 par[2] = kPhiTEF;
1259 par[3] = kH1TEF;
1260 par[4] = kBl1TEF;
1261 par[5] = kTl1TEF;
1262 par[6] = kAlp1TEF;
1263 par[7] = kH2TEF;
1264 par[8] = kBl2TEF;
1265 par[9] = kTl2TEF;
1266 par[10] = kAlp2TEF;
5f91c9e8 1267 gMC->Gsvolu("SQ13","TRAP",idCopper,par,11);
1268
1269 // TopEarthProfile
d1cd2474 1270 par[0] = kHzTEP;
1271 par[1] = kTetTEP;
1272 par[2] = kPhiTEP;
1273 par[3] = kH1TEP;
1274 par[4] = kBl1TEP;
1275 par[5] = kTl1TEP;
1276 par[6] = kAlp1TEP;
1277 par[7] = kH2TEP;
1278 par[8] = kBl2TEP;
1279 par[9] = kTl2TEP;
1280 par[10] = kAlp2TEP;
5f91c9e8 1281 gMC->Gsvolu("SQ14","TRAP",idCopper,par,11);
1282
1283 // TopGasSupport
d1cd2474 1284 par[0] = kHxTGS;
1285 par[1] = kHyTGS;
1286 par[2] = kHzTGS;
5f91c9e8 1287 gMC->Gsvolu("SQ15","BOX",idAlu,par,3);
1288
1289 // TopPositioner parameters - single Stainless Steel trapezoid
d1cd2474 1290 par[0] = kHzTP;
1291 par[1] = kTetTP;
1292 par[2] = kPhiTP;
1293 par[3] = kH1TP;
1294 par[4] = kBl1TP;
1295 par[5] = kTl1TP;
1296 par[6] = kAlp1TP;
1297 par[7] = kH2TP;
1298 par[8] = kBl2TP;
1299 par[9] = kTl2TP;
1300 par[10] = kAlp2TP;
5f91c9e8 1301 gMC->Gsvolu("SQ16","TRAP",idInox,par,11);
ba030c0e 1302
5f91c9e8 1303//
1304// OutEdgeTrapFrame Epoxy = (4 trapezes)*2 copies*2 layers (Epoxy/Inox)
1305//
1306//---
1307 // Trapezoid 1 - 2 layers
d1cd2474 1308 par[1] = kTetOETF;
1309 par[2] = kPhiOETF;
1310 par[3] = kH1OETF;
1311 par[4] = kBl1OETF1;
1312 par[5] = kTl1OETF1;
1313 par[6] = kAlp1OETF1;
1314 par[7] = kH2OETF;
1315 par[8] = kBl2OETF1;
1316 par[9] = kTl2OETF1;
1317 par[10] = kAlp2OETF1;
5f91c9e8 1318
d1cd2474 1319 par[0] = kHzOETFE;
5f91c9e8 1320 gMC->Gsvolu("SQ17","TRAP",idFrameEpoxy,par,11);
d1cd2474 1321 par[0] = kHzOETFI;
5f91c9e8 1322 gMC->Gsvolu("SQ18","TRAP",idInox,par,11);
1323
1324 // Trapezoid 2 - 2 layers
d1cd2474 1325 par[4] = kBl1OETF2;
1326 par[5] = kTl1OETF2;
1327 par[6] = kAlp1OETF2;
5f91c9e8 1328
d1cd2474 1329 par[8] = kBl2OETF2;
1330 par[9] = kTl2OETF2;
1331 par[10] = kAlp2OETF2;
5f91c9e8 1332
d1cd2474 1333 par[0] = kHzOETFE;
5f91c9e8 1334 gMC->Gsvolu("SQ19","TRAP",idFrameEpoxy,par,11);
d1cd2474 1335 par[0] = kHzOETFI;
5f91c9e8 1336 gMC->Gsvolu("SQ20","TRAP",idInox,par,11);
1337
1338 // Trapezoid 3 - 2 layers
d1cd2474 1339 par[4] = kBl1OETF3;
1340 par[5] = kTl1OETF3;
1341 par[6] = kAlp1OETF3;
5f91c9e8 1342
d1cd2474 1343 par[8] = kBl2OETF3;
1344 par[9] = kTl2OETF3;
1345 par[10] = kAlp2OETF3;
5f91c9e8 1346
d1cd2474 1347 par[0] = kHzOETFE;
5f91c9e8 1348 gMC->Gsvolu("SQ21","TRAP",idFrameEpoxy,par,11);
d1cd2474 1349 par[0] = kHzOETFI;
5f91c9e8 1350 gMC->Gsvolu("SQ22","TRAP",idInox,par,11);
1351
1352 // Trapezoid 4 - 2 layers
ba030c0e 1353
d1cd2474 1354 par[4] = kBl1OETF4;
1355 par[5] = kTl1OETF4;
1356 par[6] = kAlp1OETF4;
ba030c0e 1357
d1cd2474 1358 par[8] = kBl2OETF4;
1359 par[9] = kTl2OETF4;
1360 par[10] = kAlp2OETF4;
5f91c9e8 1361
d1cd2474 1362 par[0] = kHzOETFE;
5f91c9e8 1363 gMC->Gsvolu("SQ23","TRAP",idFrameEpoxy,par,11);
d1cd2474 1364 par[0] = kHzOETFI;
5f91c9e8 1365 gMC->Gsvolu("SQ24","TRAP",idInox,par,11);
ba030c0e 1366
5f91c9e8 1367//---
1368 // OutVFrame
d1cd2474 1369 par[0] = kHxOutVFrame;
1370 par[1] = kHyOutVFrame;
1371 par[2] = kHzOutVFrame;
5f91c9e8 1372 gMC->Gsvolu("SQ25","BOX",idFrameEpoxy,par,3);
d1cd2474 1373
5f91c9e8 1374 // OutVFrame corner
d1cd2474 1375 par[0] = kHzOCTF;
1376 par[1] = kTetOCTF;
1377 par[2] = kPhiOCTF;
1378 par[3] = kH1OCTF;
1379 par[4] = kBl1OCTF;
1380 par[5] = kTl1OCTF;
1381 par[6] = kAlp1OCTF;
1382 par[7] = kH2OCTF;
1383 par[8] = kBl2OCTF;
1384 par[9] = kTl2OCTF;
1385 par[10] = kAlp2OCTF;
5f91c9e8 1386 gMC->Gsvolu("SQ26","TRAP",idFrameEpoxy,par,11);
1387
1388 // EarthFaceCu trapezoid
d1cd2474 1389 par[0] = kHzVFC;
1390 par[1] = kTetVFC;
1391 par[2] = kPhiVFC;
1392 par[3] = kH1VFC;
1393 par[4] = kBl1VFC;
1394 par[5] = kTl1VFC;
1395 par[6] = kAlp1VFC;
1396 par[7] = kH2VFC;
1397 par[8] = kBl2VFC;
1398 par[9] = kTl2VFC;
1399 par[10] = kAlp2VFC;
5f91c9e8 1400 gMC->Gsvolu("SQ27","TRAP",idCopper,par,11);
1401
1402 // VertEarthSteel trapezoid
d1cd2474 1403 par[0] = kHzVES;
1404 par[1] = kTetVES;
1405 par[2] = kPhiVES;
1406 par[3] = kH1VES;
1407 par[4] = kBl1VES;
1408 par[5] = kTl1VES;
1409 par[6] = kAlp1VES;
1410 par[7] = kH2VES;
1411 par[8] = kBl2VES;
1412 par[9] = kTl2VES;
1413 par[10] = kAlp2VES;
5f91c9e8 1414 gMC->Gsvolu("SQ28","TRAP",idInox,par,11);
1415
1416 // VertEarthProfCu trapezoid
d1cd2474 1417 par[0] = kHzVPC;
1418 par[1] = kTetVPC;
1419 par[2] = kPhiVPC;
1420 par[3] = kH1VPC;
1421 par[4] = kBl1VPC;
1422 par[5] = kTl1VPC;
1423 par[6] = kAlp1VPC;
1424 par[7] = kH2VPC;
1425 par[8] = kBl2VPC;
1426 par[9] = kTl2VPC;
1427 par[10] = kAlp2VPC;
5f91c9e8 1428 gMC->Gsvolu("SQ29","TRAP",idCopper,par,11);
1429
1430 // SuppLateralPositionner cuboid
d1cd2474 1431 par[0] = kHxSLP;
1432 par[1] = kHySLP;
1433 par[2] = kHzSLP;
5f91c9e8 1434 gMC->Gsvolu("SQ30","BOX",idAlu,par,3);
1435
1436 // LateralPositionerFace
d1cd2474 1437 par[0] = kHxLPF;
1438 par[1] = kHyLPF;
1439 par[2] = kHzLPF;
5f91c9e8 1440 gMC->Gsvolu("SQ31","BOX",idInox,par,3);
1441
1442 // LateralPositionerProfile
d1cd2474 1443 par[0] = kHxLPP;
1444 par[1] = kHyLPP;
1445 par[2] = kHzLPP;
5f91c9e8 1446 gMC->Gsvolu("SQ32","BOX",idInox,par,3); // middle layer
1447
d1cd2474 1448 par[0] = kHxLPP;
1449 par[1] = kHyLPP;
1450 par[2] = kHzLPNF;
5f91c9e8 1451 gMC->Gsvolu("SQ33","BOX",idInox,par,3); // near and far layers
1452
1453 // VertCradleA - 1st trapezoid
d1cd2474 1454 par[0] = kHzVC1;
1455 par[1] = kTetVC1;
1456 par[2] = kPhiVC1;
1457 par[3] = kH1VC1;
1458 par[4] = kBl1VC1;
1459 par[5] = kTl1VC1;
1460 par[6] = kAlp1VC1;
1461 par[7] = kH2VC1;
1462 par[8] = kBl2VC1;
1463 par[9] = kTl2VC1;
1464 par[10] = kAlp2VC1;
5f91c9e8 1465 gMC->Gsvolu("SQ34","TRAP",idAlu,par,11);
ba030c0e 1466
5f91c9e8 1467 // VertCradleB - 2nd trapezoid
d1cd2474 1468 par[0] = kHzVC2;
1469 par[1] = kTetVC2;
1470 par[2] = kPhiVC2;
1471 par[3] = kH1VC2;
1472 par[4] = kBl1VC2;
1473 par[5] = kTl1VC2;
1474 par[6] = kAlp1VC2;
1475 par[7] = kH2VC2;
1476 par[8] = kBl2VC2;
1477 par[9] = kTl2VC2;
1478 par[10] = kAlp2VC2;
5f91c9e8 1479 gMC->Gsvolu("SQ35","TRAP",idAlu,par,11);
1480
1481 // VertCradleC - 3rd trapezoid
d1cd2474 1482 par[0] = kHzVC3;
1483 par[1] = kTetVC3;
1484 par[2] = kPhiVC3;
1485 par[3] = kH1VC3;
1486 par[4] = kBl1VC3;
1487 par[5] = kTl1VC3;
1488 par[6] = kAlp1VC3;
1489 par[7] = kH2VC3;
1490 par[8] = kBl2VC3;
1491 par[9] = kTl2VC3;
1492 par[10] = kAlp2VC3;
5f91c9e8 1493 gMC->Gsvolu("SQ36","TRAP",idAlu,par,11);
1494
1495 // VertCradleD - 4th trapezoid
d1cd2474 1496 par[0] = kHzVC4;
1497 par[1] = kTetVC4;
1498 par[2] = kPhiVC4;
1499 par[3] = kH1VC4;
1500 par[4] = kBl1VC4;
1501 par[5] = kTl1VC4;
1502 par[6] = kAlp1VC4;
1503 par[7] = kH2VC4;
1504 par[8] = kBl2VC4;
1505 par[9] = kTl2VC4;
1506 par[10] = kAlp2VC4;
5f91c9e8 1507 gMC->Gsvolu("SQ37","TRAP",idAlu,par,11);
1508
1509 // LateralSightSupport trapezoid
d1cd2474 1510 par[0] = kHzVSS;
1511 par[1] = kTetVSS;
1512 par[2] = kPhiVSS;
1513 par[3] = kH1VSS;
1514 par[4] = kBl1VSS;
1515 par[5] = kTl1VSS;
1516 par[6] = kAlp1VSS;
1517 par[7] = kH2VSS;
1518 par[8] = kBl2VSS;
1519 par[9] = kTl2VSS;
1520 par[10] = kAlp2VSS;
5f91c9e8 1521 gMC->Gsvolu("SQ38","TRAP",idAlu,par,11);
1522
1523 // LateralSight
d1cd2474 1524 par[0] = kVSInRad;
1525 par[1] = kVSOutRad;
1526 par[2] = kVSLen;
5f91c9e8 1527 gMC->Gsvolu("SQ39","TUBE",idFrameEpoxy,par,3);
1528
1529//---
1530 // InHFrame
d1cd2474 1531 par[0] = kHxInHFrame;
1532 par[1] = kHyInHFrame;
1533 par[2] = kHzInHFrame;
5f91c9e8 1534 gMC->Gsvolu("SQ40","BOX",idFrameEpoxy,par,3);
1535
1536 //Flat 7.5mm horizontal section
d1cd2474 1537 par[0] = kHxH1mm;
1538 par[1] = kHyH1mm;
1539 par[2] = kHzH1mm;
5f91c9e8 1540 gMC->Gsvolu("SQ41","BOX",idFrameEpoxy,par,3);
1541
1542 // InArcFrame
d1cd2474 1543 par[0] = kIAF;
1544 par[1] = kOAF;
1545 par[2] = kHzAF;
1546 par[3] = kAFphi1;
1547 par[4] = kAFphi2;
5f91c9e8 1548
1549 gMC->Gsvolu("SQ42","TUBS",idFrameEpoxy,par,5);
1550
1551//---
1552 // ScrewsInFrame - 3 sections in order to avoid overlapping volumes
1553 // Screw Head, in air
d1cd2474 1554 par[0] = kSCRUHMI;
1555 par[1] = kSCRUHMA;
1556 par[2] = kSCRUHLE;
5f91c9e8 1557
1558 gMC->Gsvolu("SQ43","TUBE",idInox,par,3);
1559
1560 // Middle part, in the Epoxy
d1cd2474 1561 par[0] = kSCRUMMI;
1562 par[1] = kSCRUMMA;
1563 par[2] = kSCRUMLE;
5f91c9e8 1564 gMC->Gsvolu("SQ44","TUBE",idInox,par,3);
1565
1566 // Screw nut, in air
d1cd2474 1567 par[0] = kSCRUNMI;
1568 par[1] = kSCRUNMA;
1569 par[2] = kSCRUNLE;
5f91c9e8 1570 gMC->Gsvolu("SQ45","TUBE",idInox,par,3);
1571 }
1572
1573// __________________Place volumes in the quadrant ____________
1574
1575 // InVFrame
d1cd2474 1576 posX = kHxInVFrame;
1577 posY = 2.0*kHyInHFrame+2.*kHyH1mm+kIAF+kHyInVFrame;
5f91c9e8 1578 posZ = 0.;
1579 gMC->Gspos("SQ00",1,QuadrantMLayerName(chamber),posX, posY, posZ, 0, "ONLY");
ba030c0e 1580
d1cd2474 1581// keep memory of the mid position. Used for placing screws
1582 const GReal_t kMidVposX = posX;
1583 const GReal_t kMidVposY = posY;
1584 const GReal_t kMidVposZ = posZ;
1585
5f91c9e8 1586 //Flat 7.5mm vertical section
d1cd2474 1587 posX = 2.0*kHxInVFrame+kHxV1mm;
1588 posY = 2.0*kHyInHFrame+2.*kHyH1mm+kIAF+kHyV1mm;
5f91c9e8 1589 posZ = 0.;
1590 gMC->Gspos("SQ01",1,QuadrantMLayerName(chamber),posX, posY, posZ,0, "ONLY");
1591
1592 // TopFrameAnode place 2 layers of TopFrameAnode cuboids
d1cd2474 1593 posX = kHxTFA;
1594 posY = 2.*kHyInHFrame+2.*kHyH1mm+kIAF+2.*kHyInVFrame+kHyTFA;
1595 posZ = kHzOuterFrameInox;
5f91c9e8 1596 gMC->Gspos("SQ02",1,QuadrantMLayerName(chamber),posX, posY, posZ,0,"ONLY");
d1cd2474 1597 posZ = posZ+kHzOuterFrameInox;
5f91c9e8 1598 gMC->Gspos("SQ03",1,QuadrantMLayerName(chamber),posX, posY, posZ,0,"ONLY");
1599
1600 // place 2 layers of TopFrameAnodeA trapezoids
1601 posX = 35.8932+fgkDeltaQuadLHC;
1602 posY = 92.6745+fgkDeltaQuadLHC;
d1cd2474 1603 posZ = kHzOuterFrameInox;
5f91c9e8 1604 gMC->Gspos("SQ04",1,QuadrantMLayerName(chamber),posX, posY, posZ, rot1,"ONLY");
d1cd2474 1605 posZ = posZ+kHzOuterFrameInox;
5f91c9e8 1606 gMC->Gspos("SQ05",1,QuadrantMLayerName(chamber),posX, posY, posZ, rot1,"ONLY");
1607
1608 // place 2 layers of TopFrameAnodeB trapezoids
1609 posX = 44.593+fgkDeltaQuadLHC;
1610 posY = 90.737+fgkDeltaQuadLHC;
d1cd2474 1611 posZ = kHzOuterFrameInox;
5f91c9e8 1612 gMC->Gspos("SQ06",1,QuadrantMLayerName(chamber),posX, posY, posZ, rot1,"ONLY");
d1cd2474 1613 posZ = posZ+kHzOuterFrameInox;
5f91c9e8 1614 gMC->Gspos("SQ07",1,QuadrantMLayerName(chamber),posX, posY, posZ, rot1,"ONLY");
1615
1616 // TopAnode1 place 2 layers
1617 posX = 6.8+fgkDeltaQuadLHC;
1618 posY = 99.85+fgkDeltaQuadLHC;
d1cd2474 1619 posZ = -1.*kHzAnodeFR4;
5f91c9e8 1620 gMC->Gspos("SQ08",1,QuadrantMLayerName(chamber),posX, posY, posZ, 0,"ONLY");
d1cd2474 1621 posZ = posZ+kHzTopAnodeSteel1;
5f91c9e8 1622 gMC->Gspos("SQ09",1,QuadrantMLayerName(chamber),posX, posY, posZ, 0,"ONLY");
1623
1624 // TopAnode2 place 2 layers
1625 posX = 18.534+fgkDeltaQuadLHC;
1626 posY = 99.482+fgkDeltaQuadLHC;
d1cd2474 1627 posZ = -1.*kHzAnodeFR4;
5f91c9e8 1628 gMC->Gspos("SQ10",1,QuadrantMLayerName(chamber),posX, posY, posZ, rot1,"ONLY");
d1cd2474 1629 posZ = posZ+kHzTopAnodeSteel2;
5f91c9e8 1630 gMC->Gspos("SQ11",1,QuadrantMLayerName(chamber),posX, posY, posZ, rot1,"ONLY");
1631
1632 // TopAnode3 place 1 layer
1633 posX = 25.80+fgkDeltaQuadLHC;
1634 posY = 98.61+fgkDeltaQuadLHC;
1635 posZ = 0.;
1636 gMC->Gspos("SQ12",1,QuadrantMLayerName(chamber),posX, posY, posZ, rot1,"ONLY");
1637
1638 // TopEarthFace - 2 copies
1639 posX = 23.122+fgkDeltaQuadLHC;
1640 posY = 96.90+fgkDeltaQuadLHC;
d1cd2474 1641 posZ = kHzOuterFrameEpoxy+kHzOuterFrameInox+kHzTopEarthFaceCu;
5f91c9e8 1642 gMC->Gspos("SQ13",1,QuadrantMLayerName(chamber),posX, posY, posZ, 0,"ONLY");
1643 posZ = -1.*posZ;
1644 gMC->Gspos("SQ13",2,QuadrantMLayerName(chamber),posX, posY, posZ, 0,"ONLY");
1645
1646 // TopEarthProfile
1647 posX = 14.475+fgkDeltaQuadLHC;
1648 posY = 97.900+fgkDeltaQuadLHC;
d1cd2474 1649 posZ = kHzTopEarthProfileCu;
5f91c9e8 1650 gMC->Gspos("SQ14",1,QuadrantMLayerName(chamber),posX, posY, posZ, 0,"ONLY");
1651 posZ = -1.0*posZ;
1652 gMC->Gspos("SQ14",2,QuadrantMLayerName(chamber),posX, posY, posZ, 0,"ONLY");
1653
1654 // TopGasSupport - 2 copies
1655 posX = 4.9500+fgkDeltaQuadLHC;
1656 posY = 96.200+fgkDeltaQuadLHC;
d1cd2474 1657 posZ = kHzOuterFrameEpoxy+kHzOuterFrameInox+kHzTopGasSupportAl;
5f91c9e8 1658 gMC->Gspos("SQ15",1,QuadrantMLayerName(chamber),posX, posY, posZ, 0,"ONLY");
1659 posZ = -1.*posZ;
1660 gMC->Gspos("SQ15",2,QuadrantMLayerName(chamber),posX, posY, posZ, 0,"ONLY");
1661
1662 // TopPositioner parameters - single Stainless Steel trapezoid - 2 copies
1663 posX = 7.60+fgkDeltaQuadLHC;
1664 posY = 98.98+fgkDeltaQuadLHC;
d1cd2474 1665 posZ = kHzOuterFrameEpoxy+kHzOuterFrameInox+2.*kHzTopGasSupportAl+kHzTopPositionerSteel;
5f91c9e8 1666 gMC->Gspos("SQ16",1,QuadrantMLayerName(chamber),posX, posY, posZ, rot1,"ONLY");
1667 posZ = -1.*posZ;
1668 gMC->Gspos("SQ16",2,QuadrantMLayerName(chamber),posX, posY, posZ, rot1,"ONLY");
1669
1670 // OutEdgeFrame
c03e5213 1671 Float_t xCenter[8];
1672 Float_t yCenter[8];
5f91c9e8 1673
c03e5213 1674 xCenter[0] = 73.201 + fgkDeltaQuadLHC;
1675 xCenter[1] = 78.124 + fgkDeltaQuadLHC;
b367fd8f 1676 //xCenter[2] = 82.862 + fgkDeltaQuadLHC;
1677 xCenter[2] = 83.102 + fgkDeltaQuadLHC;
c03e5213 1678 xCenter[3] = 87.418 + fgkDeltaQuadLHC;
b367fd8f 1679 // Fix (5) - overlap of SQ21 with 041M and 125M
5f91c9e8 1680
c03e5213 1681 yCenter[0] = 68.122 + fgkDeltaQuadLHC;
1682 yCenter[1] = 62.860 + fgkDeltaQuadLHC;
b367fd8f 1683 //yCenter[2] = 57.420 + fgkDeltaQuadLHC;
1684 yCenter[2] = 57.660 + fgkDeltaQuadLHC;
c03e5213 1685 yCenter[3] = 51.800 + fgkDeltaQuadLHC;
b367fd8f 1686 // Fix (5) - overlap of SQ21 with 041M and 125M
5f91c9e8 1687
c03e5213 1688 xCenter[4] = 68.122 + fgkDeltaQuadLHC;
1689 xCenter[5] = 62.860 + fgkDeltaQuadLHC;
1690 xCenter[6] = 57.420 + fgkDeltaQuadLHC;
1691 xCenter[7] = 51.800 + fgkDeltaQuadLHC;
5f91c9e8 1692
c03e5213 1693 yCenter[4] = 73.210 + fgkDeltaQuadLHC;
1694 yCenter[5] = 78.124 + fgkDeltaQuadLHC;
1695 yCenter[6] = 82.862 + fgkDeltaQuadLHC;
1696 yCenter[7] = 87.418 + fgkDeltaQuadLHC;
5f91c9e8 1697
d1cd2474 1698 posZ = -1.0*kHzOuterFrameInox;
c03e5213 1699 gMC->Gspos("SQ17",1,QuadrantMLayerName(chamber), xCenter[0], yCenter[0], posZ, rot2,"ONLY");
1700 gMC->Gspos("SQ17",2,QuadrantMLayerName(chamber), xCenter[4], yCenter[4], posZ, rot3,"ONLY");
5f91c9e8 1701
c03e5213 1702 gMC->Gspos("SQ19",1,QuadrantMLayerName(chamber), xCenter[1], yCenter[1], posZ, rot2,"ONLY");
1703 gMC->Gspos("SQ19",2,QuadrantMLayerName(chamber), xCenter[5], yCenter[5], posZ, rot3,"ONLY");
5f91c9e8 1704
c03e5213 1705 gMC->Gspos("SQ21",1,QuadrantMLayerName(chamber), xCenter[2], yCenter[2], posZ, rot2,"ONLY");
1706 gMC->Gspos("SQ21",2,QuadrantMLayerName(chamber), xCenter[6], yCenter[6], posZ, rot3,"ONLY");
ba030c0e 1707
c03e5213 1708 gMC->Gspos("SQ23",1,QuadrantMLayerName(chamber), xCenter[3], yCenter[3], posZ, rot2,"ONLY");
1709 gMC->Gspos("SQ23",2,QuadrantMLayerName(chamber), xCenter[7], yCenter[7], posZ, rot3,"ONLY");
5f91c9e8 1710
d1cd2474 1711 posZ = posZ+kHzOuterFrameEpoxy;
5f91c9e8 1712
c03e5213 1713 gMC->Gspos("SQ18",1,QuadrantMLayerName(chamber), xCenter[0], yCenter[0], posZ, rot2,"ONLY");
1714 gMC->Gspos("SQ18",2,QuadrantMLayerName(chamber), xCenter[4], yCenter[4], posZ, rot3,"ONLY");
5f91c9e8 1715
c03e5213 1716 gMC->Gspos("SQ20",1,QuadrantMLayerName(chamber), xCenter[1], yCenter[1], posZ, rot2,"ONLY");
1717 gMC->Gspos("SQ20",2,QuadrantMLayerName(chamber), xCenter[5], yCenter[5], posZ, rot3,"ONLY");
5f91c9e8 1718
c03e5213 1719 gMC->Gspos("SQ22",1,QuadrantMLayerName(chamber), xCenter[2], yCenter[2], posZ, rot2,"ONLY");
1720 gMC->Gspos("SQ22",2,QuadrantMLayerName(chamber), xCenter[6], yCenter[6], posZ, rot3,"ONLY");
5f91c9e8 1721
c03e5213 1722 gMC->Gspos("SQ24",1,QuadrantMLayerName(chamber), xCenter[3], yCenter[3], posZ, rot2,"ONLY");
1723 gMC->Gspos("SQ24",2,QuadrantMLayerName(chamber), xCenter[7], yCenter[7], posZ, rot3,"ONLY");
5f91c9e8 1724
1725//---
1726
ba030c0e 1727// OutVFrame
d1cd2474 1728 posX = 2.*kHxInVFrame+kIAF+2.*kHxInHFrame-kHxOutVFrame+2.*kHxV1mm;
1729 posY = 2.*kHyInHFrame+kHyOutVFrame;
ba030c0e 1730 posZ = 0.;
5f91c9e8 1731 gMC->Gspos("SQ25",1,QuadrantMLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1732
d1cd2474 1733 // keep memory of the mid position. Used for placing screws
1734 const GReal_t kMidOVposX = posX;
1735 const GReal_t kMidOVposY = posY;
1736 const GReal_t kMidOVposZ = posZ;
1737
1738 const Float_t kTOPY = posY+kHyOutVFrame;
1739 const Float_t kOUTX = posX;
ba030c0e 1740
5f91c9e8 1741// OutVFrame corner
d1cd2474 1742 posX = kOUTX;
1743 posY = kTOPY+((kBl1OCTF+kTl1OCTF)/2.);
5f91c9e8 1744 posZ = 0.;
1745 gMC->Gspos("SQ26",1,QuadrantMLayerName(chamber),posX, posY, posZ, rot1,"ONLY");
1746
1747// VertEarthFaceCu - 2 copies
1748 posX = 89.4000+fgkDeltaQuadLHC;
1749 posY = 25.79+fgkDeltaQuadLHC;
d1cd2474 1750 posZ = kHzFrameThickness+2.0*kHzFoam+kHzVertEarthFaceCu;
5f91c9e8 1751 gMC->Gspos("SQ27",1,QuadrantMLayerName(chamber),posX, posY, posZ, rot1, "ONLY");
1752 posZ = -1.0*posZ;
1753 gMC->Gspos("SQ27",2,QuadrantMLayerName(chamber),posX, posY, posZ, rot1, "ONLY");
1754
1755// VertEarthSteel - 2 copies
1756 posX = 91.00+fgkDeltaQuadLHC;
1757 posY = 30.616+fgkDeltaQuadLHC;
d1cd2474 1758 posZ = kHzFrameThickness+2.0*kHzFoam+kHzVertBarSteel;
5f91c9e8 1759 gMC->Gspos("SQ28",1,QuadrantMLayerName(chamber),posX, posY, posZ, rot1, "ONLY");
1760 posZ = -1.0*posZ;
1761 gMC->Gspos("SQ28",2,QuadrantMLayerName(chamber),posX, posY, posZ, rot1, "ONLY");
1762
1763// VertEarthProfCu - 2 copies
1764 posX = 92.000+fgkDeltaQuadLHC;
1765 posY = 29.64+fgkDeltaQuadLHC;
d1cd2474 1766 posZ = kHzFrameThickness;
5f91c9e8 1767 gMC->Gspos("SQ29",1,QuadrantMLayerName(chamber),posX, posY, posZ, rot1, "ONLY");
1768 posZ = -1.0*posZ;
1769 gMC->Gspos("SQ29",2,QuadrantMLayerName(chamber),posX, posY, posZ, rot1, "ONLY");
1770
1771// SuppLateralPositionner - 2 copies
d1cd2474 1772 posX = 90.2-kNearFarLHC;
1773 posY = 5.00-kNearFarLHC;
1774 posZ = kHzLateralPosnAl-fgkMotherThick2;
5f91c9e8 1775 gMC->Gspos("SQ30",1,QuadrantFLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1776 posZ = -1.0*posZ;
1777 gMC->Gspos("SQ30",2,QuadrantNLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1778
1779// LateralPositionner - 2 copies - Face view
d1cd2474 1780 posX = 92.175-kNearFarLHC-2.*kHxLPP;
1781 posY = 5.00-kNearFarLHC;
1782 posZ =2.0*kHzLateralPosnAl+kHzLateralPosnInoxFace-fgkMotherThick2;
5f91c9e8 1783 gMC->Gspos("SQ31",1,QuadrantFLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1784 posZ = -1.0*posZ;
1785 gMC->Gspos("SQ31",2,QuadrantNLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1786
1787// LateralPositionner - Profile view
d1cd2474 1788 posX = 92.175+fgkDeltaQuadLHC+kHxLPF-kHxLPP;
5f91c9e8 1789 posY = 5.00+fgkDeltaQuadLHC;
1790 posZ = 0.;
1791 gMC->Gspos("SQ32",1,QuadrantMLayerName(chamber),posX, posY, posZ, 0, "ONLY"); // middle layer
1792
d1cd2474 1793 posX = 92.175-kNearFarLHC+kHxLPF-kHxLPP;
1794 posY = 5.0000-kNearFarLHC;
1795 posZ = fgkMotherThick2-kHzLPNF;
5f91c9e8 1796 gMC->Gspos("SQ33",1,QuadrantNLayerName(chamber),posX, posY, posZ, 0, "ONLY"); // near layer
1797 posZ = -1.*posZ;
1798 gMC->Gspos("SQ33",2,QuadrantFLayerName(chamber),posX, posY, posZ, 0, "ONLY"); // far layer
1799
1800// VertCradleA 1st Trapezoid - 3 copies
1801 posX = 95.73+fgkDeltaQuadLHC;
1802 posY = 33.26+fgkDeltaQuadLHC;
1803 posZ = 0.;
1804 gMC->Gspos("SQ34",2,QuadrantMLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1805
d1cd2474 1806 posX = 95.73-kNearFarLHC;
1807 posY = 33.26-kNearFarLHC;
1808 posZ = 2.0*kHzLateralSightAl+kHzVerticalCradleAl-fgkMotherThick2;
5f91c9e8 1809 gMC->Gspos("SQ34",1,QuadrantNLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1810 posZ = -1.0*posZ;
1811 gMC->Gspos("SQ34",3,QuadrantFLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1812
1813// VertCradleB 2nd Trapezoid - 3 copies
1814 posX = 97.29+fgkDeltaQuadLHC;
1815 posY = 23.02+fgkDeltaQuadLHC;
1816 posZ = 0.;
1817 gMC->Gspos("SQ35",2,QuadrantMLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1818
d1cd2474 1819 posX = 97.29-kNearFarLHC;
1820 posY = 23.02-kNearFarLHC;
1821 posZ = 2.0*kHzLateralSightAl+kHzVerticalCradleAl-fgkMotherThick2;
5f91c9e8 1822 gMC->Gspos("SQ35",1,QuadrantNLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1823 posZ = -1.0*posZ;
1824 gMC->Gspos("SQ35",3,QuadrantFLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1825
1826// OutVertCradleC 3rd Trapeze - 3 copies
1827 posX = 98.31+fgkDeltaQuadLHC;
1828 posY = 12.77+fgkDeltaQuadLHC;
1829 posZ = 0.;
1830 gMC->Gspos("SQ36",2,QuadrantMLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1831
b367fd8f 1832 posX = 98.05-kNearFarLHC;
d1cd2474 1833 posY = 12.77-kNearFarLHC;
d1cd2474 1834 posZ = 2.0*kHzLateralSightAl+kHzVerticalCradleAl-fgkMotherThick2;
b367fd8f 1835 // Fix (2) of extrusion SQ36 from SQN1, SQN2, SQF1, SQF2
1836 // (was posX = 98.31 ...)
5f91c9e8 1837 gMC->Gspos("SQ36",1,QuadrantNLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1838 posZ = -1.0*posZ;
1839 gMC->Gspos("SQ36",3,QuadrantFLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1840
1841// OutVertCradleD 4th Trapeze - 3 copies
1842 posX = 98.81+fgkDeltaQuadLHC;
1843 posY = 2.52+fgkDeltaQuadLHC;
1844 posZ = 0.;
1845 gMC->Gspos("SQ37",2,QuadrantMLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1846
d1cd2474 1847 posZ = fgkMotherThick1-kHzVerticalCradleAl;
5f91c9e8 1848 gMC->Gspos("SQ37",1,QuadrantMLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1849 posZ = -1.0*posZ;
1850 gMC->Gspos("SQ37",3,QuadrantMLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1851
1852// LateralSightSupport - 2 copies
b367fd8f 1853 posX = 98.33-kNearFarLHC;
d1cd2474 1854 posY = 10.00-kNearFarLHC;
1855 posZ = kHzLateralSightAl-fgkMotherThick2;
b367fd8f 1856 // Fix (3) of extrusion SQ38 from SQN1, SQN2, SQF1, SQF2
1857 // (was posX = 98.53 ...)
5f91c9e8 1858 gMC->Gspos("SQ38",1,QuadrantNLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1859 posZ = -1.0*posZ;
1860 gMC->Gspos("SQ38",2,QuadrantFLayerName(chamber),posX, posY, posZ, 0, "ONLY");
1861
1862// Mire placement
1863 posX = 92.84+fgkDeltaQuadLHC;
1864 posY = 8.13+fgkDeltaQuadLHC;
ba030c0e 1865 posZ = 0.;
5f91c9e8 1866 gMC->Gspos("SQ39",1,QuadrantMLayerName(chamber),posX, posY, posZ, 0,"ONLY");
1867
1868//---
1869
1870// InHFrame
d1cd2474 1871 posX = 2.0*kHxInVFrame+2.*kHxV1mm+kIAF+kHxInHFrame;
1872 posY = kHyInHFrame;
5f91c9e8 1873 posZ = 0.;
1874 gMC->Gspos("SQ40",1,QuadrantMLayerName(chamber),posX, posY, posZ, 0, "ONLY");
ba030c0e 1875
d1cd2474 1876 // keep memory of the mid position. Used for placing screws
1877 const GReal_t kMidHposX = posX;
1878 const GReal_t kMidHposY = posY;
1879 const GReal_t kMidHposZ = posZ;
1880
5f91c9e8 1881// Flat 7.5mm horizontal section
d1cd2474 1882 posX = 2.0*kHxInVFrame+2.*kHxV1mm+kIAF+kHxH1mm;
1883 posY = 2.0*kHyInHFrame+kHyH1mm;
ba030c0e 1884 posZ = 0.;
5f91c9e8 1885 gMC->Gspos("SQ41",1,QuadrantMLayerName(chamber),posX, posY, posZ,0, "ONLY");
ba030c0e 1886
1887// InArcFrame
d1cd2474 1888 posX = 2.0*kHxInVFrame+2.*kHxV1mm;
1889 posY = 2.0*kHyInHFrame+2.*kHyH1mm;
ba030c0e 1890 posZ = 0.;
5f91c9e8 1891 gMC->Gspos("SQ42",1,QuadrantMLayerName(chamber),posX, posY, posZ,0, "ONLY");
ba030c0e 1892
d1cd2474 1893// keep memory of the mid position. Used for placing screws
1894 const GReal_t kMidArcposX = posX;
1895 const GReal_t kMidArcposY = posY;
1896 const GReal_t kMidArcposZ = posZ;
1897
5f91c9e8 1898// ScrewsInFrame - in sensitive volume
ba030c0e 1899
1900 Float_t scruX[64];
1901 Float_t scruY[64];
1902
1903// Screws on IHEpoxyFrame
1904
d1cd2474 1905 const Int_t kNumberOfScrewsIH = 14; // no. of screws on the IHEpoxyFrame
1906 const Float_t kOffX = 5.; // inter-screw distance
ba030c0e 1907
1908 // first screw coordinates
1909 scruX[0] = 21.07;
1910 scruY[0] = -2.23;
1911 // other screw coordinates
d1cd2474 1912 for (Int_t i = 1;i<kNumberOfScrewsIH;i++){
1913 scruX[i] = scruX[i-1]+kOffX;
ba030c0e 1914 scruY[i] = scruY[0];
1915 }
1916 // Position the volumes on the frames
d1cd2474 1917 for (Int_t i = 0;i<kNumberOfScrewsIH;i++){
5f91c9e8 1918 posX = fgkDeltaQuadLHC + scruX[i];
1919 posY = fgkDeltaQuadLHC + scruY[i];
ba030c0e 1920 posZ = 0.;
d1cd2474 1921 gMC->Gspos("SQ43",i+1,QuadrantMLayerName(chamber),posX+0.1, posY+0.1, posZ-kHzInHFrame-kSCRUHLE, 0, "ONLY");
1922 if (chamber==1)
1923 gMC->Gspos("SQ44",i+1,"SQ40",posX+0.1-kMidHposX, posY+0.1-kMidHposY, posZ-kMidHposZ, 0, "ONLY");
1924 gMC->Gspos("SQ45",i+1,QuadrantMLayerName(chamber),posX+0.1, posY+0.1, posZ+kHzInHFrame+kSCRUNLE, 0, "ONLY");
ba030c0e 1925 }
1926 // special screw coordinates
1927 scruX[63] = 16.3;
1928 scruY[63] = -2.23;
5f91c9e8 1929 posX = fgkDeltaQuadLHC + scruX[63];
1930 posY = fgkDeltaQuadLHC + scruY[63];
ba030c0e 1931 posZ = 0.;
d1cd2474 1932 gMC->Gspos("SQ43",64,QuadrantMLayerName(chamber),posX+0.1, posY+0.1, posZ-kHzInHFrame-kSCRUHLE, 0, "ONLY");
1933 if (chamber==1)
1934 gMC->Gspos("SQ44",64,"SQ40",posX+0.1-kMidHposX, posY+0.1-kMidHposY, posZ-kMidHposZ, 0, "ONLY");
1935 gMC->Gspos("SQ45",64,QuadrantMLayerName(chamber),posX+0.1, posY+0.1, posZ+kHzInHFrame+kSCRUNLE, 0, "ONLY");
ba030c0e 1936
1937// Screws on the IVEpoxyFrame
1938
d1cd2474 1939 const Int_t kNumberOfScrewsIV = 15; // no. of screws on the IVEpoxyFrame
1940 const Float_t kOffY = 5.; // inter-screw distance
c03e5213 1941 Int_t firstScrew = 58;
1942 Int_t lastScrew = 44;
ba030c0e 1943
1944 // first (special) screw coordinates
c03e5213 1945 scruX[firstScrew-1] = -2.23;
1946 scruY[firstScrew-1] = 16.3;
ba030c0e 1947 // second (repetitive) screw coordinates
c03e5213 1948 scruX[firstScrew-2] = -2.23;
1949 scruY[firstScrew-2] = 21.07;
ba030c0e 1950 // other screw coordinates
c03e5213 1951 for (Int_t i = firstScrew-3;i>lastScrew-2;i--){
1952 scruX[i] = scruX[firstScrew-2];
d1cd2474 1953 scruY[i] = scruY[i+1]+kOffY;
ba030c0e 1954 }
1955
d1cd2474 1956 for (Int_t i = 0;i<kNumberOfScrewsIV;i++){
c03e5213 1957 posX = fgkDeltaQuadLHC + scruX[i+lastScrew-1];
1958 posY = fgkDeltaQuadLHC + scruY[i+lastScrew-1];
ba030c0e 1959 posZ = 0.;
d1cd2474 1960 gMC->Gspos("SQ43",i+lastScrew,QuadrantMLayerName(chamber),posX+0.1, posY+0.1, posZ-kHzInHFrame-kSCRUHLE, 0, "ONLY");
1961 if (chamber==1)
1962 gMC->Gspos("SQ44",i+lastScrew,"SQ00",posX+0.1-kMidVposX, posY+0.1-kMidVposY, posZ-kMidVposZ, 0, "ONLY");
1963 gMC->Gspos("SQ45",i+lastScrew,QuadrantMLayerName(chamber),posX+0.1, posY+0.1, posZ+kHzInHFrame+kSCRUNLE, 0, "ONLY");
ba030c0e 1964 }
1965
1966// Screws on the OVEpoxyFrame
1967
d1cd2474 1968 const Int_t kNumberOfScrewsOV = 10; // no. of screws on the OVEpoxyFrame
ba030c0e 1969
c03e5213 1970 firstScrew = 15;
1971 lastScrew = 25;
ba030c0e 1972
1973 // first (repetitive) screw coordinates
d1cd2474 1974 // notes: 1st screw should be placed in volume 40 (InnerHorizFrame)
c03e5213 1975 scruX[firstScrew-1] = 90.9;
1976 scruY[firstScrew-1] = -2.23; // true value
ba030c0e 1977
1978 // other screw coordinates
c03e5213 1979 for (Int_t i = firstScrew; i<lastScrew; i++ ){
1980 scruX[i] = scruX[firstScrew-1];
d1cd2474 1981 scruY[i] = scruY[i-1]+kOffY;
ba030c0e 1982 }
d1cd2474 1983 for (Int_t i = 1;i<kNumberOfScrewsOV;i++){
c03e5213 1984 posX = fgkDeltaQuadLHC + scruX[i+firstScrew-1];
1985 posY = fgkDeltaQuadLHC + scruY[i+firstScrew-1];
ba030c0e 1986 posZ = 0.;
d1cd2474 1987 gMC->Gspos("SQ43",i+firstScrew,QuadrantMLayerName(chamber),posX+0.1, posY+0.1, posZ-kHzInHFrame-kSCRUHLE, 0, "ONLY");
1988 // ??
1989 if (chamber==1)
1990 gMC->Gspos("SQ44",i+firstScrew,"SQ25",posX+0.1-kMidOVposX, posY+0.1-kMidOVposY, posZ-kMidOVposZ, 0, "ONLY");
1991 gMC->Gspos("SQ45",i+firstScrew,QuadrantMLayerName(chamber),posX+0.1, posY+0.1, posZ+kHzInHFrame+kSCRUNLE, 0, "ONLY");
ba030c0e 1992 }
d1cd2474 1993 // special case for 1st screw, inside the horizontal frame (volume 40)
1994 posX = fgkDeltaQuadLHC + scruX[firstScrew-1];
1995 posY = fgkDeltaQuadLHC + scruY[firstScrew-1];
1996 posZ = 0.;
1997 if (chamber==1)
1998 gMC->Gspos("SQ44",firstScrew,"SQ40",posX+0.1-kMidHposX, posY+0.1-kMidHposY, posZ-kMidHposZ, 0, "ONLY");
1999
ba030c0e 2000// Inner Arc of Frame, screw positions and numbers-1
2001 scruX[62] = 16.009; scruY[62] = 1.401;
2002 scruX[61] = 14.564; scruY[61] = 6.791;
2003 scruX[60] = 11.363; scruY[60] = 11.363;
2004 scruX[59] = 6.791 ; scruY[59] = 14.564;
2005 scruX[58] = 1.401 ; scruY[58] = 16.009;
2006
2007 for (Int_t i = 0;i<5;i++){
5f91c9e8 2008 posX = fgkDeltaQuadLHC + scruX[i+58];
2009 posY = fgkDeltaQuadLHC + scruY[i+58];
ba030c0e 2010 posZ = 0.;
d1cd2474 2011 gMC->Gspos("SQ43",i+58+1,QuadrantMLayerName(chamber),posX+0.1, posY+0.1, posZ-kHzInHFrame-kSCRUHLE, 0, "ONLY");
2012 if (chamber==1)
2013 gMC->Gspos("SQ44",i+58+1,"SQ42",posX+0.1-kMidArcposX, posY+0.1-kMidArcposY, posZ-kMidArcposZ, 0, "ONLY");
2014 gMC->Gspos("SQ45",i+58+1,QuadrantMLayerName(chamber),posX+0.1, posY+0.1, posZ+kHzInHFrame+kSCRUNLE, 0, "ONLY");
5f91c9e8 2015 }
2016}
ba030c0e 2017
5f91c9e8 2018//______________________________________________________________________________
d1cd2474 2019void AliMUONSt1GeometryBuilderV2::PlaceInnerLayers(Int_t chamber)
5f91c9e8 2020{
2021// Place the gas and copper layers for the specified chamber.
2022// --
ba030c0e 2023
5f91c9e8 2024// Rotation Matrices
2025 Int_t rot1, rot2, rot3, rot4;
ba030c0e 2026
d1cd2474 2027 fMUON->AliMatrix(rot1, 90., 315., 90., 45., 0., 0.); // -45 deg
2028 fMUON->AliMatrix(rot2, 90., 90., 90., 180., 0., 0.); // 90 deg
2029 fMUON->AliMatrix(rot3, 90., 270., 90., 0., 0., 0.); // -90 deg
2030 fMUON->AliMatrix(rot4, 90., 45., 90., 135., 0., 0.); // deg
ba030c0e 2031
5f91c9e8 2032 GReal_t x;
2033 GReal_t y;
2034 GReal_t zg = 0.;
2035 GReal_t zc = fgkHzGas + fgkHzPadPlane;
2036 Int_t dpos = (chamber-1)*2;
2037 TString name;
ba030c0e 2038
5f91c9e8 2039 x = 14.53 + fgkDeltaQuadLHC;
2040 y = 53.34 + fgkDeltaQuadLHC;
2041 name = GasVolumeName("SAG", chamber);
2042 gMC->Gspos(name,1,QuadrantMLayerName(chamber),x,y,zg,0,"ONLY");
2043 gMC->Gspos("SA1C", 1+dpos, QuadrantMLayerName(chamber),x,y, zc,0,"ONLY");
2044 gMC->Gspos("SA1C", 2+dpos, QuadrantMLayerName(chamber),x,y,-zc,0,"ONLY");
2045
2046 x = 40.67 + fgkDeltaQuadLHC;
2047 y = 40.66 + fgkDeltaQuadLHC;
2048 name = GasVolumeName("SBG", chamber);
2049 gMC->Gspos(name,1,QuadrantMLayerName(chamber),x,y,zg,rot1,"ONLY");
2050 gMC->Gspos("SB1C", 1+dpos ,QuadrantMLayerName(chamber),x,y, zc,rot1,"ONLY");
2051 gMC->Gspos("SB1C", 2+dpos, QuadrantMLayerName(chamber),x,y,-zc,rot1,"ONLY");
2052
2053 x = 53.34 + fgkDeltaQuadLHC;
2054 y = 14.52 + fgkDeltaQuadLHC;
2055 name = GasVolumeName("SCG", chamber);
2056 gMC->Gspos(name,1,QuadrantMLayerName(chamber),x,y,zg,rot2,"ONLY");
2057 gMC->Gspos("SC1C", 1+dpos ,QuadrantMLayerName(chamber),x,y, zc,rot2,"ONLY");
2058 gMC->Gspos("SC1C", 2+dpos ,QuadrantMLayerName(chamber),x,y,-zc,rot2,"ONLY");
2059
2060 x = 5.83 + fgkDeltaQuadLHC;
2061 y = 17.29 + fgkDeltaQuadLHC;
2062 name = GasVolumeName("SDG", chamber);
2063 gMC->Gspos(name,1,QuadrantMLayerName(chamber),x,y,zg,rot3,"ONLY");
2064 gMC->Gspos("SD1C", 1+dpos ,QuadrantMLayerName(chamber),x,y, zc,rot3,"ONLY");
2065 gMC->Gspos("SD1C", 2+dpos ,QuadrantMLayerName(chamber),x,y,-zc,rot3,"ONLY");
2066
2067 x = 9.04 + fgkDeltaQuadLHC;
2068 y = 16.91 + fgkDeltaQuadLHC;
2069 name = GasVolumeName("SEG", chamber);
2070 gMC->Gspos(name,1,QuadrantMLayerName(chamber),x,y,zg,0,"ONLY");
2071 gMC->Gspos("SE1C", 1+dpos ,QuadrantMLayerName(chamber),x,y, zc,0,"ONLY");
2072 gMC->Gspos("SE1C", 2+dpos ,QuadrantMLayerName(chamber),x,y,-zc,0,"ONLY");
2073
2074 x = 10.12 + fgkDeltaQuadLHC;
2075 y = 14.67 + fgkDeltaQuadLHC;
2076 name = GasVolumeName("SFG", chamber);
2077 gMC->Gspos(name,1,QuadrantMLayerName(chamber),x,y,zg,rot4,"ONLY");
2078 gMC->Gspos("SF1C", 1+dpos ,QuadrantMLayerName(chamber),x,y, zc,rot4,"ONLY");
2079 gMC->Gspos("SF1C", 2+dpos ,QuadrantMLayerName(chamber),x,y,-zc,rot4,"ONLY");
2080
2081 x = 8.2042 + fgkDeltaQuadLHC;
2082 y = 16.19 + fgkDeltaQuadLHC;
2083 name = GasVolumeName("SGG", chamber);
2084 gMC->Gspos(name,1,QuadrantMLayerName(chamber),x,y,zg,rot4,"ONLY");
2085 gMC->Gspos("SG1C", 1+dpos ,QuadrantMLayerName(chamber),x,y, zc,rot4,"ONLY");
2086 gMC->Gspos("SG1C", 2+dpos ,QuadrantMLayerName(chamber),x,y,-zc,rot4,"ONLY");
2087
2088 x = 14.68 + fgkDeltaQuadLHC;
2089 y = 10.10 + fgkDeltaQuadLHC;
2090 name = GasVolumeName("SHG", chamber);
2091 gMC->Gspos(name,1,QuadrantMLayerName(chamber),x,y,zg,rot4,"ONLY");
2092 gMC->Gspos("SH1C", 1+dpos ,QuadrantMLayerName(chamber),x,y, zc,rot4,"ONLY");
2093 gMC->Gspos("SH1C", 2+dpos ,QuadrantMLayerName(chamber),x,y,-zc,rot4,"ONLY");
2094
2095 x = 16.21 + fgkDeltaQuadLHC;
2096 y = 8.17 + fgkDeltaQuadLHC;
2097 name = GasVolumeName("SIG", chamber);
2098 gMC->Gspos(name,1,QuadrantMLayerName(chamber),x,y,zg,rot4,"ONLY");
2099 gMC->Gspos("SI1C", 1+dpos ,QuadrantMLayerName(chamber),x,y, zc,rot4,"ONLY");
2100 gMC->Gspos("SI1C", 2+dpos ,QuadrantMLayerName(chamber),x,y,-zc,rot4,"ONLY");
2101
2102 x = 16.92 + fgkDeltaQuadLHC;
2103 y = 9.02 + fgkDeltaQuadLHC;
2104 name = GasVolumeName("SJG", chamber);
2105 gMC->Gspos(name,1,QuadrantMLayerName(chamber),x,y,zg,rot3,"ONLY");
2106 gMC->Gspos("SJ1C", 1+dpos ,QuadrantMLayerName(chamber),x,y, zc,rot3,"ONLY");
2107 gMC->Gspos("SJ1C", 2+dpos ,QuadrantMLayerName(chamber),x,y,-zc,rot3,"ONLY");
2108
2109 x = 17.30 + fgkDeltaQuadLHC;
2110 y = 5.85 + fgkDeltaQuadLHC;
2111 name = GasVolumeName("SKG", chamber);
2112 gMC->Gspos(name,1,QuadrantMLayerName(chamber),x,y,zg,0,"ONLY");
2113 gMC->Gspos("SK1C", 1+dpos ,QuadrantMLayerName(chamber),x,y, zc,0,"ONLY");
2114 gMC->Gspos("SK1C", 2+dpos ,QuadrantMLayerName(chamber),x,y,-zc,0,"ONLY");
ba030c0e 2115}
2116
5f91c9e8 2117//______________________________________________________________________________
d1cd2474 2118void AliMUONSt1GeometryBuilderV2::PlaceSector(AliMpSector* sector,SpecialMap specialMap,
5f91c9e8 2119 const TVector3& where, Bool_t reflectZ, Int_t chamber)
ba030c0e 2120{
5f91c9e8 2121// Place all the segments in the mother volume, at the position defined
2122// by the sector's data.
ba030c0e 2123// --
ba030c0e 2124
5f91c9e8 2125 static Int_t segNum=1;
2126 Int_t sgn;
2127 Int_t reflZ;
2128 Int_t rotMat;
2129
2130 if (!reflectZ) {
2131 sgn= 1;
2132 reflZ=0; // no reflection along z... nothing
d1cd2474 2133 fMUON->AliMatrix(rotMat, 90.,90.,90,180.,0.,0.); // 90° rotation around z, NO reflection along z
5f91c9e8 2134 } else {
2135 sgn=-1;
d1cd2474 2136 fMUON->AliMatrix(reflZ, 90.,0.,90,90.,180.,0.); // reflection along z
2137 fMUON->AliMatrix(rotMat, 90.,90.,90,180.,180.,0.); // 90° rotation around z AND reflection along z
5f91c9e8 2138 }
2139
ba030c0e 2140 GReal_t posX,posY,posZ;
2141
d1cd2474 2142#ifdef ST1_WITH_STL
2143 vector<Int_t> alreadyDone;
2144#endif
2145
2146#ifdef ST1_WITH_ROOT
2147 TArrayI alreadyDone(20);
2148 Int_t nofAlreadyDone = 0;
2149#endif
2150
5f91c9e8 2151 for (Int_t irow=0;irow<sector->GetNofRows();irow++){ // for each row
2152 AliMpRow* row = sector->GetRow(irow);
ba030c0e 2153
ba030c0e 2154
5f91c9e8 2155 for (Int_t iseg=0;iseg<row->GetNofRowSegments();iseg++){ // for each row segment
2156 AliMpVRowSegment* seg = row->GetRowSegment(iseg);
2157 char segName[5];
2158
d1cd2474 2159#ifdef ST1_WITH_STL
2160 SpecialMap::iterator iter
5f91c9e8 2161 = specialMap.find(seg->GetMotifPositionId(0));
ba030c0e 2162
5f91c9e8 2163 if ( iter == specialMap.end()){ //if this is a normal segment (ie. not part of <specialMap>)
d1cd2474 2164#endif
2165
2166#ifdef ST1_WITH_ROOT
2167 Long_t value = specialMap.GetValue(seg->GetMotifPositionId(0));
2168
2169 if ( value == 0 ){ //if this is a normal segment (ie. not part of <specialMap>)
2170#endif
5f91c9e8 2171
2172 // create the cathode part
2173 sprintf(segName,"%.3dM", segNum);
e77b6d6b 2174 CreatePlaneSegment(segName, seg->Dimensions(), seg->GetNofMotifs());
5f91c9e8 2175
e77b6d6b 2176 posX = where.X() + seg->Position().X();
2177 posY = where.Y() + seg->Position().Y();
5f91c9e8 2178 posZ = where.Z() + sgn * (TotalHzPlane() + fgkHzGas + 2.*fgkHzPadPlane);
2179 gMC->Gspos(segName, 1, QuadrantMLayerName(chamber), posX, posY, posZ, reflZ, "ONLY");
2180
2181 // and place all the daughter boards of this segment
2182 for (Int_t motifNum=0;motifNum<seg->GetNofMotifs();motifNum++) {
e8c253a0 2183
2184 // Copy number
5f91c9e8 2185 Int_t motifPosId = seg->GetMotifPositionId(motifNum);
2186 AliMpMotifPosition* motifPos =
2187 sector->GetMotifMap()->FindMotifPosition(motifPosId);
e8c253a0 2188 Int_t copyNo = motifPosId;
2189 if ( sector->GetDirection() == kX) copyNo += fgkDaughterCopyNoOffset;
5f91c9e8 2190
e8c253a0 2191 // Position
e77b6d6b 2192 posX = where.X() + motifPos->Position().X() + fgkOffsetX;
2193 posY = where.Y() + motifPos->Position().Y() + fgkOffsetY;
5f91c9e8 2194 posZ = where.Z() + sgn * (fgkMotherThick1 - TotalHzDaughter());
e8c253a0 2195
2196 gMC->Gspos(fgkDaughterName, copyNo, QuadrantMLayerName(chamber), posX, posY, posZ, reflZ, "ONLY");
5f91c9e8 2197 }
2198 segNum++;
2199
2200 } else {
2201
2202 // if this is a special segment
2203 for (Int_t motifNum=0;motifNum<seg->GetNofMotifs();motifNum++) {// for each motif
2204
2205 Int_t motifPosId = seg->GetMotifPositionId(motifNum);
2206
d1cd2474 2207#ifdef ST1_WITH_STL
2208 if (find(alreadyDone.begin(),alreadyDone.end(),motifPosId)
2209 != alreadyDone.end()) continue; // don't treat the same motif twice
2210
5f91c9e8 2211 AliMUONSt1SpecialMotif spMot = specialMap[motifPosId];
d1cd2474 2212#endif
2213#ifdef ST1_WITH_ROOT
2214 Bool_t isDone = false;
2215 Int_t i=0;
2216 while (i<nofAlreadyDone && !isDone) {
2217 if (alreadyDone.At(i) == motifPosId) isDone=true;
2218 i++;
2219 }
2220 if (isDone) continue; // don't treat the same motif twice
2221
2222 AliMUONSt1SpecialMotif spMot = *((AliMUONSt1SpecialMotif*)specialMap.GetValue(motifPosId));
2223#endif
2224 // check
2225 // cout << chamber << " processing special motif: " << motifPosId << endl;
2226
5f91c9e8 2227 AliMpMotifPosition* motifPos = sector->GetMotifMap()->FindMotifPosition(motifPosId);
2228
e8c253a0 2229 // Copy number
2230 Int_t copyNo = motifPosId;
2231 if ( sector->GetDirection() == kX) copyNo += fgkDaughterCopyNoOffset;
2232
5f91c9e8 2233 // place the hole for the motif, wrt the requested rotation angle
2234 Int_t rot = ( spMot.GetRotAngle()<0.1 ) ? reflZ:rotMat;
2235
e77b6d6b 2236 posX = where.X() + motifPos->Position().X() + spMot.GetDelta().X();
2237 posY = where.Y() + motifPos->Position().Y() + spMot.GetDelta().Y();
5f91c9e8 2238 posZ = where.Z() + sgn * (TotalHzPlane() + fgkHzGas + 2.*fgkHzPadPlane);
e8c253a0 2239 gMC->Gspos(fgkHoleName, copyNo, QuadrantMLayerName(chamber), posX, posY, posZ, rot, "ONLY");
5f91c9e8 2240
2241 // then place the daughter board for the motif, wrt the requested rotation angle
2242 posX = posX+fgkDeltaFilleEtamX;
2243 posY = posY+fgkDeltaFilleEtamY;
2244 posZ = where.Z() + sgn * (fgkMotherThick1 - TotalHzDaughter());
e8c253a0 2245 gMC->Gspos(fgkDaughterName, copyNo, QuadrantMLayerName(chamber), posX, posY, posZ, rot, "ONLY");
5f91c9e8 2246
d1cd2474 2247#ifdef ST1_WITH_STL
2248 alreadyDone.push_back(motifPosId);// mark this motif as done
2249#endif
2250#ifdef ST1_WITH_ROOT
2251 if (nofAlreadyDone == alreadyDone.GetSize())
2252 alreadyDone.Set(2*nofAlreadyDone);
2253 alreadyDone.AddAt(motifPosId, nofAlreadyDone++);
2254#endif
2255 // check
2256 // cout << chamber << " processed motifPosId: " << motifPosId << endl;
5f91c9e8 2257 }
2258 }// end of special motif case
2259 }
2260 }
2261}
2262
2263//______________________________________________________________________________
d1cd2474 2264TString AliMUONSt1GeometryBuilderV2::GasVolumeName(const TString& name, Int_t chamber) const
ba030c0e 2265{
5f91c9e8 2266// Inserts the chamber number into the name.
2267// ---
ba030c0e 2268
5f91c9e8 2269 TString newString(name);
2270
2271 TString number("");
2272 number += chamber;
ba030c0e 2273
5f91c9e8 2274 newString.Insert(2, number);
ba030c0e 2275
5f91c9e8 2276 return newString;
ba030c0e 2277}
2278
d1cd2474 2279/*
5f91c9e8 2280//______________________________________________________________________________
d1cd2474 2281Bool_t AliMUONSt1GeometryBuilderV2::IsInChamber(Int_t ich, Int_t volGid) const
ba030c0e 2282{
5f91c9e8 2283// True if volume <volGid> is part of the sensitive
2284// volumes of chamber <ich>
2285// ---
2286 for (Int_t i = 0; i < fChamberV2[ich]->GetSize(); i++) {
2287 if (fChamberV2[ich]->At(i) == volGid) return kTRUE;
2288 }
2289 return kFALSE;
2290}
d1cd2474 2291*/
ba030c0e 2292
5f91c9e8 2293//
2294// protected methods
2295//
ba030c0e 2296
d1cd2474 2297/*
5f91c9e8 2298//______________________________________________________________________________
d1cd2474 2299Int_t AliMUONSt1GeometryBuilderV2::GetChamberId(Int_t volId) const
5f91c9e8 2300{
2301// Check if the volume with specified volId is a sensitive volume (gas)
2302// of some chamber and returns the chamber number;
2303// if not sensitive volume - return 0.
2304// ---
2305
2306 for (Int_t i = 1; i <=2; i++)
2307 if (IsInChamber(i-1,volId)) return i;
ba030c0e 2308
5f91c9e8 2309 for (Int_t i = 3; i <= AliMUONConstants::NCh(); i++)
2310 if (volId==((AliMUONChamber*)(*fChambers)[i-1])->GetGid()) return i;
ba030c0e 2311
5f91c9e8 2312 return 0;
ba030c0e 2313}
d1cd2474 2314*/
ba030c0e 2315
5f91c9e8 2316//
2317// public methods
2318//
2319
2320//______________________________________________________________________________
d1cd2474 2321void AliMUONSt1GeometryBuilderV2::CreateMaterials()
ba030c0e 2322{
d1cd2474 2323// Materials and medias defined in MUONv1:
2324//
2325// AliMaterial( 9, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
2326// AliMaterial(10, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2);
2327// AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500);
2328// AliMixture( 19, "Bakelite$", abak, zbak, dbak, -3, wbak);
2329// AliMixture( 20, "ArC4H10 GAS$", ag, zg, dg, 3, wg);
2330// AliMixture( 21, "TRIG GAS$", atrig, ztrig, dtrig, -5, wtrig);
2331// AliMixture( 22, "ArCO2 80%$", ag1, zg1, dg1, 3, wg1);
2332// AliMixture( 23, "Ar-freon $", atr1, ztr1, dtr1, 4, wtr1);
2333// AliMixture( 24, "ArCO2 GAS$", agas, zgas, dgas, 3, wgas);
2334// AliMaterial(31, "COPPER$", 63.54, 29., 8.96, 1.4, 0.);
2335// AliMixture( 32, "Vetronite$",aglass, zglass, dglass, 5, wglass);
2336// AliMaterial(33, "Carbon$", 12.01, 6., 2.265, 18.8, 49.9);
2337// AliMixture( 34, "Rohacell$", arohac, zrohac, drohac, -4, wrohac);
2338
2339// AliMedium( 1, "AIR_CH_US ", 15, 1, iSXFLD, ...
2340// AliMedium( 4, "ALU_CH_US ", 9, 0, iSXFLD, ...
2341// AliMedium( 5, "ALU_CH_US ", 10, 0, iSXFLD, ...
2342// AliMedium( 6, "AR_CH_US ", 20, 1, iSXFLD, ...
2343// AliMedium( 7, "GAS_CH_TRIGGER ", 21, 1, iSXFLD, ...
2344// AliMedium( 8, "BAKE_CH_TRIGGER ", 19, 0, iSXFLD, ...
2345// AliMedium( 9, "ARG_CO2 ", 22, 1, iSXFLD, ...
2346// AliMedium(11, "PCB_COPPER ", 31, 0, iSXFLD, ...
2347// AliMedium(12, "VETRONITE ", 32, 0, iSXFLD, ...
2348// AliMedium(13, "CARBON ", 33, 0, iSXFLD, ...
2349// AliMedium(14, "Rohacell ", 34, 0, iSXFLD, ...
2350
2351 //
2352 // --- Define materials for GEANT ---
2353 //
2354
2355 fMUON->AliMaterial(41, "Aluminium II$", 26.98, 13., 2.7, -8.9, 26.1);
2356 // was id: 9
2357 // from PDG and "The Particle Detector BriefBook", Bock and Vasilescu, P.18
2358 // ??? same but the last but one argument < 0
d1cd2474 2359 //
2360 // --- Define mixtures for GEANT ---
2361 //
2362
2363 // Ar-CO2 gas II (80%+20%)
2364 Float_t ag1[2] = { 39.95, 44.01};
2365 Float_t zg1[2] = { 18., 22.};
2366 Float_t wg1[2] = { .8, 0.2};
2367 Float_t dg1 = .001821;
2368 fMUON->AliMixture(45, "ArCO2 II 80%$", ag1, zg1, dg1, 2, wg1);
2369 // was id: 22
2370 // use wg1 weighting factors (6th arg > 0)
2371
2372 // Rohacell 51 II - imide methacrylique
2373 Float_t aRohacell51[4] = { 12.01, 1.01, 16.00, 14.01};
2374 Float_t zRohacell51[4] = { 6., 1., 8., 7.};
2375 Float_t wRohacell51[4] = { 9., 13., 2., 1.};
5f91c9e8 2376 Float_t dRohacell51 = 0.052;
d1cd2474 2377 fMUON->AliMixture(46, "FOAM$",aRohacell51,zRohacell51,dRohacell51,-4,wRohacell51);
2378 // was id: 32
2379 // use relative A (molecular) values (6th arg < 0)
5f91c9e8 2380
d1cd2474 2381 Float_t aSnPb[2] = { 118.69, 207.19};
2382 Float_t zSnPb[2] = { 50, 82};
2383 Float_t wSnPb[2] = { 0.6, 0.4} ;
5f91c9e8 2384 Float_t dSnPb = 8.926;
d1cd2474 2385 fMUON->AliMixture(47, "SnPb$", aSnPb,zSnPb,dSnPb,2,wSnPb);
2386 // was id: 35
2387 // use wSnPb weighting factors (6th arg > 0)
ba030c0e 2388
5f91c9e8 2389 // plastic definition from K5, Freiburg (found on web)
d1cd2474 2390 Float_t aPlastic[2]={ 1.01, 12.01};
2391 Float_t zPlastic[2]={ 1, 6};
2392 Float_t wPlastic[2]={ 1, 1};
5f91c9e8 2393 Float_t denPlastic=1.107;
d1cd2474 2394 fMUON->AliMixture(48, "Plastic$",aPlastic,zPlastic,denPlastic,-2,wPlastic);
2395 // was id: 33
2396 // use relative A (molecular) values (6th arg < 0)...no other info...
5f91c9e8 2397
d1cd2474 2398 // Not used, to be removed
2399 //
d1cd2474 2400 // was id: 34
2401
5f91c9e8 2402 // Inox/Stainless Steel (18%Cr, 9%Ni)
d1cd2474 2403 Float_t aInox[3] = {55.847, 51.9961, 58.6934};
2404 Float_t zInox[3] = {26., 24., 28.};
2405 Float_t wInox[3] = {0.73, 0.18, 0.09};
5f91c9e8 2406 Float_t denInox = 7.930;
d1cd2474 2407 fMUON->AliMixture(50, "StainlessSteel$",aInox,zInox,denInox,3,wInox);
2408 // was id: 37
2409 // use wInox weighting factors (6th arg > 0)
2410 // from CERN note NUFACT Note023, Oct.2000
2411 //
2412 // End - Not used, to be removed
2413
2414 //
2415 // --- Define the tracking medias for GEANT ---
2416 //
2417
5f91c9e8 2418 GReal_t epsil = .001; // Tracking precision,
d1cd2474 2419 //GReal_t stemax = -1.; // Maximum displacement for multiple scat
5f91c9e8 2420 GReal_t tmaxfd = -20.; // Maximum angle due to field deflection
d1cd2474 2421 //GReal_t deemax = -.3; // Maximum fractional energy loss, DLS
5f91c9e8 2422 GReal_t stmin = -.8;
d1cd2474 2423 GReal_t maxStepAlu = fMUON->GetMaxStepAlu();
2424 GReal_t maxDestepAlu = fMUON->GetMaxDestepAlu();
2425 GReal_t maxStepGas = fMUON->GetMaxStepGas();
5f91c9e8 2426 Int_t iSXFLD = gAlice->Field()->Integ();
2427 Float_t sXMGMX = gAlice->Field()->Max();
2428
d1cd2474 2429 fMUON->AliMedium(21, "ALU_II$", 41, 0, iSXFLD, sXMGMX,
2430 tmaxfd, maxStepAlu, maxDestepAlu, epsil, stmin);
f1501d74 2431
d1cd2474 2432 // was med: 15 mat: 31
2433 fMUON->AliMedium(24, "FrameCH$", 44, 1, iSXFLD, sXMGMX,
2434 10.0, 0.001, 0.001, 0.001, 0.001);
2435 // was med: 20 mat: 36
2436 fMUON->AliMedium(25, "ARG_CO2_II", 45, 1, iSXFLD, sXMGMX,
2437 tmaxfd, maxStepGas, maxDestepAlu, epsil, stmin);
2438 // was med: 9 mat: 22
2439 fMUON->AliMedium(26, "FOAM_CH$", 46, 0, iSXFLD, sXMGMX,
2440 10.0, 0.1, 0.1, 0.1, 0.1, 0, 0) ;
2441 // was med: 16 mat: 32
2442 fMUON->AliMedium(27, "SnPb$", 47, 0, iSXFLD, sXMGMX,
2443 10.0, 0.01, 1.0, 0.003, 0.003);
2444 // was med: 19 mat: 35
2445 fMUON->AliMedium(28, "Plastic$", 48, 0, iSXFLD, sXMGMX,
2446 10.0, 0.01, 1.0, 0.003, 0.003);
2447 // was med: 17 mat: 33
2448
2449 // Not used, to be romoved
2450 //
f1501d74 2451
d1cd2474 2452 fMUON->AliMedium(30, "InoxBolts$", 50, 1, iSXFLD, sXMGMX,
2453 10.0, 0.01, 1.0, 0.003, 0.003);
2454 // was med: 21 mat: 37
2455 //
2456 // End - Not used, to be removed
ba030c0e 2457}
2458
5f91c9e8 2459//______________________________________________________________________________
d1cd2474 2460void AliMUONSt1GeometryBuilderV2::CreateGeometry()
ba030c0e 2461{
d1cd2474 2462// Create the detailed GEANT geometry for the dimuon arm station1
ba030c0e 2463// --
5a0e88a7 2464 AliDebug(1,"Called");
5f91c9e8 2465
2466 // Create basic volumes
2467 //
2468 CreateHole();
2469 CreateDaughterBoard();
2470 CreateInnerLayers();
ba030c0e 2471
5f91c9e8 2472 // Create reflexion matrices
2473 //
d1cd2474 2474/*
5f91c9e8 2475 Int_t reflXZ, reflYZ, reflXY;
d1cd2474 2476 fMUON->AliMatrix(reflXZ, 90., 180., 90., 90., 180., 0.);
2477 fMUON->AliMatrix(reflYZ, 90., 0., 90.,-90., 180., 0.);
2478 fMUON->AliMatrix(reflXY, 90., 180., 90., 270., 0., 0.);
2479*/
5f91c9e8 2480 // Define transformations for each quadrant
e7addd77 2481 // In old coordinate system: In new coordinate system:
5f91c9e8 2482 //
e7addd77 2483 //
2484 // II. | I. I. | II.
ecbcb19e 2485 // | (101) | (100)
e7addd77 2486 // _____ | ____ _____ | ____
2487 // | |
2488 // III. | IV. IV. | III.
ecbcb19e 2489 // (102) | (103)
5f91c9e8 2490 //
d1cd2474 2491/*
5f91c9e8 2492 Int_t rotm[4];
2493 rotm[0]=0; // quadrant I
2494 rotm[1]=reflXZ; // quadrant II
2495 rotm[2]=reflXY; // quadrant III
2496 rotm[3]=reflYZ; // quadrant IV
d1cd2474 2497*/
2498 TGeoRotation rotm[4];
2499 rotm[0] = TGeoRotation("identity");
2500 rotm[1] = TGeoRotation("reflXZ", 90., 180., 90., 90., 180., 0.);
2501 rotm[2] = TGeoRotation("reflXY", 90., 180., 90., 270., 0., 0.);
2502 rotm[3] = TGeoRotation("reflYZ", 90., 0., 90.,-90., 180., 0.);
ba030c0e 2503
5f91c9e8 2504 TVector3 scale[4];
2505 scale[0] = TVector3( 1, 1, 1); // quadrant I
2506 scale[1] = TVector3(-1, 1, -1); // quadrant II
2507 scale[2] = TVector3(-1, -1, 1); // quadrant III
2508 scale[3] = TVector3( 1, -1, -1); // quadrant IV
ba030c0e 2509
a432117a 2510 Int_t detElemId[4];
ecbcb19e 2511 detElemId[0] = 1; // quadrant I
e7addd77 2512 detElemId[1] = 0; // quadrant II
ecbcb19e 2513 detElemId[2] = 3; // quadrant III
2514 detElemId[3] = 2; // quadrant IV
a432117a 2515
5f91c9e8 2516 // Shift in Z of the middle layer
10bb087f 2517 Double_t deltaZ = 7.5/2.;
5f91c9e8 2518
2519 // Position of quadrant I wrt to the chamber position
b367fd8f 2520 // TVector3 pos0(-fgkDeltaQuadLHC, -fgkDeltaQuadLHC, deltaZ);
5f91c9e8 2521
2522 // Shift for near/far layers
2523 GReal_t shiftXY = fgkFrameOffset;
2524 GReal_t shiftZ = fgkMotherThick1+fgkMotherThick2;
2525
2526 // Build two chambers
2527 //
2528 for (Int_t ich=1; ich<3; ich++) {
2529
2530 // Create quadrant volume
2531 CreateQuadrant(ich);
2532
2533 // Place gas volumes
2534 PlaceInnerLayers(ich);
2535
2536 // Place the quadrant
2537 for (Int_t i=0; i<4; i++) {
2538
b367fd8f 2539 // DE envelope
2540 GReal_t posx0, posy0, posz0;
2541 posx0 = fgkPadXOffsetBP * scale[i].X();
2542 posy0 = fgkPadYOffsetBP * scale[i].Y();;
2543 posz0 = deltaZ * scale[i].Z();
2544 GetEnvelopes(ich-1)
2545 ->AddEnvelope(QuadrantEnvelopeName(ich,i), detElemId[i] + ich*100, true,
2546 TGeoTranslation(posx0, posy0, posz0), rotm[i]);
2547
5f91c9e8 2548 // Middle layer
a432117a 2549 GReal_t posx, posy, posz;
b367fd8f 2550 posx = -fgkDeltaQuadLHC - fgkPadXOffsetBP;
2551 posy = -fgkDeltaQuadLHC - fgkPadYOffsetBP;
2552 posz = 0.;
a432117a 2553 GetEnvelopes(ich-1)
b367fd8f 2554 ->AddEnvelopeConstituent(QuadrantMLayerName(ich), QuadrantEnvelopeName(ich,i),
2555 i+1, TGeoTranslation(posx, posy, posz));
5f91c9e8 2556
2557 // Near/far layers
b367fd8f 2558 GReal_t posx2 = posx + shiftXY;;
2559 GReal_t posy2 = posy + shiftXY;;
2560 GReal_t posz2 = posz - shiftZ;;
d1cd2474 2561 //gMC->Gspos(QuadrantNLayerName(ich), i+1, "ALIC", posx2, posy2, posz2, rotm[i],"ONLY");
a432117a 2562 GetEnvelopes(ich-1)
b367fd8f 2563 ->AddEnvelopeConstituent(QuadrantNLayerName(ich), QuadrantEnvelopeName(ich,i),
2564 i+1, TGeoTranslation(posx2, posy2, posz2));
5f91c9e8 2565
b367fd8f 2566 posz2 = posz + shiftZ;
d1cd2474 2567 //gMC->Gspos(QuadrantFLayerName(ich), i+1, "ALIC", posx2, posy2, posz2, rotm[i],"ONLY");
a432117a 2568 GetEnvelopes(ich-1)
b367fd8f 2569 ->AddEnvelopeConstituent(QuadrantFLayerName(ich), QuadrantEnvelopeName(ich,i),
2570 i+1, TGeoTranslation(posx2, posy2, posz2));
5f91c9e8 2571 }
2572 }
5f91c9e8 2573}
2574
2575//______________________________________________________________________________
d1cd2474 2576void AliMUONSt1GeometryBuilderV2::SetTransformations()
5f91c9e8 2577{
d1cd2474 2578// Defines the transformations for the station2 chambers.
2579// ---
5f91c9e8 2580
e118b27e 2581 AliMUONChamber* iChamber1 = &fMUON->Chamber(0);
d1cd2474 2582 Double_t zpos1 = - iChamber1->Z();
2583 iChamber1->GetGeometry()
2584 ->SetTranslation(TGeoTranslation(0., 0., zpos1));
5f91c9e8 2585
e118b27e 2586 AliMUONChamber* iChamber2 = &fMUON->Chamber(1);
d1cd2474 2587 Double_t zpos2 = - iChamber2->Z();
2588 iChamber2->GetGeometry()
2589 ->SetTranslation(TGeoTranslation(0., 0., zpos2));
2590}
5f91c9e8 2591
d1cd2474 2592//______________________________________________________________________________
2593void AliMUONSt1GeometryBuilderV2::SetSensitiveVolumes()
2594{
2595// Defines the sensitive volumes for station2 chambers.
2596// ---
5f91c9e8 2597
e118b27e 2598 GetGeometry(0)->SetSensitiveVolume("SA1G");
2599 GetGeometry(0)->SetSensitiveVolume("SB1G");
2600 GetGeometry(0)->SetSensitiveVolume("SC1G");
2601 GetGeometry(0)->SetSensitiveVolume("SD1G");
2602 GetGeometry(0)->SetSensitiveVolume("SE1G");
2603 GetGeometry(0)->SetSensitiveVolume("SF1G");
2604 GetGeometry(0)->SetSensitiveVolume("SG1G");
2605 GetGeometry(0)->SetSensitiveVolume("SH1G");
2606 GetGeometry(0)->SetSensitiveVolume("SI1G");
2607 GetGeometry(0)->SetSensitiveVolume("SJ1G");
2608 GetGeometry(0)->SetSensitiveVolume("SK1G");
d1cd2474 2609
e118b27e 2610 GetGeometry(1)->SetSensitiveVolume("SA2G");
2611 GetGeometry(1)->SetSensitiveVolume("SB2G");
2612 GetGeometry(1)->SetSensitiveVolume("SC2G");
2613 GetGeometry(1)->SetSensitiveVolume("SD2G");
2614 GetGeometry(1)->SetSensitiveVolume("SE2G");
2615 GetGeometry(1)->SetSensitiveVolume("SF2G");
2616 GetGeometry(1)->SetSensitiveVolume("SG2G");
2617 GetGeometry(1)->SetSensitiveVolume("SH2G");
2618 GetGeometry(1)->SetSensitiveVolume("SI2G");
2619 GetGeometry(1)->SetSensitiveVolume("SJ2G");
2620 GetGeometry(1)->SetSensitiveVolume("SK2G");
ba030c0e 2621}
5f91c9e8 2622