1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 Revision 1.4 2002/03/28 14:59:07 cblume
21 Revision 1.3 2002/02/11 14:21:16 cblume
22 Update of the geometry. Get rid of MANY
24 Revision 1.2 2001/11/08 13:13:08 cblume
25 Change to MANY for UCFI/M/O and UAFI/M/O
27 Revision 1.1 2001/11/06 17:19:41 cblume
28 Add detailed geometry and simple simulator
32 ///////////////////////////////////////////////////////////////////////////////
34 // Detailed TRD geometry for the spaceframe without holes //
36 ///////////////////////////////////////////////////////////////////////////////
40 #include "AliTRDgeometryDetail.h"
41 #include "AliTRDparameter.h"
43 ClassImp(AliTRDgeometryDetail)
45 //_____________________________________________________________________________
46 AliTRDgeometryDetail::AliTRDgeometryDetail():AliTRDgeometryFull()
49 // AliTRDgeometryDetail default constructor
56 //_____________________________________________________________________________
57 AliTRDgeometryDetail::~AliTRDgeometryDetail()
60 // AliTRDgeometryDetail destructor
65 //_____________________________________________________________________________
66 void AliTRDgeometryDetail::Init()
69 // Initializes the geometry parameter
72 AliTRDgeometryFull::Init();
76 //_____________________________________________________________________________
77 void AliTRDgeometryDetail::CreateGeometry(Int_t *idtmed)
80 // Create the detailed TRD geometry without hole
81 // including the MCMs and the cooling pipes
84 // Names of the TRD volumina (xx = detector number):
86 // Lower part of the readout chambers (gas volume + radiator)
88 // UAxx Aluminum frames (Al)
89 // UBxx G10 frames (C)
90 // UCxx Inner volumes (Air)
92 // Upper part of the readout chambers (readout plane + fee)
94 // UDxx G10 frames (C)
95 // UExx Inner volumes of the G10 (Air)
96 // UFxx Aluminum frames (Al)
97 // UGxx Inner volumes of the Al (Air)
99 // Inner material layers
101 // UHxx Radiator (Rohacell)
102 // UIxx Entrance window (Mylar)
103 // UJxx Drift volume (Xe/CO2)
104 // UKxx Amplification volume (Xe/CO2)
105 // ULxx Pad plane (Cu)
106 // UMxx Support structure (Rohacell)
107 // UNxx FEE + signal lines (Cu)
110 const Int_t kNparTrd = 4;
111 const Int_t kNparCha = 3;
113 Float_t xpos, ypos, zpos;
115 Float_t parTrd[kNparTrd];
116 Float_t parCha[kNparCha];
124 gMC->Matrix(idrotm, 0.0, 0.0, 90.0, 90.0, 90.0, 0.0);
126 // The TRD mother volume for one sector (Air), full length in z-direction
127 parTrd[0] = fgkSwidth1/2.;
128 parTrd[1] = fgkSwidth2/2.;
129 parTrd[2] = fgkSlenTR1/2.;
130 parTrd[3] = fgkSheight/2.;
131 gMC->Gsvolu("UTR1","TRD1",idtmed[1302-1],parTrd,kNparTrd);
133 // Create the readout volumina
134 CreateReadout(idtmed);
136 // Create the volumina for the cooling
137 CreateCooling(idtmed);
139 for (Int_t icham = 0; icham < kNcham; icham++) {
140 for (Int_t iplan = 0; iplan < kNplan; iplan++) {
142 Int_t iDet = GetDetectorSec(iplan,icham);
144 // The lower part of the readout chambers (gas volume + radiator)
145 // The aluminum frames
146 sprintf(cTagV,"UA%02d",iDet);
147 parCha[0] = fCwidth[iplan]/2.;
148 parCha[1] = fClength[iplan][icham]/2. - fgkHspace/2.;
149 parCha[2] = fgkCraH/2. + fgkCdrH/2.;
150 gMC->Gsvolu(cTagV,"BOX ",idtmed[1301-1],parCha,kNparCha);
152 sprintf(cTagV,"UB%02d",iDet);
153 parCha[0] = fCwidth[iplan]/2. - fgkCalT;
156 gMC->Gsvolu(cTagV,"BOX ",idtmed[1307-1],parCha,kNparCha);
157 // The inner part (air)
158 sprintf(cTagV,"UC%02d",iDet);
159 parCha[0] = fCwidth[iplan]/2. - fgkCalT - fgkCclsT;
160 parCha[1] = fClength[iplan][icham]/2. - fgkHspace/2.- fgkCclfT;
162 gMC->Gsvolu(cTagV,"BOX ",idtmed[1302-1],parCha,kNparCha);
164 // The upper part of the readout chambers (readout plane + fee)
166 sprintf(cTagV,"UD%02d",iDet);
167 parCha[0] = fCwidth[iplan]/2. + fgkCroW;
168 parCha[1] = fClength[iplan][icham]/2. - fgkHspace/2.;
169 parCha[2] = fgkCamH/2.;
170 gMC->Gsvolu(cTagV,"BOX ",idtmed[1307-1],parCha,kNparCha);
171 // The inner part of the G10 frame (air)
172 sprintf(cTagV,"UE%02d",iDet);
173 parCha[0] = fCwidth[iplan]/2. + fgkCroW - fgkCcuT;
174 parCha[1] = fClength[iplan][icham]/2. - fgkHspace/2.- fgkCcuT;
176 gMC->Gsvolu(cTagV,"BOX ",idtmed[1302-1],parCha,kNparCha);
177 // The aluminum frames
178 sprintf(cTagV,"UF%02d",iDet);
179 parCha[0] = fCwidth[iplan]/2. + fgkCroW;
180 parCha[1] = fClength[iplan][icham]/2. - fgkHspace/2.;
181 parCha[2] = fgkCroH/2.;
182 gMC->Gsvolu(cTagV,"BOX ",idtmed[1301-1],parCha,kNparCha);
183 // The inner part of the aluminum frames
184 sprintf(cTagV,"UG%02d",iDet);
185 parCha[0] = fCwidth[iplan]/2. + fgkCroW - fgkCauT;
186 parCha[1] = fClength[iplan][icham]/2. - fgkHspace/2.- fgkCauT;
188 gMC->Gsvolu(cTagV,"BOX ",idtmed[1302-1],parCha,kNparCha);
190 // The material layers inside the chambers
193 // Rohacell layer (radiator)
194 parCha[2] = fgkRaThick/2;
195 sprintf(cTagV,"UH%02d",iDet);
196 gMC->Gsvolu(cTagV,"BOX ",idtmed[1315-1],parCha,kNparCha);
197 // Mylar layer (entrance window + HV cathode)
198 parCha[2] = fgkMyThick/2;
199 sprintf(cTagV,"UI%02d",iDet);
200 gMC->Gsvolu(cTagV,"BOX ",idtmed[1308-1],parCha,kNparCha);
201 // Xe/Isobutane layer (drift volume)
202 parCha[2] = fgkDrThick/2.;
203 sprintf(cTagV,"UJ%02d",iDet);
204 gMC->Gsvolu(cTagV,"BOX ",idtmed[1309-1],parCha,kNparCha);
205 // Xe/Isobutane layer (amplification volume)
206 parCha[2] = fgkAmThick/2.;
207 sprintf(cTagV,"UK%02d",iDet);
208 gMC->Gsvolu(cTagV,"BOX ",idtmed[1309-1],parCha,kNparCha);
209 // Cu layer (pad plane)
210 parCha[2] = fgkCuThick/2;
211 sprintf(cTagV,"UL%02d",iDet);
212 gMC->Gsvolu(cTagV,"BOX ",idtmed[1305-1],parCha,kNparCha);
213 // G10 layer (support structure / honeycomb)
214 parCha[2] = fgkSuThick/2;
215 sprintf(cTagV,"UM%02d",iDet);
216 gMC->Gsvolu(cTagV,"BOX ",idtmed[1313-1],parCha,kNparCha);
217 // Cu layer (FEE + signal lines)
218 parCha[2] = fgkFeThick/2;
219 sprintf(cTagV,"UN%02d",iDet);
220 gMC->Gsvolu(cTagV,"BOX ",idtmed[1305-1],parCha,kNparCha);
222 // Position the layers in the chambers
226 // Rohacell layer (radiator)
228 sprintf(cTagV,"UH%02d",iDet);
229 sprintf(cTagM,"UC%02d",iDet);
230 gMC->Gspos(cTagV,1,cTagM,xpos,ypos,zpos,0,"ONLY");
231 // Mylar layer (entrance window + HV cathode)
233 sprintf(cTagV,"UI%02d",iDet);
234 sprintf(cTagM,"UC%02d",iDet);
235 gMC->Gspos(cTagV,1,cTagM,xpos,ypos,zpos,0,"ONLY");
236 // Xe/Isobutane layer (drift volume)
238 sprintf(cTagV,"UJ%02d",iDet);
239 sprintf(cTagM,"UC%02d",iDet);
240 gMC->Gspos(cTagV,1,cTagM,xpos,ypos,zpos,0,"ONLY");
242 // Xe/Isobutane layer (amplification volume)
244 sprintf(cTagV,"UK%02d",iDet);
245 sprintf(cTagM,"UE%02d",iDet);
246 gMC->Gspos(cTagV,1,cTagM,xpos,ypos,zpos,0,"ONLY");
248 // Cu layer (pad plane)
250 sprintf(cTagV,"UL%02d",iDet);
251 sprintf(cTagM,"UG%02d",iDet);
252 gMC->Gspos(cTagV,1,cTagM,xpos,ypos,zpos,0,"ONLY");
253 // G10 layer (support structure)
255 sprintf(cTagV,"UM%02d",iDet);
256 sprintf(cTagM,"UG%02d",iDet);
257 gMC->Gspos(cTagV,1,cTagM,xpos,ypos,zpos,0,"ONLY");
258 // Cu layer (FEE + signal lines)
260 sprintf(cTagV,"UN%02d",iDet);
261 sprintf(cTagM,"UG%02d",iDet);
262 gMC->Gspos(cTagV,1,cTagM,xpos,ypos,zpos,0,"ONLY");
264 // Position the inner volumes of the chambers in the frames
268 // The inside of the lower G10 frame
269 sprintf(cTagV,"UC%02d",iDet);
270 sprintf(cTagM,"UB%02d",iDet);
271 gMC->Gspos(cTagV,1,cTagM,xpos,ypos,zpos,0,"ONLY");
272 // The lower G10 frame inside the aluminum frame
273 sprintf(cTagV,"UB%02d",iDet);
274 sprintf(cTagM,"UA%02d",iDet);
275 gMC->Gspos(cTagV,1,cTagM,xpos,ypos,zpos,0,"ONLY");
276 // The inside of the upper G10 frame
277 sprintf(cTagV,"UE%02d",iDet);
278 sprintf(cTagM,"UD%02d",iDet);
279 gMC->Gspos(cTagV,1,cTagM,xpos,ypos,zpos,0,"ONLY");
280 // The inside of the upper aluminum frame
281 sprintf(cTagV,"UG%02d",iDet);
282 sprintf(cTagM,"UF%02d",iDet);
283 gMC->Gspos(cTagV,1,cTagM,xpos,ypos,zpos,0,"ONLY");
285 // Position the frames of the chambers in the TRD mother volume
287 ypos = - fClength[iplan][0] - fClength[iplan][1] - fClength[iplan][2]/2.;
288 for (Int_t ic = 0; ic < icham; ic++) {
289 ypos += fClength[iplan][ic];
291 ypos += fClength[iplan][icham]/2.;
292 zpos = fgkCraH/2. + fgkCdrH/2. - fgkSheight/2. + iplan * (fgkCH + fgkVspace);
293 // The lower aluminum frame, radiator + drift region
294 sprintf(cTagV,"UA%02d",iDet);
295 gMC->Gspos(cTagV,1,"UTR1",xpos,ypos,zpos,0,"ONLY");
296 // The upper G10 frame, amplification region
297 sprintf(cTagV,"UD%02d",iDet);
298 zpos += fgkCamH/2. + fgkCraH/2. + fgkCdrH/2.;
299 gMC->Gspos(cTagV,1,"UTR1",xpos,ypos,zpos,0,"ONLY");
300 // The upper aluminum frame
301 sprintf(cTagV,"UF%02d",iDet);
302 zpos += fgkCroH/2. + fgkCamH/2.;
303 gMC->Gspos(cTagV,1,"UTR1",xpos,ypos,zpos,0,"ONLY");
305 // Position the MCM volumina
306 PositionReadout(iplan,icham);
308 // Position the volumina for the cooling
309 PositionCooling(iplan,icham,idrotm);
317 gMC->Gspos("UTR1",1,"BTR1",xpos,ypos,zpos,0,"ONLY");
318 gMC->Gspos("UTR1",2,"BTR2",xpos,ypos,zpos,0,"ONLY");
319 gMC->Gspos("UTR1",3,"BTR3",xpos,ypos,zpos,0,"ONLY");
323 //_____________________________________________________________________________
324 void AliTRDgeometryDetail::CreateReadout(Int_t *idtmed) const
327 // Create the volumina of the readout electronics
330 const Int_t kNparBox = 3;
332 Float_t parBox[kNparBox];
337 // The mother volume for the MCMs + connectors (air)
341 gMC->Gsvolu("UMCM","BOX",idtmed[1302-1],parBox,kNparBox);
343 // The MCM carrier G10 layer
347 gMC->Gsvolu("UMC1","BOX",idtmed[1319-1],parBox,kNparBox);
348 // The MCM carrier Cu layer
351 parBox[2] = 0.0034/2.;
352 gMC->Gsvolu("UMC2","BOX",idtmed[1318-1],parBox,kNparBox);
353 // The MCM carrier Sn layer
356 parBox[2] = 0.004/2.;
357 gMC->Gsvolu("UMC3","BOX",idtmed[1317-1],parBox,kNparBox);
358 // The MCM carrier Al layer
362 gMC->Gsvolu("UMC4","BOX",idtmed[1316-1],parBox,kNparBox);
364 // The epoxy of chip no.1
365 parBox[0] = 0.548/2.;
366 parBox[1] = 0.548/2.;
368 gMC->Gsvolu("UCE1","BOX",idtmed[1321-1],parBox,kNparBox);
369 // The silicon of chip no.1
370 parBox[0] = 0.316/2.;
371 parBox[1] = 0.316/2.;
373 gMC->Gsvolu("UCS1","BOX",idtmed[1320-1],parBox,kNparBox);
375 // The epoxy of chip no.2
376 parBox[0] = 1.549/2.;
377 parBox[1] = 1.549/2.;
379 gMC->Gsvolu("UCE2","BOX",idtmed[1321-1],parBox,kNparBox);
380 // The silicon of chip no.2
381 parBox[0] = 0.894/2.;
382 parBox[1] = 0.894/2.;
384 gMC->Gsvolu("UCS2","BOX",idtmed[1320-1],parBox,kNparBox);
386 // The PE of the connector
390 gMC->Gsvolu("UCN1","BOX",idtmed[1322-1],parBox,kNparBox);
391 // The Cu of the connector
394 parBox[2] = 0.005/2.;
395 gMC->Gsvolu("UCN2","BOX",idtmed[1323-1],parBox,kNparBox);
399 zpos = -0.25 + 0.1/2.;
400 gMC->Gspos("UMC1",1,"UMCM",xpos,ypos,zpos,0,"ONLY");
401 zpos += 0.1/2. + 0.0034/2.;
402 gMC->Gspos("UMC2",1,"UMCM",xpos,ypos,zpos,0,"ONLY");
403 zpos += 0.0034/2 + 0.004/2.;
404 gMC->Gspos("UMC3",1,"UMCM",xpos,ypos,zpos,0,"ONLY");
405 zpos += 0.004/2 + 0.05/2.;
406 gMC->Gspos("UMC4",1,"UMCM",xpos,ypos,zpos,0,"ONLY");
407 zpos += 0.05/2. + 0.1/2.;
409 gMC->Gspos("UCE1",1,"UMCM",xpos,ypos,zpos,0,"ONLY");
411 gMC->Gspos("UCE2",1,"UMCM",xpos,ypos,zpos,0,"ONLY");
412 zpos += 0.1/2. + 0.03/2.;
414 gMC->Gspos("UCS1",1,"UMCM",xpos,ypos,zpos,0,"ONLY");
416 gMC->Gspos("UCS2",1,"UMCM",xpos,ypos,zpos,0,"ONLY");
418 ypos = 3.4/2. - 0.4/2.;
419 zpos = -0.25 + 0.3/2.;
420 gMC->Gspos("UCN1",1,"UMCM",xpos,ypos,zpos,0,"ONLY");
421 zpos += 0.3/2. + 0.005/2.;
422 gMC->Gspos("UCN2",1,"UMCM",xpos,ypos,zpos,0,"ONLY");
426 //_____________________________________________________________________________
427 void AliTRDgeometryDetail::PositionReadout(Int_t ipla, Int_t icha)
430 // Position the volumina inside the readout mother volume
433 const Int_t kNmcmChannel = 18;
435 AliTRDparameter *parameter = new AliTRDparameter();
437 Int_t nMCMrow = parameter->GetRowMax(ipla,icha,0);
438 Int_t nMCMcol = parameter->GetColMax(ipla) / kNmcmChannel;
440 Float_t xSize = (GetChamberWidth(ipla) - 2.*fgkCpadW)
441 / ((Float_t) nMCMcol);
442 Float_t ySize = (GetChamberLength(ipla,icha) - 2.*fgkRpadW)
443 / ((Float_t) nMCMrow);
444 Float_t x0 = parameter->GetCol0(ipla);
445 Float_t y0 = parameter->GetRow0(ipla,icha,0);
447 Int_t iCopy = GetDetector(ipla,icha,0) * 1000;
448 for (Int_t iMCMrow = 0; iMCMrow < nMCMrow; iMCMrow++) {
449 for (Int_t iMCMcol = 0; iMCMcol < nMCMcol; iMCMcol++) {
451 Float_t xpos = (0.5 + iMCMcol) * xSize + x0;
452 Float_t ypos = (0.5 + iMCMrow) * ySize + y0;
453 Float_t zpos = fgkCH - fgkSheight/2. + 0.5/2.
454 + ipla * (fgkCH + fgkVspace);
455 gMC->Gspos("UMCM",iCopy,"UTR1",xpos,ypos,zpos,0,"ONLY");
463 //_____________________________________________________________________________
464 void AliTRDgeometryDetail::CreateCooling(Int_t *idtmed) const
467 // Create the volumina of the cooling
470 const Int_t kNparTube = 3;
472 Float_t parTube[kNparTube];
477 // The aluminum pipe for the cooling
481 gMC->Gsvolu("UCOA","TUBE",idtmed[1324-1],parTube,0);
487 gMC->Gsvolu("UCOW","TUBE",idtmed[1314-1],parTube,kNparTube);
489 // Water inside the cooling pipe
493 gMC->Gspos("UCOW",1,"UCOA",xpos,ypos,zpos,0,"ONLY");
497 //_____________________________________________________________________________
498 void AliTRDgeometryDetail::PositionCooling(Int_t ipla, Int_t icha, Int_t idrotm)
501 // Position the volumina of the cooling
504 const Int_t kNpar = 3;
511 AliTRDparameter *parameter = new AliTRDparameter();
513 Int_t iCopy = GetDetector(ipla,icha,0) * 100;
514 Int_t nMCMrow = parameter->GetRowMax(ipla,icha,0);
516 Float_t ySize = (GetChamberLength(ipla,icha) - 2.*fgkRpadW)
517 / ((Float_t) nMCMrow);
518 Float_t y0 = parameter->GetRow0(ipla,icha,0);
520 // Position the cooling pipes
521 for (Int_t iMCMrow = 0; iMCMrow < nMCMrow; iMCMrow++) {
524 ypos = (0.5 + iMCMrow) * ySize + y0 - 1.9;
525 zpos = fgkCH - fgkSheight/2. + 0.5/2.
526 + ipla * (fgkCH + fgkVspace);
529 par[2] = GetChamberWidth(ipla)/2.+ fgkCroW;
530 gMC->Gsposp("UCOA",iCopy+iMCMrow,"UTR1",xpos,ypos,zpos
531 ,idrotm,"ONLY",par,kNpar);