]>
Commit | Line | Data |
---|---|---|
5d5bdf03 | 1 | /************************************************************************** |
33959f40 | 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 | ||
88cb7938 | 16 | /* $Id$ */ |
33959f40 | 17 | |
18 | /////////////////////////////////////////////////////////////////////////////// | |
19 | // // | |
20 | // Inner Traking System version PPR coarse asymmetric // | |
21 | // This class contains the base procedures for the Inner Tracking System // | |
22 | // // | |
23 | // Authors: R. Barbera | |
24 | // version 6. | |
25 | // Created 2000. | |
26 | // | |
27 | // NOTE: THIS IS THE COARSE ASYMMETRIC PPR geometry of the ITS. | |
28 | // THIS WILL NOT WORK | |
29 | // with the geometry or module classes or any analysis classes. You are | |
30 | // strongly encouraged to uses AliITSv5. | |
31 | // // | |
32 | /////////////////////////////////////////////////////////////////////////////// | |
4ae5bbc4 | 33 | #include <Riostream.h> |
33959f40 | 34 | #include <TMath.h> |
88cb7938 | 35 | #include <TObjArray.h> |
33959f40 | 36 | #include <TRandom.h> |
37 | #include <TVector.h> | |
88cb7938 | 38 | #include <TVirtualMC.h> |
012f0f4c | 39 | #include <TGeoManager.h> |
33959f40 | 40 | |
33959f40 | 41 | #include "AliMagF.h" |
42 | #include "AliConst.h" | |
33959f40 | 43 | #include "AliITShit.h" |
44 | #include "AliITSvPPRcoarseasymm.h" | |
88cb7938 | 45 | #include "AliMagF.h" |
33959f40 | 46 | #include "AliRun.h" |
47 | ||
33959f40 | 48 | ClassImp(AliITSvPPRcoarseasymm) |
49 | ||
50 | //_____________________________________________________________________________ | |
7537d03c | 51 | AliITSvPPRcoarseasymm::AliITSvPPRcoarseasymm(): |
012f0f4c | 52 | AliITS(), |
53 | fMajorVersion(IsVersion()), | |
7537d03c | 54 | fMinorVersion(0), |
55 | fRails(0), | |
012f0f4c | 56 | fSuppMat(0), |
57 | fIgm(kvPPRcourseasymm) { | |
33959f40 | 58 | //////////////////////////////////////////////////////////////////////// |
59 | // Standard default constructor for the ITS version 6. | |
60 | //////////////////////////////////////////////////////////////////////// | |
61 | ||
bae7e562 | 62 | fIdN = 0; |
63 | fIdName = 0; | |
64 | fIdSens = 0; | |
33959f40 | 65 | } |
66 | //_____________________________________________________________________________ | |
012f0f4c | 67 | AliITSvPPRcoarseasymm::AliITSvPPRcoarseasymm(const char *name, const char *title) : |
68 | AliITS(name, title), | |
69 | fMajorVersion(IsVersion()), | |
7537d03c | 70 | fMinorVersion(0), |
71 | fRails(0), | |
012f0f4c | 72 | fSuppMat(0), |
73 | fIgm(kvPPRcourseasymm) { | |
33959f40 | 74 | //////////////////////////////////////////////////////////////////////// |
75 | // Standard constructor for the ITS version 6. | |
76 | //////////////////////////////////////////////////////////////////////// | |
77 | ||
bae7e562 | 78 | fIdN = 6; |
79 | fIdName = new TString[fIdN]; | |
80 | fIdName[0] = "ITS1"; | |
81 | fIdName[1] = "ITS2"; | |
82 | fIdName[2] = "ITS3"; | |
83 | fIdName[3] = "ITS4"; | |
84 | fIdName[4] = "ITS5"; | |
85 | fIdName[5] = "ITS6"; | |
86 | fIdSens = new Int_t[fIdN]; | |
87 | for (Int_t i=0;i<fIdN;i++) fIdSens[i]=0; | |
33959f40 | 88 | } |
33959f40 | 89 | //_____________________________________________________________________________ |
90 | AliITSvPPRcoarseasymm::~AliITSvPPRcoarseasymm() { | |
91 | //////////////////////////////////////////////////////////////////////// | |
92 | // Standard destructor for the ITS version 6. | |
93 | //////////////////////////////////////////////////////////////////////// | |
94 | } | |
95 | ||
33959f40 | 96 | //_____________________________________________________________________________ |
97 | void AliITSvPPRcoarseasymm::CreateGeometry(){ | |
012f0f4c | 98 | //////////////////////////////////////////////////////////////////////// |
99 | // This routine defines and Creates the geometry for version 6 of the ITS. | |
100 | //////////////////////////////////////////////////////////////////////// | |
33959f40 | 101 | |
012f0f4c | 102 | //INNER RADII OF THE SILICON LAYERS |
103 | Float_t rl[6] = { 3.8095,7.,15.,24.,38.5,43.5765 }; | |
104 | //THICKNESSES OF LAYERS (in % radiation length) | |
105 | Float_t drl[6] = { 1.03,1.03,0.94,0.95,0.91,0.87 }; | |
106 | //HALF LENGTHS OF LAYERS | |
107 | Float_t dzl[6] = { 14.35,14.35,25.1,32.1,49.405,55.27 }; | |
108 | //LENGTHS OF END-LADDER BOXES (ALL INCLUDED) | |
109 | Float_t dzb[6] = { 12.4,12.4,13.5,15.,7.5,7.5 }; | |
110 | //THICKNESSES OF END-LADDER BOXES (ALL INCLUDED) | |
111 | Float_t drb[6] = { rl[1]-rl[0],0.2,5.,5.,4.,4. }; | |
33959f40 | 112 | |
113 | ||
012f0f4c | 114 | Float_t dits[3], rlim, zmax; |
115 | Float_t zpos; | |
116 | Float_t pcits[100], ztpc; | |
117 | Int_t idrotm[1999], i; | |
118 | Float_t dgh[100]; | |
33959f40 | 119 | |
012f0f4c | 120 | Int_t rails = 1; // flag for rails (1 --> rails in; 0 --> rails out) |
121 | Int_t suppmat = 0; // flag to change the material of the services | |
122 | // supports (=0 copper, =1 aluminum, =2 carbon) | |
123 | // These constant character strings are set by cvs during commit | |
124 | // do not change them unless you know what you are doing! | |
125 | const Char_t *cvsDate="$Date$"; | |
126 | const Char_t *cvsRevision="$Revision$"; | |
127 | rails = GetRails(); | |
e4f08ac3 | 128 | |
012f0f4c | 129 | if(rails != 0 && rails != 1) { |
130 | cout << "ITS - WARNING: the switch for rails is not set " | |
131 | "neither to 0 (rails out) nor to 1 (rails in)." | |
132 | " The default value of 1 (rails in) will be used." << endl; | |
133 | } // end if | |
72923d44 | 134 | |
012f0f4c | 135 | if (rails == 0 ) { |
136 | cout << "ITS: Rails are out." << endl; | |
137 | } else { | |
138 | cout << "ITS: Rails are in." << endl; | |
139 | } // end if | |
140 | suppmat = GetSupportMaterial(); | |
72923d44 | 141 | |
012f0f4c | 142 | if (suppmat != 0 && suppmat != 1 && suppmat != 2) { |
143 | cout << "ITS - WARNING: the flag for the material of " | |
144 | "services supports is not set neither to 0 (copper) " | |
145 | "nor to 1 (aluminum) nor to 2 (carbon)." | |
146 | " The default value of 0 (copper) will be used." << endl; | |
147 | } // end if | |
72923d44 | 148 | |
012f0f4c | 149 | if (suppmat == 0) { |
150 | cout << "ITS: The material of the services supports is copper." | |
151 | << endl; | |
152 | } else if (suppmat == 1){ | |
153 | cout << "ITS: The material of the services supports is aluminum." | |
154 | << endl; | |
155 | } else { | |
156 | cout << "ITS: The material of the services supports is carbon." | |
157 | << endl; | |
158 | } // end if | |
72923d44 | 159 | |
e4f08ac3 | 160 | |
012f0f4c | 161 | Int_t *idtmed = fIdtmed->GetArray()-199; |
33959f40 | 162 | |
012f0f4c | 163 | // CONVERT INTO CM (RL(SI)=9.36 CM) |
164 | for (i = 0; i < 6; ++i) { | |
165 | drl[i] = drl[i] / 100. * 9.36; | |
166 | } // end if | |
33959f40 | 167 | |
012f0f4c | 168 | // FIELD CAGE HALF LENGTH |
33959f40 | 169 | |
012f0f4c | 170 | rlim = 50.; |
171 | zmax = 74.; | |
172 | ztpc = 284.; | |
33959f40 | 173 | |
012f0f4c | 174 | // --- Define ghost volume containing the whole ITS (including services) |
175 | // and fill it with air | |
176 | /* | |
177 | dgh[0] = 0.; | |
178 | dgh[1] = 360.; | |
179 | dgh[2] = 16.; | |
180 | dgh[3] = -ztpc-5.-0.1; | |
181 | dgh[4] = 46; | |
182 | dgh[5] = 85.; | |
183 | dgh[6] = -ztpc; | |
184 | dgh[7] = 46; | |
185 | dgh[8] = 85.; | |
186 | dgh[9] = -ztpc; | |
187 | dgh[10] = 46; | |
188 | dgh[11] = rlim+6; | |
189 | dgh[12] = -97.5; | |
190 | dgh[13] = 46; | |
191 | dgh[14] = rlim+6; | |
192 | dgh[15] = -zmax; | |
193 | dgh[16] = 46; | |
194 | dgh[17] = rlim+6; | |
195 | dgh[18] = -48; | |
196 | dgh[19] = 6; | |
197 | dgh[20] = rlim+6; | |
198 | dgh[21] = -28.6; | |
199 | dgh[22] = 6; | |
200 | dgh[23] = rlim+6; | |
201 | dgh[24] = -27.6; | |
202 | dgh[25] = 3.295; | |
203 | dgh[26] = rlim+6; | |
204 | dgh[27] = 27.6; | |
205 | dgh[28] = 3.295; | |
206 | dgh[29] = rlim+6; | |
207 | dgh[30] = 28.6; | |
208 | dgh[31] = 6; | |
209 | dgh[32] = rlim+6; | |
210 | dgh[33] = 48; | |
211 | dgh[34] = 6; | |
212 | dgh[35] = rlim+6; | |
213 | dgh[36] = zmax; | |
214 | dgh[37] = 46; | |
215 | dgh[38] = rlim+6; | |
216 | dgh[39] = 97.5; | |
217 | dgh[40] = 46; | |
218 | dgh[41] = rlim+6; | |
219 | dgh[42] = ztpc; | |
220 | dgh[43] = 62; | |
221 | dgh[44] = 62+4.; | |
222 | dgh[45] = ztpc; | |
223 | dgh[46] = 62; | |
224 | dgh[47] = 85.; | |
225 | dgh[48] = ztpc+4.+0.1; | |
226 | dgh[49] = 62.4; | |
227 | dgh[50] = 85.; | |
228 | gMC->Gsvolu("ITSV", "PCON", idtmed[275], dgh, 51); | |
b16d3d87 | 229 | |
012f0f4c | 230 | // --- Place the ghost volume in its mother volume (ALIC) and make it |
231 | // invisible | |
b16d3d87 | 232 | |
012f0f4c | 233 | gMC->Gspos("ITSV", 1, "ALIC", 0., 0., 0., 0, "ONLY"); |
234 | //gMC->Gsatt("ITSV", "SEEN", 0); | |
235 | */ | |
236 | TGeoVolumeAssembly *itsV = gGeoManager->MakeVolumeAssembly("ITSV"); | |
237 | const Int_t length=100; | |
238 | Char_t vstrng[length]; | |
239 | if(fIgm.WriteVersionString(vstrng,length,(AliITSVersion_t)IsVersion(), | |
240 | fMinorVersion,cvsDate,cvsRevision)) | |
241 | itsV->SetTitle(vstrng); | |
b16d3d87 | 242 | |
012f0f4c | 243 | TGeoVolume *alic = gGeoManager->GetVolume("ALIC"); |
244 | if(alic==0) { | |
245 | Error("CreateGeometry","alic=0"); | |
246 | return; | |
247 | } // end if | |
248 | // See idrotm[199] for angle definitions. | |
249 | //alic->AddNode(itsV,1,new TGeoRotation("", 90.,180., 90.,90., 180.,0.)); | |
250 | alic->AddNode(itsV,1,0); | |
b16d3d87 | 251 | |
012f0f4c | 252 | // --- Define ghost volume containing the six layers and fill it with air |
33959f40 | 253 | |
254 | dgh[0] = 0.; | |
255 | dgh[1] = 360.; | |
e4f08ac3 | 256 | dgh[2] = 8.; |
257 | dgh[3] = -zmax; | |
45725ec9 | 258 | dgh[4] = 46.; |
e4f08ac3 | 259 | dgh[5] = rlim; |
260 | dgh[6] = -47.5; | |
261 | dgh[7] = 6.005; | |
262 | dgh[8] = rlim; | |
263 | dgh[9] = -28.5; | |
264 | dgh[10] = 6.005; | |
265 | dgh[11] = rlim; | |
266 | dgh[12] = -27.5; | |
267 | dgh[13] = 3.3; | |
268 | dgh[14] = rlim; | |
269 | dgh[15] = 27.5; | |
270 | dgh[16] = 3.3; | |
271 | dgh[17] = rlim; | |
272 | dgh[18] = 28.5; | |
273 | dgh[19] = 6.005; | |
274 | dgh[20] = rlim; | |
275 | dgh[21] = 47.5; | |
276 | dgh[22] = 6.005; | |
277 | dgh[23] = rlim; | |
278 | dgh[24] = zmax; | |
279 | dgh[25] = 46.; | |
280 | dgh[26] = rlim; | |
281 | gMC->Gsvolu("ITSD", "PCON", idtmed[275], dgh, 27); | |
33959f40 | 282 | |
283 | // --- Place the ghost volume in its mother volume (ITSV) and make it | |
284 | // invisible | |
285 | ||
b16d3d87 | 286 | gMC->Gspos("ITSD", 1, "ITSV", 0., 0., 0., 0, "ONLY"); |
146fb996 | 287 | //gMC->Gsatt("ITSD", "SEEN", 0); |
33959f40 | 288 | |
e4f08ac3 | 289 | |
33959f40 | 290 | // ITS LAYERS (SILICON) |
291 | ||
292 | dits[0] = rl[0]; | |
293 | dits[1] = rl[0] + drl[0]; | |
294 | dits[2] = dzl[0]; | |
295 | gMC->Gsvolu("ITS1", "TUBE", idtmed[199], dits, 3); | |
b16d3d87 | 296 | gMC->Gspos("ITS1", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
33959f40 | 297 | |
298 | dits[0] = rl[1]; | |
299 | dits[1] = rl[1] + drl[1]; | |
300 | dits[2] = dzl[1]; | |
301 | gMC->Gsvolu("ITS2", "TUBE", idtmed[199], dits, 3); | |
b16d3d87 | 302 | gMC->Gspos("ITS2", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
33959f40 | 303 | |
304 | dits[0] = rl[2]; | |
305 | dits[1] = rl[2] + drl[2]; | |
306 | dits[2] = dzl[2]; | |
307 | gMC->Gsvolu("ITS3", "TUBE", idtmed[224], dits, 3); | |
b16d3d87 | 308 | gMC->Gspos("ITS3", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
33959f40 | 309 | |
310 | dits[0] = rl[3]; | |
311 | dits[1] = rl[3] + drl[3]; | |
312 | dits[2] = dzl[3]; | |
313 | gMC->Gsvolu("ITS4", "TUBE", idtmed[224], dits, 3); | |
b16d3d87 | 314 | gMC->Gspos("ITS4", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
33959f40 | 315 | |
316 | dits[0] = rl[4]; | |
317 | dits[1] = rl[4] + drl[4]; | |
318 | dits[2] = dzl[4]; | |
319 | gMC->Gsvolu("ITS5", "TUBE", idtmed[249], dits, 3); | |
b16d3d87 | 320 | gMC->Gspos("ITS5", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
33959f40 | 321 | |
322 | dits[0] = rl[5]; | |
323 | dits[1] = rl[5] + drl[5]; | |
324 | dits[2] = dzl[5]; | |
325 | gMC->Gsvolu("ITS6", "TUBE", idtmed[249], dits, 3); | |
b16d3d87 | 326 | gMC->Gspos("ITS6", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
33959f40 | 327 | |
d12d92a5 | 328 | // END-LADDER ELECTRONICS BOXES AND CABLES FOR SPD |
33959f40 | 329 | |
d12d92a5 | 330 | gMC->Gsvolu("IEL1", "TUBE", idtmed[208], dits, 0); |
331 | for (i = 0; i < 2; i++) { | |
33959f40 | 332 | dits[0] = rl[i]; |
333 | dits[1] = dits[0] + drb[i]; | |
334 | dits[2] = dzb[i] / 2.; | |
335 | zpos = dzl[i] + dits[2]; | |
d12d92a5 | 336 | gMC->Gsposp("IEL1", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3); |
337 | gMC->Gsposp("IEL1", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3); | |
33959f40 | 338 | } |
d12d92a5 | 339 | |
340 | // END-LADDER ELECTRONICS BOXES AND CABLES FOR SDD | |
341 | ||
342 | gMC->Gsvolu("IEL2", "TUBE", idtmed[237], dits, 0); | |
89909db5 | 343 | for (i = 2; i < 3; i++) { |
344 | dits[0] = rl[i]-2.5; | |
345 | dits[1] = dits[0] + drb[i]; | |
346 | dits[2] = dzb[i] / 2.; | |
347 | zpos = dzl[i] + dits[2]; | |
348 | gMC->Gsposp("IEL2", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3); | |
349 | gMC->Gsposp("IEL2", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3); | |
350 | } | |
351 | for (i = 3; i < 4; i++) { | |
352 | dits[0] = rl[i]-1.4; | |
d12d92a5 | 353 | dits[1] = dits[0] + drb[i]; |
354 | dits[2] = dzb[i] / 2.; | |
355 | zpos = dzl[i] + dits[2]; | |
356 | gMC->Gsposp("IEL2", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3); | |
357 | gMC->Gsposp("IEL2", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3); | |
358 | } | |
359 | ||
360 | // END-LADDER ELECTRONICS BOXES AND CABLES FOR SSD | |
361 | ||
362 | gMC->Gsvolu("IEL3", "TUBE", idtmed[263], dits, 0); | |
89909db5 | 363 | for (i = 4; i < 5; i++) { |
364 | dits[0] = rl[i]+1.4; | |
d12d92a5 | 365 | dits[1] = dits[0] + drb[i]; |
366 | dits[2] = dzb[i] / 2.; | |
367 | zpos = dzl[i] + dits[2]; | |
368 | gMC->Gsposp("IEL3", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3); | |
369 | gMC->Gsposp("IEL3", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3); | |
370 | } | |
89909db5 | 371 | for (i = 5; i < 6; i++) { |
372 | dits[0] = rl[i]+0.4235; | |
373 | dits[1] = dits[0] + drb[i]; | |
374 | dits[2] = dzb[i] / 2.; | |
375 | zpos = dzl[i] + dits[2]; | |
376 | gMC->Gsposp("IEL3", i+1, "ITSD", 0., 0., zpos, 0, "ONLY", dits, 3); | |
377 | gMC->Gsposp("IEL3", i+1+6, "ITSD", 0., 0.,-zpos, 0, "ONLY", dits, 3); | |
378 | } | |
146fb996 | 379 | |
6c251614 | 380 | // DEFINE THERMAL SCREEN FOR SPD |
33959f40 | 381 | |
6c251614 | 382 | pcits[0] = 8.3; |
383 | pcits[1] = 8.5; | |
384 | pcits[2] = 42.5; | |
385 | gMC->Gsvolu("ICY1", "TUBE", idtmed[274], pcits, 3); | |
386 | gMC->Gspos("ICY1", 1, "ITSD", 0., 0., 0., 0, "ONLY"); | |
33959f40 | 387 | |
33959f40 | 388 | // DEFINE END CONES FOR SDD |
389 | ||
4ebc1b6a | 390 | pcits[0] = (59.-42.5)/2.; |
391 | pcits[1] = 8.5; | |
89909db5 | 392 | pcits[2] = 8.5+0.1; |
4ebc1b6a | 393 | pcits[3] = 28.; |
89909db5 | 394 | pcits[4] = 28.+0.1; |
9cd18c59 | 395 | gMC->Gsvolu("ICO1", "CONE", idtmed[238], pcits, 5); |
146fb996 | 396 | AliMatrix(idrotm[200], 90., 0., 90., 90., 180., 0.); |
4ebc1b6a | 397 | gMC->Gspos("ICO1", 1, "ITSD", 0., 0., 42.5+pcits[0], 0, "ONLY"); |
398 | gMC->Gspos("ICO1", 2, "ITSD", 0., 0., -(42.5+pcits[0]), idrotm[200], "ONLY"); | |
6c251614 | 399 | |
400 | // DEFINE CYLINDER BETWEEN SDD AND SSD | |
401 | ||
402 | pcits[0] = (59.5-0.13/2.)/2.; | |
403 | pcits[1] = (59.5+0.13/2.)/2.; | |
404 | pcits[2] = 57.; | |
faec2e21 | 405 | gMC->Gsvolu("ICY2", "TUBE", idtmed[274], pcits, 3); |
146fb996 | 406 | gMC->Gspos("ICY2", 1, "ITSD", 0., 0., 0., 0, "ONLY"); |
33959f40 | 407 | |
408 | // DEFINE END CONES FOR SSD | |
409 | ||
4ebc1b6a | 410 | pcits[0] = (74.-59.)/2.; |
411 | pcits[1] = 28.; | |
89909db5 | 412 | pcits[2] = 28.+0.1; |
4ebc1b6a | 413 | pcits[3] = 47.; |
89909db5 | 414 | pcits[4] = 47.+0.1; |
9cd18c59 | 415 | gMC->Gsvolu("ICO2", "CONE", idtmed[264], pcits, 5); |
4ebc1b6a | 416 | gMC->Gspos("ICO2", 1, "ITSD", 0., 0., 59.+pcits[0], 0, "ONLY"); |
1a366a10 | 417 | gMC->Gspos("ICO2", 2, "ITSD", 0., 0., -(59.+pcits[0]), idrotm[200], "ONLY"); |
e4f08ac3 | 418 | |
1a366a10 | 419 | |
e4f08ac3 | 420 | // **************************** SERVICES ********************************* |
421 | ||
422 | ||
423 | ||
c54243df | 424 | // --- DEFINE CABLES AT THE END OF THE ITS CONES - COPPER PART |
72923d44 | 425 | // UPPER PART |
33959f40 | 426 | |
e4f08ac3 | 427 | dgh[0] = 46.; |
428 | dgh[1] = 46.+1.0; | |
e8031268 | 429 | dgh[2] = 9.5; |
72923d44 | 430 | dgh[3] = 12.; |
431 | dgh[4] = 168.; | |
33959f40 | 432 | |
72923d44 | 433 | if (suppmat == 0) { |
434 | gMC->Gsvolu("I1CU", "TUBS", idtmed[279], dgh, 5); // copper | |
435 | } else if (suppmat == 1) { | |
436 | gMC->Gsvolu("I1CU", "TUBS", idtmed[285], dgh, 5); // aluminum | |
437 | } else { | |
438 | gMC->Gsvolu("I1CU", "TUBS", idtmed[274], dgh, 5); // carbon | |
439 | } | |
440 | gMC->Gspos("I1CU", 1, "ITSV", 0., 0., 83.5, 0, "ONLY"); | |
441 | gMC->Gspos("I1CU", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY"); | |
e6892b92 | 442 | |
72923d44 | 443 | // --- DEFINE CABLES AT THE END OF THE ITS CONES - COPPER PART |
444 | // LOWER PART | |
445 | ||
446 | dgh[0] = 46.; | |
447 | dgh[1] = 46.+1.0; | |
448 | dgh[2] = 9.5; | |
449 | dgh[3] = 192.; | |
450 | dgh[4] = 348.; | |
451 | ||
452 | if (suppmat == 0) { | |
453 | gMC->Gsvolu("I2CU", "TUBS", idtmed[279], dgh, 5); // copper | |
454 | } else if (suppmat == 1) { | |
455 | gMC->Gsvolu("I2CU", "TUBS", idtmed[285], dgh, 5); // aluminum | |
456 | } else { | |
457 | gMC->Gsvolu("I2CU", "TUBS", idtmed[274], dgh, 5); // carbon | |
458 | } | |
459 | gMC->Gspos("I2CU", 1, "ITSV", 0., 0., 83.5, 0, "ONLY"); | |
460 | gMC->Gspos("I2CU", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY"); | |
461 | ||
462 | ||
c54243df | 463 | // --- DEFINE CABLES AT THE END OF THE ITS CONES - CARBON PART |
72923d44 | 464 | // UPPER PART |
e6892b92 | 465 | |
e4f08ac3 | 466 | dgh[0] = 46.+1.0; |
467 | dgh[1] = 46.+1.0+1.5; | |
e8031268 | 468 | dgh[2] = 9.5; |
72923d44 | 469 | dgh[3] = 12.; |
470 | dgh[4] = 168.; | |
e6892b92 | 471 | |
72923d44 | 472 | gMC->Gsvolu("I1CC", "TUBS", idtmed[274], dgh, 5); |
473 | gMC->Gspos("I1CC", 1, "ITSV", 0., 0., 83.5, 0, "ONLY"); | |
474 | gMC->Gspos("I1CC", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY"); | |
33959f40 | 475 | |
72923d44 | 476 | // --- DEFINE CABLES AT THE END OF THE ITS CONES - CARBON PART |
477 | // LOWER PART | |
478 | ||
479 | dgh[0] = 46.+1.0; | |
480 | dgh[1] = 46.+1.0+1.5; | |
481 | dgh[2] = 9.5; | |
482 | dgh[3] = 192.; | |
483 | dgh[4] = 348.; | |
33959f40 | 484 | |
72923d44 | 485 | gMC->Gsvolu("I2CC", "TUBS", idtmed[274], dgh, 5); |
486 | gMC->Gspos("I2CC", 1, "ITSV", 0., 0., 83.5, 0, "ONLY"); | |
487 | gMC->Gspos("I2CC", 2, "ITSV", 0., 0., -83.5, idrotm[200], "ONLY"); | |
488 | ||
489 | // --- DEFINE PATCH PANELS AT THE END OF THE ITS CONES | |
490 | // UPPER PART | |
491 | ||
e4f08ac3 | 492 | dgh[0] = 46.; |
33959f40 | 493 | dgh[1] = 56.; |
494 | dgh[2] = 2.25; | |
72923d44 | 495 | dgh[3] = 12.; |
496 | dgh[4] = 168.; | |
33959f40 | 497 | |
72923d44 | 498 | gMC->Gsvolu("IPA1", "TUBS", idtmed[285], dgh, 5); |
499 | gMC->Gspos("IPA1", 1, "ITSV", 0., 0., 95.25, 0, "ONLY"); | |
500 | gMC->Gspos("IPA1", 2, "ITSV", 0., 0., -95.25, idrotm[200], "ONLY"); | |
501 | ||
502 | ||
503 | // --- DEFINE PATCH PANELS AT THE END OF THE ITS CONES | |
504 | // LOWER PART | |
505 | ||
506 | dgh[0] = 46.; | |
507 | dgh[1] = 56.; | |
508 | dgh[2] = 2.25; | |
509 | dgh[3] = 192.; | |
510 | dgh[4] = 348.; | |
33959f40 | 511 | |
72923d44 | 512 | gMC->Gsvolu("IPA2", "TUBS", idtmed[285], dgh, 5); |
513 | gMC->Gspos("IPA2", 1, "ITSV", 0., 0., 95.25, 0, "ONLY"); | |
514 | gMC->Gspos("IPA2", 2, "ITSV", 0., 0., -95.25, idrotm[200], "ONLY"); | |
515 | ||
516 | ||
c54243df | 517 | // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE ABSORBER SIDE - COPPER PART |
4ebc1b6a | 518 | // UPPER PART |
519 | ||
e4f08ac3 | 520 | dgh[0] = (ztpc-97.5)/2.; |
521 | dgh[1] = 46.2; | |
522 | dgh[2] = 46.2+1.0; | |
523 | dgh[3] = 62.3; | |
524 | dgh[4] = 62.3+1.0; | |
4ebc1b6a | 525 | dgh[5] = 12.; |
526 | dgh[6] = 168.; | |
72923d44 | 527 | if (suppmat == 0) { |
528 | gMC->Gsvolu("ICU1", "CONS", idtmed[279], dgh, 7); // copper | |
529 | } else if (suppmat == 1) { | |
530 | gMC->Gsvolu("ICU1", "CONS", idtmed[285], dgh, 7); // aluminum | |
531 | } else { | |
532 | gMC->Gsvolu("ICU1", "CONS", idtmed[274], dgh, 7); // carbon | |
533 | } | |
e4f08ac3 | 534 | gMC->Gspos("ICU1", 1, "ITSV", 0., 0., 97.5+dgh[0], 0, "ONLY"); |
33959f40 | 535 | |
4ebc1b6a | 536 | // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE ABSORBER SIDE - COPPER PART |
537 | // LOWER PART | |
538 | ||
e4f08ac3 | 539 | dgh[0] = (ztpc-97.5)/2.; |
540 | dgh[1] = 46.2; | |
541 | dgh[2] = 46.2+1.0; | |
542 | dgh[3] = 62.3; | |
543 | dgh[4] = 62.3+1.0; | |
4ebc1b6a | 544 | dgh[5] = 192.; |
545 | dgh[6] = 348.; | |
72923d44 | 546 | if (suppmat == 0) { |
547 | gMC->Gsvolu("ICU2", "CONS", idtmed[279], dgh, 7); // copper | |
548 | } else if (suppmat == 1) { | |
549 | gMC->Gsvolu("ICU2", "CONS", idtmed[285], dgh, 7); // aluminum | |
550 | } else { | |
551 | gMC->Gsvolu("ICU2", "CONS", idtmed[274], dgh, 7); // carbon | |
552 | } | |
e4f08ac3 | 553 | gMC->Gspos("ICU2", 1, "ITSV", 0., 0., 97.5+dgh[0], 0, "ONLY"); |
554 | ||
4ebc1b6a | 555 | |
556 | // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE ABSORBER SIDE - CARBON PART | |
557 | // UPPER PART | |
558 | ||
e4f08ac3 | 559 | dgh[0] = (ztpc-97.5)/2.; |
560 | dgh[1] = 46.2+1.0; | |
561 | dgh[2] = 46.2+1.0+1.5; | |
562 | dgh[3] = 62.3+1.0; | |
563 | dgh[4] = 62.3+1.0+1.5; | |
4ebc1b6a | 564 | dgh[5] = 12.; |
565 | dgh[6] = 168.; | |
566 | gMC->Gsvolu("ICC1", "CONS", idtmed[274], dgh, 7); | |
e4f08ac3 | 567 | gMC->Gspos("ICC1", 1, "ITSV", 0., 0., 97.5+dgh[0], 0, "ONLY"); |
e6892b92 | 568 | |
c54243df | 569 | // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE ABSORBER SIDE - CARBON PART |
4ebc1b6a | 570 | // LOWER PART |
571 | ||
e4f08ac3 | 572 | dgh[0] = (ztpc-97.5)/2.; |
573 | dgh[1] = 46.2+1.0; | |
45725ec9 | 574 | dgh[2] = 46.2+1.0+1.5; |
e4f08ac3 | 575 | dgh[3] = 62.3+1.0; |
45725ec9 | 576 | dgh[4] = 62.3+1.0+1.5; |
4ebc1b6a | 577 | dgh[5] = 192.; |
578 | dgh[6] = 348.; | |
579 | gMC->Gsvolu("ICC2", "CONS", idtmed[274], dgh, 7); | |
e4f08ac3 | 580 | gMC->Gspos("ICC2", 1, "ITSV", 0., 0., 97.5+dgh[0], 0, "ONLY"); |
4ebc1b6a | 581 | |
c54243df | 582 | // --- DEFINE CABLES/COOLING BEHIND THE TPC ON THE ABSORBER SIDE - COPPER PART |
4ebc1b6a | 583 | // UPPER PART |
584 | ||
e4f08ac3 | 585 | dgh[0] = 62.1; |
4ebc1b6a | 586 | dgh[1] = 74.5; |
587 | dgh[2] = 0.5; | |
588 | dgh[3] = 12.; | |
589 | dgh[4] = 168.; | |
72923d44 | 590 | if (suppmat == 0) { |
591 | gMC->Gsvolu("ICU3", "TUBS", idtmed[279], dgh, 5); // copper | |
592 | } else if (suppmat == 1) { | |
593 | gMC->Gsvolu("ICU3", "TUBS", idtmed[285], dgh, 5); // aluminum | |
594 | } else { | |
595 | gMC->Gsvolu("ICU3", "TUBS", idtmed[274], dgh, 5); // carbon | |
596 | } | |
e4f08ac3 | 597 | gMC->Gspos("ICU3", 1, "ITSV", 0., 0., ztpc+1.5+dgh[2], 0, "ONLY"); |
4ebc1b6a | 598 | |
599 | // --- DEFINE CABLES/COOLING BEHIND THE TPC ON THE ABSORBER SIDE - COPPER PART | |
600 | // LOWER PART | |
601 | ||
e4f08ac3 | 602 | dgh[0] = 62.1; |
4ebc1b6a | 603 | dgh[1] = 74.5; |
604 | dgh[2] = 0.5; | |
605 | dgh[3] = 192.; | |
606 | dgh[4] = 348.; | |
72923d44 | 607 | if (suppmat == 0) { |
608 | gMC->Gsvolu("ICU4", "TUBS", idtmed[279], dgh, 5); // copper | |
609 | } else if (suppmat == 1) { | |
610 | gMC->Gsvolu("ICU4", "TUBS", idtmed[285], dgh, 5); // aluminum | |
611 | } else { | |
612 | gMC->Gsvolu("ICU4", "TUBS", idtmed[274], dgh, 5); // carbon | |
613 | } | |
e4f08ac3 | 614 | gMC->Gspos("ICU4", 1, "ITSV", 0., 0., ztpc+1.5+dgh[2], 0, "ONLY"); |
4ebc1b6a | 615 | |
c54243df | 616 | // --- DEFINE CABLES/COOLING BEHIND THE TPC ON THE ABSORBER SIDE - CARBON PART |
4ebc1b6a | 617 | // UPPER PART |
618 | ||
e4f08ac3 | 619 | dgh[0] = 62.1; |
4ebc1b6a | 620 | dgh[1] = 74.5; |
621 | dgh[2] = 0.75; | |
622 | dgh[3] = 12.; | |
623 | dgh[4] = 168.; | |
624 | gMC->Gsvolu("ICC3", "TUBS", idtmed[274], dgh, 5); | |
e4f08ac3 | 625 | gMC->Gspos("ICC3", 1, "ITSV", 0., 0., ztpc+dgh[2], 0, "ONLY"); |
4ebc1b6a | 626 | |
627 | // --- DEFINE CABLES/COOLING BEHIND THE TPC ON THE ABSORBER SIDE - CARBON PART | |
628 | // LOWER PART | |
629 | ||
e4f08ac3 | 630 | dgh[0] = 62.1; |
4ebc1b6a | 631 | dgh[1] = 74.5; |
632 | dgh[2] = 0.75; | |
633 | dgh[3] = 192.; | |
634 | dgh[4] = 348.; | |
635 | gMC->Gsvolu("ICC4", "TUBS", idtmed[274], dgh, 5); | |
e4f08ac3 | 636 | gMC->Gspos("ICC4", 1, "ITSV", 0., 0., ztpc+dgh[2], 0, "ONLY"); |
33959f40 | 637 | |
c54243df | 638 | // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE OTHER SIDE W.R.T. |
1a7aef02 | 639 | // THE ABSORBER - COPPER PART - UPPER PART |
33959f40 | 640 | |
e4f08ac3 | 641 | dgh[0] = 46.; |
642 | dgh[1] = 46.+1.0; | |
643 | dgh[2] = (ztpc-97.5+1.5)/2.; | |
1a7aef02 | 644 | dgh[3] = 12.; |
645 | dgh[4] = 168.; | |
72923d44 | 646 | if (suppmat == 0) { |
647 | gMC->Gsvolu("ICU5", "TUBS", idtmed[279], dgh, 5); // copper | |
648 | } else if (suppmat == 1) { | |
649 | gMC->Gsvolu("ICU5", "TUBS", idtmed[285], dgh, 5); // aluminum | |
650 | } else { | |
651 | gMC->Gsvolu("ICU5", "TUBS", idtmed[274], dgh, 5); // carbon | |
652 | } | |
e4f08ac3 | 653 | gMC->Gspos("ICU5", 1, "ITSV", 0., 0., -97.5-dgh[2], 0, "ONLY"); |
e6892b92 | 654 | |
c54243df | 655 | // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE OTHER SIDE W.R.T. |
1a7aef02 | 656 | // THE ABSORBER - COPPER PART - LOWER PART |
657 | ||
e4f08ac3 | 658 | dgh[0] = 46.; |
659 | dgh[1] = 46.+1.0; | |
660 | dgh[2] = (ztpc-97.5+1.5)/2.; | |
1a7aef02 | 661 | dgh[3] = 192.; |
662 | dgh[4] = 348.; | |
72923d44 | 663 | if (suppmat == 0) { |
664 | gMC->Gsvolu("ICU6", "TUBS", idtmed[279], dgh, 5); // copper | |
665 | } else if (suppmat == 1) { | |
666 | gMC->Gsvolu("ICU6", "TUBS", idtmed[285], dgh, 5); // aluminum | |
667 | } else { | |
668 | gMC->Gsvolu("ICU6", "TUBS", idtmed[274], dgh, 5); // carbon | |
669 | } | |
e4f08ac3 | 670 | gMC->Gspos("ICU6", 1, "ITSV", 0., 0., -97.5-dgh[2], 0, "ONLY"); |
1a7aef02 | 671 | |
672 | // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE OTHER SIDE W.R.T. | |
673 | // THE ABSORBER - CARBON PART - UPPER PART | |
674 | ||
e4f08ac3 | 675 | dgh[0] = 46.+1.0; |
676 | dgh[1] = 46.+1.0+1.5; | |
677 | dgh[2] = (ztpc-97.5)/2.; | |
1a7aef02 | 678 | dgh[3] = 12.; |
679 | dgh[4] = 168.; | |
680 | gMC->Gsvolu("ICC5", "TUBS", idtmed[274], dgh, 5); | |
e4f08ac3 | 681 | gMC->Gspos("ICC5", 1, "ITSV", 0., 0., -97.5-dgh[2], 0, "ONLY"); |
1a7aef02 | 682 | |
683 | // --- DEFINE CABLES/COOLING BELOW THE TPC ON THE OTHER SIDE W.R.T. | |
684 | // THE ABSORBER - CARBON PART - LOWER PART | |
e6892b92 | 685 | |
e4f08ac3 | 686 | dgh[0] = 46.+1.0; |
687 | dgh[1] = 46.+1.0+1.5; | |
688 | dgh[2] = (ztpc-97.5)/2.; | |
1a7aef02 | 689 | dgh[3] = 192.; |
690 | dgh[4] = 348.; | |
691 | gMC->Gsvolu("ICC6", "TUBS", idtmed[274], dgh, 5); | |
e4f08ac3 | 692 | gMC->Gspos("ICC6", 1, "ITSV", 0., 0., -97.5-dgh[2], 0, "ONLY"); |
33959f40 | 693 | |
1a7aef02 | 694 | // --- DEFINE CABLES/COOLING BEHIND THE TPC ON OTHER SIDE W.R.T. THE ABSORBER |
695 | // COPPER PART - UPPER PART | |
696 | ||
e4f08ac3 | 697 | dgh[0] = 46.; |
1a7aef02 | 698 | dgh[1] = 74.5; |
699 | dgh[2] = 0.5; | |
700 | dgh[3] = 12.; | |
701 | dgh[4] = 168.; | |
72923d44 | 702 | if (suppmat == 0) { |
703 | gMC->Gsvolu("ICU7", "TUBS", idtmed[279], dgh, 5); // copper | |
704 | } else if (suppmat == 1) { | |
705 | gMC->Gsvolu("ICU7", "TUBS", idtmed[285], dgh, 5); // aluminum | |
706 | } else { | |
707 | gMC->Gsvolu("ICU7", "TUBS", idtmed[274], dgh, 5); // carbon | |
708 | } | |
e4f08ac3 | 709 | gMC->Gspos("ICU7", 1, "ITSV", 0., 0., -(ztpc+1.5+dgh[2]), 0, "ONLY"); |
33959f40 | 710 | |
c54243df | 711 | // --- DEFINE CABLES/COOLING BEHIND THE TPC ON OTHER SIDE W.R.T. THE ABSORBER |
1a7aef02 | 712 | // COPPER PART - LOWER PART |
4ebc1b6a | 713 | |
e4f08ac3 | 714 | dgh[0] = 46.; |
4ebc1b6a | 715 | dgh[1] = 74.5; |
716 | dgh[2] = 0.5; | |
1a7aef02 | 717 | dgh[3] = 192.; |
718 | dgh[4] = 348.; | |
72923d44 | 719 | if (suppmat == 0) { |
720 | gMC->Gsvolu("ICU8", "TUBS", idtmed[279], dgh, 5); // copper | |
721 | } else if (suppmat == 1) { | |
722 | gMC->Gsvolu("ICU8", "TUBS", idtmed[285], dgh, 5); // aluminum | |
723 | } else { | |
724 | gMC->Gsvolu("ICU8", "TUBS", idtmed[274], dgh, 5); // carbon | |
725 | } | |
e4f08ac3 | 726 | gMC->Gspos("ICU8", 1, "ITSV", 0., 0., -(ztpc+1.5+dgh[2]), 0, "ONLY"); |
1a7aef02 | 727 | |
728 | // --- DEFINE CABLES/COOLING BEHIND THE TPC ON OTHER SIDE W.R.T. THE ABSORBER | |
729 | // CARBON PART - UPPER PART | |
33959f40 | 730 | |
e4f08ac3 | 731 | dgh[0] = 46.+1.0; |
1a7aef02 | 732 | dgh[1] = 74.5; |
733 | dgh[2] = 0.75; | |
734 | dgh[3] = 12.; | |
735 | dgh[4] = 168.; | |
736 | gMC->Gsvolu("ICC7", "TUBS", idtmed[274], dgh, 5); | |
e4f08ac3 | 737 | gMC->Gspos("ICC7", 1, "ITSV", 0., 0., -(ztpc+dgh[2]), 0, "ONLY"); |
e6892b92 | 738 | |
c54243df | 739 | // --- DEFINE CABLES/COOLING BEHIND THE TPC ON OTHER SIDE W.R.T. THE ABSORBER |
1a7aef02 | 740 | // CARBON PART - LOWER PART |
e6892b92 | 741 | |
e4f08ac3 | 742 | dgh[0] = 46.+1.0; |
4ebc1b6a | 743 | dgh[1] = 74.5; |
744 | dgh[2] = 0.75; | |
1a7aef02 | 745 | dgh[3] = 192.; |
746 | dgh[4] = 348.; | |
747 | gMC->Gsvolu("ICC8", "TUBS", idtmed[274], dgh, 5); | |
e4f08ac3 | 748 | gMC->Gspos("ICC8", 1, "ITSV", 0., 0., -(ztpc+dgh[2]), 0, "ONLY"); |
33959f40 | 749 | |
1a7aef02 | 750 | // --- DEFINE HOOK TO THE TPC ON OTHER SIDE W.R.T. THE ABSORBER - UPPER PART |
751 | ||
752 | dgh[0] = 74.5; | |
753 | dgh[1] = 79.5; | |
754 | dgh[2] = 2.5; | |
755 | dgh[3] = 12.; | |
756 | dgh[4] = 168.; | |
757 | gMC->Gsvolu("IHK1", "TUBS", idtmed[284], dgh, 5); | |
e4f08ac3 | 758 | gMC->Gspos("IHK1", 1, "ITSV", 0., 0., -ztpc-dgh[2], 0, "ONLY"); |
1a7aef02 | 759 | |
760 | // --- DEFINE HOOK TO THE TPC ON OTHER SIDE W.R.T. THE ABSORBER - LOWER PART | |
33959f40 | 761 | |
762 | dgh[0] = 74.5; | |
763 | dgh[1] = 79.5; | |
764 | dgh[2] = 2.5; | |
1a7aef02 | 765 | dgh[3] = 192.; |
766 | dgh[4] = 348.; | |
767 | gMC->Gsvolu("IHK2", "TUBS", idtmed[284], dgh, 5); | |
e4f08ac3 | 768 | gMC->Gspos("IHK2", 1, "ITSV", 0., 0., -ztpc-dgh[2], 0, "ONLY"); |
33959f40 | 769 | |
c54243df | 770 | // --- DEFINE RAILS BETWEEN THE ITS AND THE TPC |
771 | ||
e4f08ac3 | 772 | if (rails == 1) { |
773 | ||
774 | dgh[0] = 2.; | |
775 | dgh[1] = 8.; | |
776 | dgh[2] = 190.; | |
31683195 | 777 | gMC->Gsvolu("IRA1", "BOX ", idtmed[239], dgh, 3); |
e4f08ac3 | 778 | gMC->Gspos("IRA1", 1, "ITSV", 53.5, 0., -69.5, 0, "ONLY"); |
31683195 | 779 | gMC->Gsvolu("IRA2", "BOX ", idtmed[239], dgh, 3); |
e4f08ac3 | 780 | gMC->Gspos("IRA2", 1, "ITSV", -53.5, 0., -69.5, 0, "ONLY"); |
781 | ||
31683195 | 782 | dgh[0] = 2.-0.5; // 0.5 was determined in such a way that the aluminum area is 20.9 cm^2 |
783 | dgh[1] = 8.-0.5; // 0.5 was determined in such a way that the aluminum area is 20.9 cm^2 | |
e4f08ac3 | 784 | dgh[2] = 190.; |
785 | gMC->Gsvolu("IRA3", "BOX ", idtmed[275], dgh, 3); | |
786 | gMC->Gspos("IRA3", 1, "IRA1", 0., 0., 0., 0, "ONLY"); | |
787 | gMC->Gsvolu("IRA4", "BOX ", idtmed[275], dgh, 3); | |
788 | gMC->Gspos("IRA4", 1, "IRA2", 0., 0., 0., 0, "ONLY"); | |
789 | ||
790 | } | |
c54243df | 791 | |
4ebc1b6a | 792 | // --- DEFINE CYLINDERS HOLDING RAILS BETWEEN THE ITS AND THE TPC |
793 | ||
e4f08ac3 | 794 | dgh[0] = 56.9; |
4ebc1b6a | 795 | dgh[1] = 59.; |
89909db5 | 796 | dgh[2] = 0.6; |
4ebc1b6a | 797 | gMC->Gsvolu("ICYL", "TUBE", idtmed[285], dgh, 3); |
27c5763c | 798 | gMC->Gspos("ICYL", 1, "ALIC", 0., 0., 74.1, 0, "ONLY"); |
799 | gMC->Gspos("ICYL", 2, "ALIC", 0., 0., -74.1, idrotm[200], "ONLY"); | |
e4f08ac3 | 800 | |
801 | // --- DEFINE SUPPORTS FOR RAILS ATTACHED TO THE CYLINDERS | |
802 | ||
803 | dgh[0] = 0.; | |
804 | dgh[1] = 3.; | |
805 | dgh[2] = 5.; // 5. comes from the fact that the volume has to be 567.6/2 cm^3 | |
806 | gMC->Gsvolu("ISR1", "TUBE", idtmed[286], dgh, 3); | |
c2685204 | 807 | gMC->Gspos("ISR1", 1, "ITSV", 53.4292, 10.7053, 79.75, 0, "ONLY"); |
808 | gMC->Gspos("ISR1", 2, "ITSV", 53.4292, -10.7053, 79.75, 0, "ONLY"); | |
809 | gMC->Gspos("ISR1", 3, "ITSV", -53.4292, 10.7053, 79.75, 0, "ONLY"); | |
810 | gMC->Gspos("ISR1", 4, "ITSV", -53.4292, -10.7053, 79.75, 0, "ONLY"); | |
811 | gMC->Gspos("ISR1", 5, "ITSV", 53.4292, 10.7053, -79.75, 0, "ONLY"); | |
812 | gMC->Gspos("ISR1", 6, "ITSV", 53.4292, -10.7053, -79.75, 0, "ONLY"); | |
813 | gMC->Gspos("ISR1", 7, "ITSV", -53.4292, 10.7053, -79.75, 0, "ONLY"); | |
814 | gMC->Gspos("ISR1", 8, "ITSV", -53.4292, -10.7053, -79.75, 0, "ONLY"); | |
e4f08ac3 | 815 | |
816 | // --- DEFINE SUPPORTS FOR RAILS ATTACHED TO THE ABSORBER | |
817 | ||
818 | dgh[0] = 5.; | |
819 | dgh[1] = 12.; | |
820 | dgh[2] = 5.; | |
821 | gMC->Gsvolu("ISR2", "BOX ", idtmed[285], dgh, 3); | |
822 | gMC->Gspos("ISR2", 1, "ALIC", 53.5, 0., 125.5, 0, "ONLY"); | |
823 | gMC->Gsvolu("ISR3", "BOX ", idtmed[285], dgh, 3); | |
824 | gMC->Gspos("ISR3", 1, "ALIC", -53.5, 0., 125.5, 0, "ONLY"); | |
825 | ||
826 | dgh[0] = 5.-2.; | |
827 | dgh[1] = 12.-2.; | |
828 | dgh[2] = 5.; | |
829 | gMC->Gsvolu("ISR4", "BOX ", idtmed[275], dgh, 3); | |
830 | gMC->Gspos("ISR4", 1, "ISR2", 0., 0., 0., 0, "ONLY"); | |
831 | gMC->Gsvolu("ISR5", "BOX ", idtmed[275], dgh, 3); | |
832 | gMC->Gspos("ISR5", 1, "ISR3", 0., 0., 0., 0, "ONLY"); | |
833 | ||
834 | // --- DEFINE SUPPORTS TO ATTACH THE ITS TO THE TPC | |
835 | ||
836 | dgh[0] = 0.; | |
837 | dgh[1] = 5.; | |
838 | dgh[2] = 2.; | |
839 | gMC->Gsvolu("ISR6", "TUBE", idtmed[285], dgh, 3); | |
840 | gMC->Gspos("ISR6", 1, "ALIC", 0., 54., 77., 0, "ONLY"); | |
841 | gMC->Gspos("ISR6", 2, "ALIC", 0., 54., -77., 0, "ONLY"); | |
842 | gMC->Gspos("ISR6", 3, "ALIC", 0., -54., -77., 0, "ONLY"); | |
843 | ||
844 | ||
33959f40 | 845 | // --- Outputs the geometry tree in the EUCLID/CAD format |
846 | ||
847 | if (fEuclidOut) { | |
848 | gMC->WriteEuclid("ITSgeometry", "ITSV", 1, 5); | |
849 | } | |
850 | } | |
851 | //_____________________________________________________________________________ | |
852 | void AliITSvPPRcoarseasymm::CreateMaterials(){ | |
853 | //////////////////////////////////////////////////////////////////////// | |
854 | // | |
855 | // Create ITS materials | |
856 | // This function defines the default materials used in the Geant | |
857 | // Monte Carlo simulations for the geometries AliITSv1, AliITSv3, | |
858 | // AliITSvPPRcoarseasymm. | |
859 | // In general it is automatically replaced by | |
023ae34b | 860 | // the CreateMaterials routine defined in AliITSv?. Should the function |
33959f40 | 861 | // CreateMaterials not exist for the geometry version you are using this |
862 | // one is used. See the definition found in AliITSv5 or the other routine | |
863 | // for a complete definition. | |
864 | // | |
865 | // Water H2O | |
866 | Float_t awat[2] = { 1.00794,15.9994 }; | |
867 | Float_t zwat[2] = { 1.,8. }; | |
868 | Float_t wwat[2] = { 2.,1. }; | |
869 | Float_t denswat = 1.; | |
870 | // Freon | |
871 | Float_t afre[2] = { 12.011,18.9984032 }; | |
872 | Float_t zfre[2] = { 6.,9. }; | |
873 | Float_t wfre[2] = { 5.,12. }; | |
874 | Float_t densfre = 1.5; | |
875 | // Ceramics | |
876 | // 94.4% Al2O3 , 2.8% SiO2 , 2.3% MnO , 0.5% Cr2O3 | |
877 | Float_t acer[5] = { 26.981539,15.9994,28.0855,54.93805,51.9961 }; | |
878 | Float_t zcer[5] = { 13.,8.,14.,25., 24. }; | |
879 | Float_t wcer[5] = { .49976,1.01233,.01307, .01782,.00342 }; | |
880 | Float_t denscer = 3.6; | |
881 | // | |
882 | // 60% SiO2 , 40% G10FR4 | |
883 | // PC board | |
884 | Float_t apcb[3] = { 28.0855,15.9994,17.749 }; | |
885 | Float_t zpcb[3] = { 14.,8.,8.875 }; | |
886 | Float_t wpcb[3] = { .28,.32,.4 }; | |
887 | Float_t denspcb = 1.8; | |
888 | // POLYETHYL | |
889 | Float_t apoly[2] = { 12.01,1. }; | |
890 | Float_t zpoly[2] = { 6.,1. }; | |
891 | Float_t wpoly[2] = { .33,.67 }; | |
d12d92a5 | 892 | // old SERVICES |
33959f40 | 893 | Float_t zserv[4] = { 1.,6.,26.,29. }; |
894 | Float_t aserv[4] = { 1.,12.,55.8,63.5 }; | |
895 | Float_t wserv[4] = { .014,.086,.42,.48 }; | |
d12d92a5 | 896 | // Stainless steel |
897 | Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 }; | |
898 | Float_t zsteel[4] = { 26.,24.,28.,14. }; | |
899 | Float_t wsteel[4] = { .715,.18,.1,.005 }; | |
900 | ||
33959f40 | 901 | |
902 | Int_t isxfld = gAlice->Field()->Integ(); | |
903 | Float_t sxmgmx = gAlice->Field()->Max(); | |
904 | ||
905 | ||
906 | // --- Define the various materials for GEANT --- | |
907 | ||
908 | // 200-224 --> Silicon Pixel Detectors (detectors, chips, buses, cooling,..) | |
909 | ||
e4f08ac3 | 910 | AliMaterial(0, "SPD Si$", 28.0855, 14., 2.33, 9.36, 999.); |
911 | AliMaterial(1, "SPD Si chip$", 28.0855, 14., 2.33, 9.36, 999.); | |
912 | AliMaterial(2, "SPD Si bus$", 28.0855, 14., 2.33, 9.36, 999.); | |
913 | AliMaterial(3, "SPD C$", 12.011, 6., 2.265,18.8, 999.); | |
33959f40 | 914 | // v. dens |
e4f08ac3 | 915 | AliMaterial(4, "SPD Air$", 14.61, 7.3, .001205, 30423., 999.); |
33959f40 | 916 | AliMaterial(5, "SPD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16); |
e4f08ac3 | 917 | AliMaterial(6, "SPD Al$", 26.981539, 13., 2.6989, 8.9, 999.); |
33959f40 | 918 | AliMixture( 7, "SPD Water $", awat, zwat, denswat, -2, wwat); |
919 | AliMixture( 8, "SPD Freon$", afre, zfre, densfre, -2, wfre); | |
e4f08ac3 | 920 | AliMaterial(9, "SPD End ladder$", 55.845, 26., 7.87/10., 1.76*10., 999.); |
921 | //AliMaterial(9, "SPD End ladder$", 55.845, 26., -7.87/10., -1.76*10., 999.); | |
922 | AliMaterial(10, "SPD cone$",28.0855, 14., 2.33, 9.36, 999.); // check !!!! | |
33959f40 | 923 | // ** |
faec2e21 | 924 | AliMedium(0, "SPD Si$", 0, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
925 | AliMedium(1, "SPD Si chip$", 1, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
926 | AliMedium(2, "SPD Si bus$", 2, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
927 | AliMedium(3, "SPD C$", 3, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
928 | AliMedium(4, "SPD Air$", 4, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
929 | AliMedium(5, "SPD Vacuum$", 5, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00); | |
930 | AliMedium(6, "SPD Al$", 6, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
931 | AliMedium(7, "SPD Water $", 7, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
932 | AliMedium(8, "SPD Freon$", 8, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
933 | AliMedium(9, "SPD End ladder$",9, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
934 | AliMedium(10, "SPD cone$", 10, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
33959f40 | 935 | |
936 | // 225-249 --> Silicon Drift Detectors (detectors, chips, buses, cooling,..) | |
937 | ||
e4f08ac3 | 938 | AliMaterial(25, "SDD Si$", 28.0855, 14., 2.33, 9.36, 999.); |
939 | AliMaterial(26, "SDD Si chip$", 28.0855, 14., 2.33, 9.36, 999.); | |
940 | AliMaterial(27, "SDD Si bus$", 28.0855, 14., 2.33, 9.36, 999.); | |
941 | AliMaterial(28, "SDD C$", 12.011, 6., 2.265,18.8, 999.); | |
33959f40 | 942 | // v. dens |
e4f08ac3 | 943 | AliMaterial(29, "SDD Air$", 14.61, 7.3, .001205, 30423., 999.); |
33959f40 | 944 | AliMaterial(30, "SDD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16); |
e4f08ac3 | 945 | AliMaterial(31, "SDD Al$", 26.981539, 13., 2.6989, 8.9, 999.); |
33959f40 | 946 | // After a call with ratios by number (negative number of elements), |
947 | // the ratio array is changed to the ratio by weight, so all successive | |
948 | // calls with the same array must specify the number of elements as | |
949 | // positive | |
950 | AliMixture(32, "SDD Water $", awat, zwat, denswat, 2, wwat); | |
951 | // After a call with ratios by number (negative number of elements), | |
952 | // the ratio array is changed to the ratio by weight, so all successive | |
953 | // calls with the same array must specify the number of elements as | |
954 | // positive | |
955 | AliMixture( 33, "SDD Freon$", afre, zfre, densfre, 2, wfre); | |
956 | AliMixture( 34, "SDD PCB$", apcb, zpcb, denspcb, 3, wpcb); | |
e4f08ac3 | 957 | AliMaterial(35, "SDD Copper$", 63.546, 29., 8.96, 1.43, 999.); |
33959f40 | 958 | AliMixture( 36, "SDD Ceramics$", acer, zcer, denscer, -5, wcer); |
e4f08ac3 | 959 | AliMaterial(37, "SDD Kapton$", 12.011, 6., 1.3, 31.27, 999.); |
960 | AliMaterial(38, "SDD End ladder$", 69.9298, 29.8246, 0.3824, 36.5103, 999.); | |
31683195 | 961 | AliMaterial(39, "SDD cone$",63.546, 29., 1.15, 1.265, 999.); |
962 | AliMaterial(40, "SDD M55J$",12.3565, 6.4561, 1.8097, 22.9570, 999.); | |
e4f08ac3 | 963 | //AliMaterial(38, "SDD End ladder$", 69.9298, 29.8246, -0.3824, -36.5103, 999.); |
964 | //AliMaterial(39, "SDD cone$",63.546, 29., -1.15, -1.265, 999.); | |
89909db5 | 965 | |
33959f40 | 966 | // ** |
967 | // check A and Z | |
faec2e21 | 968 | AliMedium(25, "SDD Si$", 25, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
969 | AliMedium(26, "SDD Si chip$", 26, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
970 | AliMedium(27, "SDD Si bus$", 27, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
971 | AliMedium(28, "SDD C$", 28, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
972 | AliMedium(29, "SDD Air$", 29, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
973 | AliMedium(30, "SDD Vacuum$", 30, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00); | |
974 | AliMedium(31, "SDD Al$", 31, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
975 | AliMedium(32, "SDD Water $", 32, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
976 | AliMedium(33, "SDD Freon$", 33, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
977 | AliMedium(34, "SDD PCB$", 34, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
978 | AliMedium(35, "SDD Copper$", 35, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
979 | AliMedium(36, "SDD Ceramics$", 36, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
980 | AliMedium(37, "SDD Kapton$", 37, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
981 | AliMedium(38, "SDD End ladder$",38, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
982 | AliMedium(39, "SDD cone$", 39, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
31683195 | 983 | AliMedium(40, "SDD M55J$", 40, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
33959f40 | 984 | // 250-274 --> Silicon Strip Detectors (detectors, chips, buses, cooling,..) |
985 | ||
986 | AliMaterial(50, "SSD Si$", 28.0855, 14., 2.33, 9.36, 999.); | |
987 | AliMaterial(51, "SSD Si chip$", 28.0855, 14., 2.33, 9.36, 999.); | |
988 | AliMaterial(52, "SSD Si bus$", 28.0855, 14., 2.33, 9.36, 999.); | |
989 | AliMaterial(53, "SSD C$", 12.011, 6., 2.265,18.8, 999.); | |
990 | // v. dens | |
e4f08ac3 | 991 | AliMaterial(54, "SSD Air$", 14.61, 7.3, .001205, 30423., 999.); |
33959f40 | 992 | AliMaterial(55, "SSD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16); |
e4f08ac3 | 993 | AliMaterial(56, "SSD Al$", 26.981539, 13., 2.6989, 8.9, 999.); |
33959f40 | 994 | // After a call with ratios by number (negative number of elements), |
995 | // the ratio array is changed to the ratio by weight, so all successive | |
996 | // calls with the same array must specify the number of elements as | |
997 | // positive | |
998 | AliMixture(57, "SSD Water $", awat, zwat, denswat, 2, wwat); | |
999 | // After a call with ratios by number (negative number of elements), | |
1000 | // the ratio array is changed to the ratio by weight, so all successive | |
1001 | // calls with the same array must specify the number of elements as | |
1002 | // positive | |
1003 | AliMixture(58, "SSD Freon$", afre, zfre, densfre, 2, wfre); | |
1004 | AliMixture(59, "SSD PCB$", apcb, zpcb, denspcb, 3, wpcb); | |
1005 | AliMaterial(60, "SSD Copper$", 63.546, 29., 8.96, 1.43, 999.); | |
1006 | // After a call with ratios by number (negative number of elements), | |
1007 | // the ratio array is changed to the ratio by weight, so all successive | |
1008 | // calls with the same array must specify the number of elements as | |
1009 | // positive | |
e4f08ac3 | 1010 | AliMixture(61, "SSD Ceramics$", acer, zcer, denscer, 5, wcer); |
33959f40 | 1011 | AliMaterial(62, "SSD Kapton$", 12.011, 6., 1.3, 31.27, 999.); |
1012 | // check A and Z | |
d12d92a5 | 1013 | AliMaterial(63, "SSD G10FR4$", 17.749, 8.875, 1.8, 21.822, 999.); |
e4f08ac3 | 1014 | AliMaterial(64, "SSD End ladder$", 32.0988, 15.4021, 0.68, 35.3238, 999.); |
1015 | AliMaterial(65, "SSD cone$",63.546, 29., 1.15, 1.265, 999.); | |
1016 | //AliMaterial(64, "SSD End ladder$", 32.0988, 15.4021, -0.68, -35.3238, 999.); | |
1017 | //AliMaterial(65, "SSD cone$",63.546, 29., -1.15, -1.265, 999.); | |
33959f40 | 1018 | // ** |
faec2e21 | 1019 | AliMedium(50, "SSD Si$", 50, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
1020 | AliMedium(51, "SSD Si chip$", 51, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1021 | AliMedium(52, "SSD Si bus$", 52, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1022 | AliMedium(53, "SSD C$", 53, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1023 | AliMedium(54, "SSD Air$", 54, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1024 | AliMedium(55, "SSD Vacuum$", 55, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00); | |
1025 | AliMedium(56, "SSD Al$", 56, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1026 | AliMedium(57, "SSD Water $", 57, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1027 | AliMedium(58, "SSD Freon$", 58, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1028 | AliMedium(59, "SSD PCB$", 59, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1029 | AliMedium(60, "SSD Copper$", 60, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1030 | AliMedium(61, "SSD Ceramics$", 61, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1031 | AliMedium(62, "SSD Kapton$", 62, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1032 | AliMedium(63, "SSD G10FR4$", 63, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1033 | AliMedium(64, "SSD End ladder$",64, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1034 | AliMedium(65, "SSD cone$", 65, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1035 | ||
33959f40 | 1036 | // 275-299 --> General (end-caps, frames, cooling, cables, etc.) |
1037 | ||
1038 | AliMaterial(75, "GEN C$", 12.011, 6., 2.265, 18.8, 999.); | |
1039 | // verify density | |
e4f08ac3 | 1040 | AliMaterial(76, "GEN Air$", 14.61, 7.3, .001205, 30423., 999.); |
33959f40 | 1041 | AliMaterial(77, "GEN Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16); |
1042 | AliMixture( 78, "GEN POLYETHYL$", apoly, zpoly, .95, -2, wpoly); | |
1043 | AliMixture( 79, "GEN SERVICES$", aserv, zserv, 4.68, 4, wserv); | |
1044 | AliMaterial(80, "GEN Copper$", 63.546, 29., 8.96, 1.43, 999.); | |
1045 | // After a call with ratios by number (negative number of elements), | |
1046 | // the ratio array is changed to the ratio by weight, so all successive | |
1047 | // calls with the same array must specify the number of elements as | |
1048 | // positive | |
1049 | AliMixture(81, "GEN Water $", awat, zwat, denswat, 2, wwat); | |
e6892b92 | 1050 | // AliMaterial(82, "GEN Cables$", 12.011, 6., 2.265, 18.8, 999.); // check !!! |
1051 | // AliMaterial(83, "GEN patch pan$", 12.011, 6., 2.265, 18.8, 999.); // check !!! | |
1052 | // AliMaterial(84, "GEN serv$", 12.011, 6., 2.265, 18.8, 999.); // check !!! | |
d12d92a5 | 1053 | AliMixture(85, "GEN Inox$", asteel, zsteel, 7.88, 4, wsteel); |
e4f08ac3 | 1054 | AliMaterial(86, "GEN Al$", 26.981539, 13., 2.6989, 8.9, 999.); |
1055 | AliMaterial(87,"inox/alum$", 32.1502,15.3383,3.0705,6.9197,999.); | |
33959f40 | 1056 | // ** |
1057 | AliMedium(75,"GEN C$", 75, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1058 | AliMedium(76,"GEN Air$", 76, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1059 | AliMedium(77,"GEN Vacuum$", 77, 0,isxfld,sxmgmx, 10., .10, .1, .100,10.00); | |
1060 | AliMedium(78,"GEN POLYETHYL$",78, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1061 | AliMedium(79,"GEN SERVICES$", 79, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1062 | AliMedium(80,"GEN Copper$", 80, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1063 | AliMedium(81,"GEN Water $", 81, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
e6892b92 | 1064 | // AliMedium(82,"GEN Cables$", 82, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
1065 | // AliMedium(83,"GEN patch pan$",83, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
1066 | // AliMedium(84,"GEN serv$", 84, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); | |
d12d92a5 | 1067 | AliMedium(85,"GEN Inox$", 85, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
e6892b92 | 1068 | AliMedium(86, "GEN Al$", 86, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
e4f08ac3 | 1069 | AliMedium(87,"inox/alum$", 87, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003); |
1070 | ||
33959f40 | 1071 | } |
1072 | //_____________________________________________________________________________ | |
1073 | void AliITSvPPRcoarseasymm::Init(){ | |
1074 | //////////////////////////////////////////////////////////////////////// | |
1075 | // Initialise the ITS after it has been created. | |
1076 | //////////////////////////////////////////////////////////////////////// | |
bae7e562 | 1077 | Int_t i; |
33959f40 | 1078 | |
bae7e562 | 1079 | cout << endl; |
1080 | for(i=0;i<24;i++) cout << "*";cout << " ITSvPPRcoarseasymm_Init "; | |
1081 | for(i=0;i<25;i++) cout << "*";cout << endl; | |
1082 | // | |
33959f40 | 1083 | AliITS::Init(); |
bae7e562 | 1084 | // |
1085 | for(i=0;i<72;i++) cout << "*"; | |
1086 | cout << endl; | |
33959f40 | 1087 | } |
1088 | ||
1089 | //_____________________________________________________________________________ | |
d2f55a22 | 1090 | void AliITSvPPRcoarseasymm::DrawModule() const { |
33959f40 | 1091 | //////////////////////////////////////////////////////////////////////// |
1092 | // Draw a shaded view of the FMD version 6. | |
1093 | //////////////////////////////////////////////////////////////////////// | |
1094 | ||
1095 | // Set everything unseen | |
1096 | gMC->Gsatt("*", "seen", -1); | |
1097 | // | |
1098 | // Set ALIC mother visible | |
1099 | gMC->Gsatt("ALIC","SEEN",0); | |
1100 | // | |
1101 | // Set the volumes visible | |
1102 | gMC->Gsatt("ITSD","SEEN",0); | |
1103 | gMC->Gsatt("ITS1","SEEN",1); | |
1104 | gMC->Gsatt("ITS2","SEEN",1); | |
1105 | gMC->Gsatt("ITS3","SEEN",1); | |
1106 | gMC->Gsatt("ITS4","SEEN",1); | |
1107 | gMC->Gsatt("ITS5","SEEN",1); | |
1108 | gMC->Gsatt("ITS6","SEEN",1); | |
1109 | ||
1110 | gMC->Gsatt("IPCB","SEEN",1); | |
1111 | gMC->Gsatt("ICO2","SEEN",1); | |
1112 | gMC->Gsatt("ICER","SEEN",0); | |
1113 | gMC->Gsatt("ISI2","SEEN",0); | |
1114 | gMC->Gsatt("IPLA","SEEN",0); | |
1115 | gMC->Gsatt("ICO3","SEEN",0); | |
1116 | gMC->Gsatt("IEPX","SEEN",0); | |
1117 | gMC->Gsatt("ISI3","SEEN",1); | |
1118 | gMC->Gsatt("ISUP","SEEN",0); | |
1119 | gMC->Gsatt("ICHO","SEEN",0); | |
1120 | gMC->Gsatt("ICMO","SEEN",0); | |
1121 | gMC->Gsatt("ICMD","SEEN",0); | |
1122 | gMC->Gsatt("ICCO","SEEN",1); | |
1123 | gMC->Gsatt("ICCM","SEEN",0); | |
1124 | gMC->Gsatt("ITMD","SEEN",0); | |
1125 | gMC->Gsatt("ITTT","SEEN",1); | |
1126 | ||
1127 | // | |
1128 | gMC->Gdopt("hide", "on"); | |
1129 | gMC->Gdopt("shad", "on"); | |
1130 | gMC->Gsatt("*", "fill", 7); | |
1131 | gMC->SetClipBox("."); | |
1132 | gMC->SetClipBox("*", 0, 300, -300, 300, -300, 300); | |
1133 | gMC->DefaultRange(); | |
1134 | gMC->Gdraw("alic", 40, 30, 0, 11, 10, .07, .07); | |
1135 | gMC->Gdhead(1111, "Inner Tracking System Version 1"); | |
1136 | gMC->Gdman(17, 6, "MAN"); | |
1137 | } | |
1138 | //_____________________________________________________________________________ | |
1139 | void AliITSvPPRcoarseasymm::StepManager(){ | |
1140 | //////////////////////////////////////////////////////////////////////// | |
1141 | // Called for every step in the ITS, then calls the AliITShit class | |
1142 | // creator with the information to be recoreded about that hit. | |
1143 | //////////////////////////////////////////////////////////////////////// | |
b16d3d87 | 1144 | |
1145 | /* | |
33959f40 | 1146 | Int_t copy, id; |
1147 | Float_t hits[8]; | |
1148 | Int_t vol[4]; | |
1149 | TLorentzVector position, momentum; | |
1150 | // TClonesArray &lhits = *fHits; | |
1151 | // | |
1152 | // no hits for this coarse asymmetric version. | |
1153 | // | |
1154 | ||
1155 | // | |
1156 | // Track status | |
1157 | vol[3] = 0; | |
1158 | if(gMC->IsTrackInside()) vol[3] += 1; | |
1159 | if(gMC->IsTrackEntering()) vol[3] += 2; | |
1160 | if(gMC->IsTrackExiting()) vol[3] += 4; | |
1161 | if(gMC->IsTrackOut()) vol[3] += 8; | |
1162 | if(gMC->IsTrackDisappeared()) vol[3] += 16; | |
1163 | if(gMC->IsTrackStop()) vol[3] += 32; | |
1164 | if(gMC->IsTrackAlive()) vol[3] += 64; | |
1165 | // | |
1166 | // Fill hit structure. | |
1167 | if( !(gMC->TrackCharge()) ) return; | |
1168 | // | |
1169 | // Only entering charged tracks | |
1170 | if((id=gMC->CurrentVolID(copy))==fIdSens[0]) { | |
1171 | vol[0]=1; | |
1172 | id=gMC->CurrentVolOffID(1,copy); | |
1173 | vol[1]=copy; | |
1174 | id=gMC->CurrentVolOffID(2,copy); | |
1175 | vol[2]=copy; | |
1176 | } else if(id==fIdSens[1]) { | |
1177 | vol[0]=2; | |
1178 | id=gMC->CurrentVolOffID(1,copy); | |
1179 | vol[1]=copy; | |
1180 | id=gMC->CurrentVolOffID(2,copy); | |
1181 | vol[2]=copy; | |
1182 | } else if(id==fIdSens[2]) { | |
1183 | vol[0]=3; | |
1184 | vol[1]=copy; | |
1185 | id=gMC->CurrentVolOffID(1,copy); | |
1186 | vol[2]=copy; | |
1187 | } else if(id==fIdSens[3]) { | |
1188 | vol[0]=4; | |
1189 | vol[1]=copy; | |
1190 | id=gMC->CurrentVolOffID(1,copy); | |
1191 | vol[2]=copy; | |
1192 | } else if(id==fIdSens[4]) { | |
1193 | vol[0]=5; | |
1194 | vol[1]=copy; | |
1195 | id=gMC->CurrentVolOffID(1,copy); | |
1196 | vol[2]=copy; | |
1197 | } else if(id==fIdSens[5]) { | |
1198 | vol[0]=6; | |
1199 | vol[1]=copy; | |
1200 | id=gMC->CurrentVolOffID(1,copy); | |
1201 | vol[2]=copy; | |
1202 | } else return; | |
1203 | gMC->TrackPosition(position); | |
1204 | gMC->TrackMomentum(momentum); | |
1205 | hits[0]=position[0]; | |
1206 | hits[1]=position[1]; | |
1207 | hits[2]=position[2]; | |
1208 | hits[3]=momentum[0]; | |
1209 | hits[4]=momentum[1]; | |
1210 | hits[5]=momentum[2]; | |
1211 | hits[6]=gMC->Edep(); | |
1212 | hits[7]=gMC->TrackTime(); | |
5a30b198 | 1213 | // new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->GetMCApp()->GetCurrentTrackNumber(),vol,hits); |
33959f40 | 1214 | // |
1215 | // no hits for this coarse asymmetric version. | |
1216 | // | |
b16d3d87 | 1217 | */ |
33959f40 | 1218 | } |
33959f40 | 1219 |