]>
Commit | Line | Data |
---|---|---|
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 | // | |
18 | // Class AliMUONSt1GeometryBuilderV2 | |
19 | // --------------------------------- | |
20 | // MUON Station1 detailed geometry construction class. | |
ba030c0e | 21 | // |
d1cd2474 | 22 | // Authors: David Guez, Ivana Hrivnacova, Marion MacCormick; IPN Orsay |
23 | ||
24 | #ifdef ST1_WITH_STL | |
25 | #include <vector> | |
26 | #endif | |
ba030c0e | 27 | |
d1cd2474 | 28 | #ifdef ST1_WITH_ROOT |
29 | #include "TArrayI.h" | |
30 | #endif | |
ba030c0e | 31 | |
32 | #include <TVector2.h> | |
d1cd2474 | 33 | #include <TVector3.h> |
34 | #include <TGeoMatrix.h> | |
ba030c0e | 35 | #include <TClonesArray.h> |
5f91c9e8 | 36 | #include <Riostream.h> |
37 | #include <TSystem.h> | |
5d12ce38 | 38 | #include <TVirtualMC.h> |
ba030c0e | 39 | |
5f91c9e8 | 40 | #include "AliMpFiles.h" |
41 | #include "AliMpReader.h" | |
42 | #include "AliMpSector.h" | |
43 | #include "AliMpRow.h" | |
44 | #include "AliMpVRowSegment.h" | |
45 | #include "AliMpMotifMap.h" | |
46 | #include "AliMpMotifPosition.h" | |
ba030c0e | 47 | |
d1cd2474 | 48 | #include "AliMUONSt1GeometryBuilderV2.h" |
49 | #include "AliMUONSt1SpecialMotif.h" | |
50 | #include "AliMUON.h" | |
51 | #include "AliMUONChamber.h" | |
52 | #include "AliMUONChamberGeometry.h" | |
ba030c0e | 53 | #include "AliMUONConstants.h" |
ba030c0e | 54 | #include "AliRun.h" |
55 | #include "AliMagF.h" | |
ba030c0e | 56 | |
d1cd2474 | 57 | ClassImp(AliMUONSt1GeometryBuilderV2) |
ba030c0e | 58 | |
5f91c9e8 | 59 | // Thickness Constants |
d1cd2474 | 60 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzPadPlane=0.0148/2.; //Pad plane |
61 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzFoam = 2.083/2.; //Foam of mechanicalplane | |
62 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzFR4 = 0.0031/2.; //FR4 of mechanical plane | |
63 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzSnPb = 0.0091/2.; //Pad/Kapton connection (66 pt) | |
64 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzKapton = 0.0122/2.; //Kapton | |
65 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzBergPlastic = 0.3062/2.;//Berg connector | |
66 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzBergCopper = 0.1882/2.; //Berg connector | |
67 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzDaughter = 0.0156/2.; //Daughter board | |
68 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHzGas = 0.2/2.; //Gas thickness | |
5f91c9e8 | 69 | |
70 | // Quadrant Mother volume - TUBS1 - Middle layer of model | |
d1cd2474 | 71 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherIR1 = 18.3; |
72 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherOR1 = 105.673; | |
73 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherThick1 = 6.5/2; | |
74 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherPhiL1 = 0.; | |
75 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherPhiU1 = 90.; | |
5f91c9e8 | 76 | |
77 | // Quadrant Mother volume - TUBS2 - near and far layers of model | |
d1cd2474 | 78 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherIR2 = 20.7; |
79 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherOR2 = 100.073; | |
80 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherThick2 = 3.0/2; | |
81 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherPhiL2 = 0.; | |
82 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkMotherPhiU2 = 90.; | |
5f91c9e8 | 83 | |
84 | // Sensitive copper pads, foam layer, PCB and electronics model parameters | |
d1cd2474 | 85 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHxHole=1.5/2.; |
86 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHyHole=6./2.; | |
87 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHxBergPlastic=0.74/2.; | |
88 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHyBergPlastic=5.09/2.; | |
89 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHxBergCopper=0.25/2.; | |
90 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHyBergCopper=3.6/2.; | |
91 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHxKapton=0.8/2.; | |
92 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHyKapton=5.7/2.; | |
93 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHxDaughter=2.3/2.; | |
94 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkHyDaughter=6.3/2.; | |
95 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkOffsetX=1.46; | |
96 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkOffsetY=0.71; | |
97 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkDeltaFilleEtamX=1.46; | |
98 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkDeltaFilleEtamY=0.051; | |
99 | ||
100 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkDeltaQuadLHC=2.6; // LHC Origin wrt Quadrant Origin | |
101 | const GReal_t AliMUONSt1GeometryBuilderV2::fgkFrameOffset=5.0; | |
102 | ||
103 | const char* AliMUONSt1GeometryBuilderV2::fgkHoleName="MCHL"; | |
104 | const char* AliMUONSt1GeometryBuilderV2::fgkDaughterName="MCDB"; | |
105 | const char AliMUONSt1GeometryBuilderV2::fgkFoamLayerSuffix='F'; // prefix for automatic volume naming | |
106 | const char* AliMUONSt1GeometryBuilderV2::fgkQuadrantMLayerName="SQM"; | |
107 | const char* AliMUONSt1GeometryBuilderV2::fgkQuadrantNLayerName="SQN"; | |
108 | const char* AliMUONSt1GeometryBuilderV2::fgkQuadrantFLayerName="SQF"; | |
5f91c9e8 | 109 | |
110 | //______________________________________________________________________________ | |
d1cd2474 | 111 | AliMUONSt1GeometryBuilderV2::AliMUONSt1GeometryBuilderV2(AliMUON* muon) |
112 | : AliMUONVGeometryBuilder(&muon->Chamber(0), &muon->Chamber(1)), | |
113 | fMUON(muon) | |
ba030c0e | 114 | { |
5f91c9e8 | 115 | // set path to mapping data files |
116 | if (! gSystem->Getenv("MINSTALL")) { | |
117 | TString dirPath = gSystem->Getenv("ALICE_ROOT"); | |
118 | dirPath += "/MUON/mapping"; | |
119 | AliMpFiles::Instance()->SetTopPath(dirPath); | |
120 | gSystem->Setenv("MINSTALL", dirPath.Data()); | |
121 | //cout << "AliMpFiles top path set to " << dirPath << endl; | |
122 | } | |
123 | //else | |
d1cd2474 | 124 | // cout << gSystem->Getenv("MINSTALL") << endl; |
ba030c0e | 125 | } |
126 | ||
5f91c9e8 | 127 | //______________________________________________________________________________ |
d1cd2474 | 128 | AliMUONSt1GeometryBuilderV2::AliMUONSt1GeometryBuilderV2() |
129 | : AliMUONVGeometryBuilder(), | |
130 | fMUON(0) | |
ba030c0e | 131 | { |
d1cd2474 | 132 | // Default Constructor |
133 | // -- | |
ba030c0e | 134 | } |
135 | ||
5f91c9e8 | 136 | //______________________________________________________________________________ |
d1cd2474 | 137 | AliMUONSt1GeometryBuilderV2::AliMUONSt1GeometryBuilderV2(const AliMUONSt1GeometryBuilderV2& rhs) |
138 | : AliMUONVGeometryBuilder(rhs) | |
ba030c0e | 139 | { |
140 | // Dummy copy constructor | |
d1cd2474 | 141 | |
142 | Fatal("Copy constructor", | |
143 | "Copy constructor is not implemented."); | |
ba030c0e | 144 | } |
145 | ||
5f91c9e8 | 146 | //______________________________________________________________________________ |
d1cd2474 | 147 | AliMUONSt1GeometryBuilderV2::~AliMUONSt1GeometryBuilderV2() |
ba030c0e | 148 | { |
149 | // Destructor | |
ba030c0e | 150 | } |
151 | ||
d1cd2474 | 152 | |
153 | //______________________________________________________________________________ | |
154 | AliMUONSt1GeometryBuilderV2& | |
155 | AliMUONSt1GeometryBuilderV2::operator = (const AliMUONSt1GeometryBuilderV2& rhs) | |
156 | { | |
157 | // check assignement to self | |
158 | if (this == &rhs) return *this; | |
159 | ||
160 | Fatal("operator=", | |
161 | "Assignment operator is not implemented."); | |
162 | ||
163 | return *this; | |
164 | } | |
165 | ||
5f91c9e8 | 166 | // |
167 | // Private methods | |
168 | // | |
169 | ||
170 | //______________________________________________________________________________ | |
d1cd2474 | 171 | void AliMUONSt1GeometryBuilderV2::CreateHole() |
ba030c0e | 172 | { |
5f91c9e8 | 173 | // Create all the elements found inside a foam hole |
ba030c0e | 174 | // -- |
d1cd2474 | 175 | Int_t* idtmed = fMUON->GetIdtmed()->GetArray()-1099; |
176 | Int_t idAir = idtmed[1100]; // medium 1 | |
177 | //Int_t idCopper = idtmed[1109]; // medium 10 = copper | |
178 | Int_t idCopper = idtmed[1121]; // medium 22 = copper | |
ba030c0e | 179 | |
5f91c9e8 | 180 | GReal_t par[3]; |
181 | GReal_t posX,posY,posZ; | |
182 | ||
183 | par[0] = fgkHxHole; | |
184 | par[1] = fgkHyHole; | |
185 | par[2] = fgkHzFoam; | |
186 | gMC->Gsvolu(fgkHoleName,"BOX",idAir,par,3); | |
ba030c0e | 187 | |
5f91c9e8 | 188 | par[0] = fgkHxKapton; |
189 | par[1] = fgkHyKapton; | |
190 | par[2] = fgkHzSnPb; | |
191 | gMC->Gsvolu("SNPB", "BOX", idCopper, par, 3); | |
192 | posX = 0.; | |
193 | posY = 0.; | |
194 | posZ = -fgkHzFoam+fgkHzSnPb; | |
195 | gMC->Gspos("SNPB",1,fgkHoleName, posX, posY, posZ, 0,"ONLY"); | |
ba030c0e | 196 | |
5f91c9e8 | 197 | par[0] = fgkHxHole; |
198 | par[1] = fgkHyBergPlastic; | |
199 | par[2] = fgkHzKapton; | |
200 | gMC->Gsvolu("KAPT", "BOX", idCopper, par, 3); | |
201 | posX = 0.; | |
202 | posY = 0.; | |
203 | posZ = 0.; | |
204 | gMC->Gspos("KAPT",1,fgkHoleName, posX, posY, posZ, 0,"ONLY"); | |
205 | } | |
ba030c0e | 206 | |
5f91c9e8 | 207 | //______________________________________________________________________________ |
d1cd2474 | 208 | void AliMUONSt1GeometryBuilderV2::CreateDaughterBoard() |
5f91c9e8 | 209 | { |
210 | // Create all the elements in a daughter board | |
211 | // -- | |
d1cd2474 | 212 | Int_t* idtmed = fMUON->GetIdtmed()->GetArray()-1099; |
5f91c9e8 | 213 | Int_t idAir = idtmed[1100]; // medium 1 |
d1cd2474 | 214 | //Int_t idCopper = idtmed[1109]; // medium 10 = copper |
215 | //Int_t idPlastic =idtmed[1116]; // medium 17 = Plastic | |
216 | Int_t idCopper = idtmed[1121]; // medium 22 = copper | |
217 | Int_t idPlastic =idtmed[1127]; // medium 28 = Plastic | |
ba030c0e | 218 | |
5f91c9e8 | 219 | GReal_t par[3]; |
220 | GReal_t posX,posY,posZ; | |
221 | ||
222 | par[0]=fgkHxDaughter; | |
223 | par[1]=fgkHyDaughter; | |
224 | par[2]=TotalHzDaughter(); | |
225 | gMC->Gsvolu(fgkDaughterName,"BOX",idAir,par,3); | |
ba030c0e | 226 | |
5f91c9e8 | 227 | par[0]=fgkHxBergPlastic; |
228 | par[1]=fgkHyBergPlastic; | |
229 | par[2]=fgkHzBergPlastic; | |
230 | gMC->Gsvolu("BRGP","BOX",idPlastic,par,3); | |
231 | posX=0.; | |
232 | posY=0.; | |
233 | posZ = -TotalHzDaughter() + fgkHzBergPlastic; | |
234 | gMC->Gspos("BRGP",1,fgkDaughterName,posX,posY,posZ,0,"ONLY"); | |
235 | ||
236 | par[0]=fgkHxBergCopper; | |
237 | par[1]=fgkHyBergCopper; | |
238 | par[2]=fgkHzBergCopper; | |
239 | gMC->Gsvolu("BRGC","BOX",idCopper,par,3); | |
240 | posX=0.; | |
241 | posY=0.; | |
242 | posZ=0.; | |
243 | gMC->Gspos("BRGC",1,"BRGP",posX,posY,posZ,0,"ONLY"); | |
244 | ||
245 | par[0]=fgkHxDaughter; | |
246 | par[1]=fgkHyDaughter; | |
247 | par[2]=fgkHzDaughter; | |
248 | gMC->Gsvolu("DGHT","BOX",idCopper,par,3); | |
249 | posX=0.; | |
250 | posY=0.; | |
251 | posZ = -TotalHzDaughter() + 2.*fgkHzBergPlastic + fgkHzDaughter; | |
252 | gMC->Gspos("DGHT",1,fgkDaughterName,posX,posY,posZ,0,"ONLY"); | |
253 | } | |
254 | ||
255 | //______________________________________________________________________________ | |
d1cd2474 | 256 | void AliMUONSt1GeometryBuilderV2::CreateInnerLayers() |
5f91c9e8 | 257 | { |
258 | // Create the layer of sensitive volumes with gas | |
259 | // and the copper layer. | |
260 | // -- | |
261 | ||
262 | // Gas Medium | |
d1cd2474 | 263 | Int_t* idtmed = fMUON->GetIdtmed()->GetArray()-1099; |
264 | //Int_t idArCO2 = idtmed[1108]; // medium 9 (ArCO2 80%) | |
265 | //Int_t idCopper = idtmed[1109]; // medium 10 = copper | |
266 | Int_t idArCO2 = idtmed[1124]; // medium 25 (ArCO2 80%) | |
267 | Int_t idCopper = idtmed[1121]; // medium 22 = copper | |
5f91c9e8 | 268 | |
269 | Float_t par[11]; | |
270 | ||
271 | //Make gas volume - composed of 11 trapezoids | |
272 | // section 1 of 11 | |
273 | par[0] = fgkHzGas; | |
274 | par[1] = 0.; | |
275 | par[2] = 0.; | |
276 | par[3] = 71.33/2.; | |
277 | par[4] = 9.76/2.; | |
278 | par[5] = 48.77/2.; | |
279 | par[6] = 15.3; | |
280 | par[7] = 71.33/2.; | |
281 | par[8] = 9.76/2.; | |
282 | par[9] = 48.77/2.; | |
283 | par[10] = 15.3; | |
284 | ||
285 | gMC->Gsvolu("SA1G", "TRAP", idArCO2, par, 11); | |
286 | gMC->Gsvolu("SA2G", "TRAP", idArCO2, par, 11); | |
ba030c0e | 287 | |
5f91c9e8 | 288 | par[0] = fgkHzPadPlane; |
289 | gMC->Gsvolu("SA1C", "TRAP", idCopper,par, 11); | |
290 | ||
291 | // section 2 of 11 | |
292 | par[0] = fgkHzGas; | |
293 | par[1] = 0.; | |
294 | par[2] = 0.; | |
295 | par[3] = 79.68/2.; | |
296 | par[4] = 10.4/2.; | |
297 | par[5] = 57.0/2.; | |
298 | par[6] = 0.; | |
299 | par[7] = 79.68/2.; | |
300 | par[8] = 10.4/2.; | |
301 | par[9] = 57.0/2.; | |
302 | par[10] = 0.; | |
303 | gMC->Gsvolu("SB1G", "TRAP", idArCO2, par, 11); | |
304 | gMC->Gsvolu("SB2G", "TRAP", idArCO2, par, 11); | |
305 | ||
306 | par[0] = fgkHzPadPlane; | |
307 | gMC->Gsvolu("SB1C", "TRAP", idCopper,par, 11); | |
308 | ||
309 | // section 3 of 11 | |
310 | par[0] = fgkHzGas; | |
311 | par[1] = 0.; | |
312 | par[2] = 0.; | |
313 | par[3] = 71.33/2.; | |
314 | par[4] = 48.77/2.; | |
315 | par[5] = 9.73/2.; | |
316 | par[6] = -15.3; | |
317 | par[7] = 71.33/2.; | |
318 | par[8] = 48.77/2.; | |
319 | par[9] = 9.73/2.; | |
320 | par[10] = -15.3; | |
321 | ||
322 | gMC->Gsvolu("SC1G", "TRAP", idArCO2, par, 11); | |
323 | gMC->Gsvolu("SC2G", "TRAP", idArCO2, par, 11); | |
324 | ||
325 | par[0] = fgkHzPadPlane; | |
326 | gMC->Gsvolu("SC1C", "TRAP", idCopper,par, 11); | |
327 | ||
328 | // section 4 of 11 | |
329 | par[0] = fgkHzGas; | |
330 | par[1] = 0.; | |
331 | par[2] = 0.; | |
332 | par[3] = 6.00/2.; | |
333 | par[4] = 0.; | |
334 | par[5] = 1.56/2.; | |
335 | par[6] = 7.41; | |
336 | par[7] = 6.00/2.; | |
337 | par[8] = 0.; | |
338 | par[9] = 1.56/2.; | |
339 | par[10] = 7.41; | |
340 | gMC->Gsvolu("SD1G", "TRAP", idArCO2, par, 11); | |
341 | gMC->Gsvolu("SD2G", "TRAP", idArCO2, par, 11); | |
342 | ||
343 | par[0] = fgkHzPadPlane; | |
344 | gMC->Gsvolu("SD1C", "TRAP", idCopper,par, 11); | |
345 | ||
346 | // section 5 of 11 | |
347 | par[0] = fgkHzGas; | |
348 | par[1] = 0.; | |
349 | par[2] = 0.; | |
350 | par[3] = 1.516/2.; | |
351 | par[4] = 0.; | |
352 | par[5] = 0.829/2.; | |
353 | par[6] = 15.3; | |
354 | par[7] = 1.516/2.; | |
355 | par[8] = 0.; | |
356 | par[9] = 0.829/2.; | |
357 | par[10] = 15.3; | |
358 | gMC->Gsvolu("SE1G", "TRAP", idArCO2, par, 11); | |
359 | gMC->Gsvolu("SE2G", "TRAP", idArCO2, par, 11); | |
360 | ||
361 | par[0] = fgkHzPadPlane; | |
362 | gMC->Gsvolu("SE1C", "TRAP", idCopper,par, 11); | |
363 | ||
364 | // section 6 of 11 | |
365 | par[0] = fgkHzGas; | |
366 | par[1] = 0.; | |
367 | par[2] = 0.; | |
368 | par[3] = 3.92/2.; | |
369 | par[4] = 0.; | |
370 | par[5] = 0.562/2.; | |
371 | par[6] = -4.1; | |
372 | par[7] = 3.92/2.; | |
373 | par[8] = 0.; | |
374 | par[9] = 0.562/2.; | |
375 | par[10] = -4.1; | |
376 | gMC->Gsvolu("SF1G", "TRAP", idArCO2, par, 11); | |
377 | gMC->Gsvolu("SF2G", "TRAP", idArCO2, par, 11); | |
378 | ||
379 | par[0] = fgkHzPadPlane; | |
380 | gMC->Gsvolu("SF1C", "TRAP", idCopper,par, 11); | |
381 | ||
382 | // section 7 of 11 | |
383 | par[0] = fgkHzGas; | |
384 | par[1] = 0.; | |
385 | par[2] = 0.; | |
386 | par[3] = 0.941/2.; | |
387 | par[4] = 0.562/2.; | |
388 | par[5] = 0.; | |
389 | par[6] = -16.6; | |
390 | par[7] = 0.941/2.; | |
391 | par[8] = 0.562/2.; | |
392 | par[9] = 0.; | |
393 | par[10] =-16.6; | |
394 | gMC->Gsvolu("SG1G", "TRAP", idArCO2, par, 11); | |
395 | gMC->Gsvolu("SG2G", "TRAP", idArCO2, par, 11); | |
396 | ||
397 | par[0] = fgkHzPadPlane; | |
398 | gMC->Gsvolu("SG1C", "TRAP", idCopper,par, 11); | |
399 | ||
400 | // section 8 of 11 | |
401 | par[0] = fgkHzGas; | |
402 | par[1] = 0.; | |
403 | par[2] = 0.; | |
404 | par[3] = 3.94/2.; | |
405 | par[4] = 0.57/2.; | |
406 | par[5] = 0.; | |
407 | par[6] = 4.14; | |
408 | par[7] = 3.94/2.; | |
409 | par[8] = 0.57/2.; | |
410 | par[9] = 0.; | |
411 | par[10] = 4.14; | |
412 | gMC->Gsvolu("SH1G", "TRAP", idArCO2, par, 11); | |
413 | gMC->Gsvolu("SH2G", "TRAP", idArCO2, par, 11); | |
414 | ||
415 | par[0] = fgkHzPadPlane; | |
416 | gMC->Gsvolu("SH1C", "TRAP", idCopper,par, 11); | |
417 | ||
418 | // section 9 of 11 | |
419 | par[0] = fgkHzGas; | |
420 | par[1] = 0.; | |
421 | par[2] = 0.; | |
422 | par[3] = 0.95/2.; | |
423 | par[4] = 0.; | |
424 | par[5] = 0.57/2; | |
425 | par[6] = 16.7; | |
426 | par[7] = 0.95/2.; | |
427 | par[8] = 0.; | |
428 | par[9] = 0.57/2; | |
429 | par[10] = 16.7; | |
430 | gMC->Gsvolu("SI1G", "TRAP", idArCO2, par, 11); | |
431 | gMC->Gsvolu("SI2G", "TRAP", idArCO2, par, 11); | |
432 | ||
433 | par[0] = fgkHzPadPlane; | |
434 | gMC->Gsvolu("SI1C", "TRAP", idCopper,par, 11); | |
435 | ||
436 | // section 10 of 11 | |
437 | par[0] = fgkHzGas; | |
438 | par[1] = 0.; | |
439 | par[2] = 0.; | |
440 | par[3] = 1.49/2.; | |
441 | par[4] = 0.; | |
442 | par[5] = 0.817/2.; | |
443 | par[6] = -15.4; | |
444 | par[7] = 1.49/2.; | |
445 | par[8] = 0.; | |
446 | par[9] = 0.817/2.; | |
447 | par[10] = -15.4; | |
448 | gMC->Gsvolu("SJ1G", "TRAP", idArCO2, par, 11); | |
449 | gMC->Gsvolu("SJ2G", "TRAP", idArCO2, par, 11); | |
450 | ||
451 | par[0] = fgkHzPadPlane; | |
452 | gMC->Gsvolu("SJ1C", "TRAP", idCopper,par, 11); | |
453 | ||
454 | // section 11 of 11 | |
455 | par[0] = fgkHzGas; | |
456 | par[1] = 0.; | |
457 | par[2] = 0.; | |
458 | par[3] = 5.93/2.; | |
459 | par[4] = 0.; | |
460 | par[5] = 1.49/2.; | |
461 | par[6] = -7.16; | |
462 | par[7] = 5.93/2.; | |
463 | par[8] = 0.; | |
464 | par[9] = 1.49/2.; | |
465 | par[10] = -7.16; | |
466 | gMC->Gsvolu("SK1G", "TRAP", idArCO2, par, 11); | |
467 | gMC->Gsvolu("SK2G", "TRAP", idArCO2, par, 11); | |
468 | ||
469 | par[0] = fgkHzPadPlane; | |
470 | gMC->Gsvolu("SK1C", "TRAP", idCopper,par, 11); | |
ba030c0e | 471 | } |
5f91c9e8 | 472 | |
473 | //______________________________________________________________________________ | |
d1cd2474 | 474 | void AliMUONSt1GeometryBuilderV2::CreateQuadrant(Int_t chamber) |
ba030c0e | 475 | { |
476 | // create the quadrant (bending and non-bending planes) | |
477 | // for the given chamber | |
478 | // -- | |
5f91c9e8 | 479 | |
ba030c0e | 480 | CreateFrame(chamber); |
481 | ||
d1cd2474 | 482 | #ifdef ST1_WITH_STL |
483 | SpecialMap specialMap; | |
5f91c9e8 | 484 | specialMap[1001] = AliMUONSt1SpecialMotif(TVector2( 0.1, 0.84), 90.); |
485 | specialMap[1002] = AliMUONSt1SpecialMotif(TVector2( 0.5, 0.36)); | |
486 | specialMap[1003] = AliMUONSt1SpecialMotif(TVector2(1.01, 0.36)); | |
d1cd2474 | 487 | #endif |
488 | ||
489 | #ifdef ST1_WITH_ROOT | |
490 | SpecialMap specialMap; | |
491 | specialMap.Add(1001, (Long_t) new AliMUONSt1SpecialMotif(TVector2( 0.1, 0.84), 90.)); | |
492 | specialMap.Add(1002, (Long_t) new AliMUONSt1SpecialMotif(TVector2( 0.5, 0.36))); | |
493 | specialMap.Add(1003, (Long_t) new AliMUONSt1SpecialMotif(TVector2(1.01, 0.36))); | |
494 | #endif | |
495 | ||
4a147321 | 496 | AliMpReader reader1(kStation1, kBendingPlane); |
5f91c9e8 | 497 | AliMpSector* sector1 = reader1.BuildSector(); |
ba030c0e | 498 | |
5f91c9e8 | 499 | Bool_t reflectZ = true; |
500 | TVector3 where = TVector3(2.5+0.1+0.56+0.001, 2.5+0.1+0.001, 0.); | |
501 | PlaceSector(sector1, specialMap, where, reflectZ, chamber); | |
ba030c0e | 502 | |
d1cd2474 | 503 | #ifdef ST1_WITH_STL |
ba030c0e | 504 | specialMap.clear(); |
505 | specialMap[4001] = AliMUONSt1SpecialMotif(TVector2(1.01,0.59),90.); | |
506 | specialMap[4002] = AliMUONSt1SpecialMotif(TVector2(1.96, 0.17)); | |
507 | specialMap[4003] = AliMUONSt1SpecialMotif(TVector2(1.61,-1.18)); | |
508 | specialMap[4004] = AliMUONSt1SpecialMotif(TVector2(0.2 ,-0.08)); | |
509 | specialMap[4005] = AliMUONSt1SpecialMotif(TVector2(0.2 , 0.25)); | |
510 | specialMap[4006] = AliMUONSt1SpecialMotif(TVector2(0.28, 0.21)); | |
d1cd2474 | 511 | #endif |
512 | ||
513 | #ifdef ST1_WITH_ROOT | |
514 | specialMap.Delete(); | |
515 | specialMap.Add(4001,(Long_t) new AliMUONSt1SpecialMotif(TVector2(1.01,0.59),90.)); | |
516 | specialMap.Add(4002,(Long_t) new AliMUONSt1SpecialMotif(TVector2(1.96, 0.17))); | |
517 | specialMap.Add(4003,(Long_t) new AliMUONSt1SpecialMotif(TVector2(1.61,-1.18))); | |
518 | specialMap.Add(4004,(Long_t) new AliMUONSt1SpecialMotif(TVector2(0.2 ,-0.08))); | |
519 | specialMap.Add(4005,(Long_t) new AliMUONSt1SpecialMotif(TVector2(0.2 , 0.25))); | |
520 | specialMap.Add(4006,(Long_t) new AliMUONSt1SpecialMotif(TVector2(0.28, 0.21))); | |
521 | #endif | |
522 | ||
4a147321 | 523 | AliMpReader reader2(kStation1, kNonBendingPlane); |
5f91c9e8 | 524 | AliMpSector* sector2 = reader2.BuildSector(); |
ba030c0e | 525 | |
5f91c9e8 | 526 | reflectZ = false; |
527 | where = TVector3(where.X()+0.63/2.,where.Y()+0.42/2., 0.); //add a half pad shift | |
528 | PlaceSector(sector2, specialMap, where, reflectZ, chamber); | |
d1cd2474 | 529 | |
530 | #ifdef ST1_WITH_ROOT | |
531 | specialMap.Delete(); | |
532 | #endif | |
ba030c0e | 533 | } |
534 | ||
5f91c9e8 | 535 | //______________________________________________________________________________ |
d1cd2474 | 536 | void AliMUONSt1GeometryBuilderV2::CreateFoamBox(const char* name,const TVector2& dimensions) |
ba030c0e | 537 | { |
5f91c9e8 | 538 | // create all the elements in the copper plane |
539 | // -- | |
ba030c0e | 540 | |
d1cd2474 | 541 | Int_t* idtmed = fMUON->GetIdtmed()->GetArray()-1099; |
5f91c9e8 | 542 | Int_t idAir = idtmed[1100]; // medium 1 |
d1cd2474 | 543 | //Int_t idFoam = idtmed[1115]; // medium 16 = Foam |
544 | //Int_t idFR4 = idtmed[1114]; // medium 15 = FR4 | |
545 | Int_t idFoam = idtmed[1125]; // medium 26 = Foam | |
546 | Int_t idFR4 = idtmed[1122]; // medium 23 = FR4 | |
ba030c0e | 547 | |
5f91c9e8 | 548 | // mother volume |
549 | GReal_t par[3]; | |
550 | par[0] = dimensions.X(); | |
551 | par[1] = dimensions.Y(); | |
552 | par[2] = TotalHzPlane(); | |
553 | gMC->Gsvolu(name,"BOX",idAir,par,3); | |
554 | ||
555 | // foam layer | |
556 | GReal_t posX,posY,posZ; | |
557 | char eName[5]; | |
558 | strcpy(eName,name); | |
559 | eName[3]=fgkFoamLayerSuffix; | |
560 | par[0] = dimensions.X(); | |
561 | par[1] = dimensions.Y(); | |
562 | par[2] = fgkHzFoam; | |
563 | gMC->Gsvolu(eName,"BOX",idFoam,par,3); | |
564 | posX=0.; | |
565 | posY=0.; | |
566 | posZ = -TotalHzPlane() + fgkHzFoam; | |
567 | gMC->Gspos(eName,1,name,posX,posY,posZ,0,"ONLY"); | |
ba030c0e | 568 | |
5f91c9e8 | 569 | // mechanical plane FR4 layer |
570 | eName[3]='R'; | |
571 | par[0] = dimensions.X(); | |
572 | par[1] = dimensions.Y(); | |
573 | par[2] = fgkHzFR4; | |
574 | gMC->Gsvolu(eName,"BOX",idFR4,par,3); | |
575 | posX=0.; | |
576 | posY=0.; | |
577 | posZ = -TotalHzPlane()+ 2.*fgkHzFoam + fgkHzFR4; | |
578 | gMC->Gspos(eName,1,name,posX,posY,posZ,0,"ONLY"); | |
579 | } | |
ba030c0e | 580 | |
5f91c9e8 | 581 | //______________________________________________________________________________ |
d1cd2474 | 582 | void AliMUONSt1GeometryBuilderV2::CreatePlaneSegment(const char* name,const TVector2& dimensions, |
5f91c9e8 | 583 | Int_t nofHoles) |
584 | { | |
585 | // Create a segment of a plane (this includes a foam layer, | |
586 | // holes in the foam to feed the kaptons through, kapton connectors | |
587 | // and the mother board.) | |
588 | // -- | |
ba030c0e | 589 | |
5f91c9e8 | 590 | CreateFoamBox(name,dimensions); |
ba030c0e | 591 | |
5f91c9e8 | 592 | char eName[5]; |
593 | strcpy(eName,name); | |
594 | eName[3]=fgkFoamLayerSuffix; | |
ba030c0e | 595 | |
5f91c9e8 | 596 | for (Int_t holeNum=0;holeNum<nofHoles;holeNum++) { |
597 | GReal_t posX = ((2.*holeNum+1.)/nofHoles-1.)*dimensions.X(); | |
598 | GReal_t posY = 0.; | |
599 | GReal_t posZ = 0.; | |
ba030c0e | 600 | |
5f91c9e8 | 601 | gMC->Gspos(fgkHoleName,holeNum+1,eName,posX,posY,posZ,0,"ONLY"); |
602 | } | |
603 | } | |
ba030c0e | 604 | |
5f91c9e8 | 605 | //______________________________________________________________________________ |
d1cd2474 | 606 | void AliMUONSt1GeometryBuilderV2::CreateFrame(Int_t chamber) |
5f91c9e8 | 607 | { |
608 | // Create the non-sensitive elements of the frame for the <chamber> | |
609 | // | |
610 | // | |
611 | // Model and notation: | |
612 | // | |
613 | // The Quadrant volume name starts with SQ | |
614 | // The volume segments are numbered 00 to XX. | |
615 | // | |
616 | // OutTopFrame | |
617 | // (SQ02-16) | |
618 | // ------------ | |
619 | // OutEdgeFrame / | | |
620 | // (SQ17-24) / | InVFrame (SQ00-01) | |
621 | // / | | |
622 | // | | | |
623 | // OutVFrame | _- - | |
624 | // (SQ25-39) | | InArcFrame (SQ42-45) | |
625 | // | | | |
626 | // ------------- | |
627 | // InHFrame (SQ40-41) | |
628 | // | |
629 | // | |
630 | // 06 February 2003 - Overlapping volumes resolved. | |
631 | // One quarter chamber is comprised of three TUBS volumes: SQMx, SQNx, and SQFx, | |
632 | // where SQMx is the Quadrant Middle layer for chamber <x> ( posZ in [-3.25,3.25]), | |
633 | // SQNx is the Quadrant Near side layer for chamber <x> ( posZ in [-6.25,3-.25) ), and | |
634 | // SQFx is the Quadrant Far side layer for chamber <x> ( posZ in (3.25,6.25] ). | |
635 | //--- | |
ba030c0e | 636 | |
d1cd2474 | 637 | const Float_t kNearFarLHC=2.4; // Near and Far TUBS Origin wrt LHC Origin |
ba030c0e | 638 | |
ba030c0e | 639 | // tracking medias |
d1cd2474 | 640 | Int_t* idtmed = fMUON->GetIdtmed()->GetArray()-1099; |
5f91c9e8 | 641 | |
ba030c0e | 642 | Int_t idAir = idtmed[1100]; // medium 1 |
d1cd2474 | 643 | //Int_t idFrameEpoxy = idtmed[1115]; // medium 16 = Frame Epoxy ME730 |
644 | //Int_t idInox = idtmed[1116]; // medium 17 Stainless Steel (18%Cr,9%Ni,Fe) | |
645 | //Int_t idFR4 = idtmed[1110]; // medium 11 FR4 | |
646 | //Int_t idCopper = idtmed[1109]; // medium 10 Copper | |
647 | //Int_t idAlu = idtmed[1103]; // medium 4 Aluminium | |
648 | Int_t idFrameEpoxy = idtmed[1123]; // medium 24 = Frame Epoxy ME730 // was 20 not 16 | |
649 | Int_t idInox = idtmed[1128]; // medium 29 Stainless Steel (18%Cr,9%Ni,Fe) // was 21 not 17 | |
650 | Int_t idFR4 = idtmed[1122]; // medium 23 FR4 // was 15 not 11 | |
651 | Int_t idCopper = idtmed[1121]; // medium 22 Copper | |
652 | Int_t idAlu = idtmed[1120]; // medium 21 Aluminium | |
5f91c9e8 | 653 | |
654 | ||
655 | // Rotation Matrices | |
656 | Int_t rot1, rot2, rot3; | |
657 | ||
658 | // Rotation matrices | |
d1cd2474 | 659 | fMUON->AliMatrix(rot1, 90., 90., 90., 180., 0., 0.); // +90 deg in x-y plane |
660 | fMUON->AliMatrix(rot2, 90., 45., 90., 135., 0., 0.); // +45 deg in x-y plane | |
661 | Content-type: text/html ]>