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