]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSv1.cxx
First version of combined PID (Yu.Belikov)
[u/mrichter/AliRoot.git] / ITS / AliITSv1.cxx
CommitLineData
4c039060 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
16/*
17$Log$
5d02ea6f 18Revision 1.23 2001/01/30 09:23:13 hristov
19Streamers removed (R.Brun)
20
a8a6107b 21Revision 1.22 2000/10/05 20:49:59 nilsen
22Now using root generated streamers.
23
f7f0c278 24Revision 1.14.2.9 2000/10/05 07:49:27 nilsen
25Removed hit generation from step manager.
26
27Revision 1.14.2.8 2000/07/31 13:50:37 barbera
28Updated from the release
d8331d3f 29
94de3818 30Revision 1.19 2000/07/10 16:07:19 fca
31Release version of ITS code
32
b6668dd3 33Revision 1.14.2.2 2000/05/19 10:09:21 nilsen
34fix for bug with HP and Sun unix + fix for event display in ITS-working branch
c9a71be1 35
56d6a1ef 36Revision 1.14.2.1 2000/03/04 23:45:19 nilsen
37Fixed up the comments/documentation.
38
39Revision 1.14 1999/11/25 06:52:56 fca
40Correct value of drca
41
c4a5a168 42Revision 1.13.2.1 1999/11/25 06:52:21 fca
43Correct value of drca
44
45Revision 1.13 1999/10/27 11:16:26 fca
46Correction of problem in geometry
47
7963222e 48Revision 1.12 1999/10/22 08:25:25 fca
49remove double definition of destructors
50
1e3deba7 51Revision 1.11 1999/10/22 08:16:49 fca
52Correct destructors, thanks to I.Hrivnacova
53
5b8cc8df 54Revision 1.10 1999/10/06 19:56:50 fca
55Add destructor
56
1c1b73f8 57Revision 1.9 1999/10/05 08:05:09 fca
58Minor corrections for uninitialised variables.
59
593d2ea1 60Revision 1.8 1999/09/29 09:24:20 fca
61Introduction of the Copyright and cvs Log
62
4c039060 63*/
64
fe4da5cc 65///////////////////////////////////////////////////////////////////////////////
66// //
67// Inner Traking System version 1 //
58005f18 68// This class contains the base procedures for the Inner Tracking System //
fe4da5cc 69// //
58005f18 70// Authors: R. Barbera, A. Morsch.
71// version 1.
72// Created 1998.
73//
74// NOTE: THIS IS THE COARSE pre.TDR geometry of the ITS. THIS WILL NOT WORK
75// with the geometry or module classes or any analysis classes. You are
76// strongly encouraged to uses AliITSv5.
fe4da5cc 77// //
78///////////////////////////////////////////////////////////////////////////////
79
80#include <TMath.h>
81#include <TRandom.h>
82#include <TVector.h>
c9a71be1 83#include <TGeometry.h>
84#include <TNode.h>
85#include <TTUBE.h>
b6668dd3 86#include <TFile.h> // only required for Tracking function?
87#include <TCanvas.h>
88#include <TObjArray.h>
f7f0c278 89#include <TObjString.h>
b6668dd3 90#include <TClonesArray.h>
91
c9a71be1 92
c9a71be1 93#include "AliConst.h"
f7f0c278 94#include "AliRun.h"
95#include "AliMagF.h"
c9a71be1 96
58005f18 97#include "AliITShit.h"
fe4da5cc 98#include "AliITSv1.h"
fe4da5cc 99
fe4da5cc 100
101ClassImp(AliITSv1)
102
103//_____________________________________________________________________________
e8189707 104AliITSv1::AliITSv1() {
56d6a1ef 105////////////////////////////////////////////////////////////////////////
106// Standard default constructor for the ITS version 1.
107////////////////////////////////////////////////////////////////////////
e8189707 108
f7f0c278 109 fIdN = 0;
110 fIdName = 0;
111 fIdSens = 0;
112 fMajorVersion = 1;
113 fMinorVersion = -1;
fe4da5cc 114}
fe4da5cc 115//_____________________________________________________________________________
56d6a1ef 116AliITSv1::AliITSv1(const char *name, const char *title) : AliITS(name, title){
117////////////////////////////////////////////////////////////////////////
118// Standard constructor for the ITS version 1.
119////////////////////////////////////////////////////////////////////////
e8189707 120
f7f0c278 121 fIdN = 6;
122/*
123// TObjArray of TObjStrings
124 fIdName = new TObjArray(fIdN);
125 fIdName->AddAt(new TObjString("ITS1"),0);
126 fIdName->AddAt(new TObjString("ITS2"),1);
127 fIdName->AddAt(new TObjString("ITS3"),2);
128 fIdName->AddAt(new TObjString("ITS4"),3);
129 fIdName->AddAt(new TObjString("ITS5"),4);
130 fIdName->AddAt(new TObjString("ITS6"),5);
131*/
132// Array of TStrings.
133 fIdName = new TString[fIdN];
134 fIdName[0] = "ITS1";
135 fIdName[1] = "ITS2";
136 fIdName[2] = "ITS3";
137 fIdName[3] = "ITS4";
138 fIdName[4] = "ITS5";
139 fIdName[5] = "ITS6";
140 fIdSens = new Int_t[fIdN];
141 for (Int_t i=0;i<fIdN;i++) fIdSens[i] = 0;
142 fMajorVersion = 1;
143 fMinorVersion = 1;
e8189707 144
fe4da5cc 145}
b6668dd3 146//____________________________________________________________________________
147AliITSv1::AliITSv1(const AliITSv1 &source){
148////////////////////////////////////////////////////////////////////////
149// Copy Constructor for ITS version 1.
150////////////////////////////////////////////////////////////////////////
151 if(&source == this) return;
e8189707 152 printf("Not allowed to copy AliITSv1\n");
481937a6 153 return;
b6668dd3 154}
155//_____________________________________________________________________________
156AliITSv1& AliITSv1::operator=(const AliITSv1 &source){
157////////////////////////////////////////////////////////////////////////
158// Assignment operator for the ITS version 1.
159////////////////////////////////////////////////////////////////////////
481937a6 160 if(&source == this) return *this;
e8189707 161 printf("Not allowed to copy AliITSv1\n");
481937a6 162 return *this;
b6668dd3 163}
1c1b73f8 164//_____________________________________________________________________________
165AliITSv1::~AliITSv1() {
56d6a1ef 166////////////////////////////////////////////////////////////////////////
167// Standard destructor for the ITS version 1.
168////////////////////////////////////////////////////////////////////////
e8189707 169}
170
171//__________________________________________________________________________
c9a71be1 172void AliITSv1::BuildGeometry(){
b6668dd3 173////////////////////////////////////////////////////////////////////////
174// Geometry builder for the ITS version 1.
175////////////////////////////////////////////////////////////////////////
176 TNode *node, *top;
e8189707 177 const int kColorITS=kYellow;
c9a71be1 178 //
b6668dd3 179 top = gAlice->GetGeometry()->GetNode("alice");
c9a71be1 180
181 new TTUBE("S_layer1","Layer1 of ITS","void",3.9,3.9+0.05475,12.25);
b6668dd3 182 top->cd();
183 node = new TNode("Layer1","Layer1","S_layer1",0,0,0,"");
184 node->SetLineColor(kColorITS);
185 fNodes->Add(node);
c9a71be1 186
187 new TTUBE("S_layer2","Layer2 of ITS","void",7.6,7.6+0.05475,16.3);
b6668dd3 188 top->cd();
189 node = new TNode("Layer2","Layer2","S_layer2",0,0,0,"");
190 node->SetLineColor(kColorITS);
191 fNodes->Add(node);
c9a71be1 192
193 new TTUBE("S_layer3","Layer3 of ITS","void",14,14+0.05288,21.1);
b6668dd3 194 top->cd();
195 node = new TNode("Layer3","Layer3","S_layer3",0,0,0,"");
196 node->SetLineColor(kColorITS);
197 fNodes->Add(node);
c9a71be1 198
199 new TTUBE("S_layer4","Layer4 of ITS","void",24,24+0.05288,29.6);
b6668dd3 200 top->cd();
201 node = new TNode("Layer4","Layer4","S_layer4",0,0,0,"");
202 node->SetLineColor(kColorITS);
203 fNodes->Add(node);
c9a71be1 204
205 new TTUBE("S_layer5","Layer5 of ITS","void",40,40+0.05382,45.1);
b6668dd3 206 top->cd();
207 node = new TNode("Layer5","Layer5","S_layer5",0,0,0,"");
208 node->SetLineColor(kColorITS);
209 fNodes->Add(node);
c9a71be1 210
211 new TTUBE("S_layer6","Layer6 of ITS","void",45,45+0.05382,50.4);
b6668dd3 212 top->cd();
213 node = new TNode("Layer6","Layer6","S_layer6",0,0,0,"");
214 node->SetLineColor(kColorITS);
215 fNodes->Add(node);
c9a71be1 216}
fe4da5cc 217//_____________________________________________________________________________
56d6a1ef 218void AliITSv1::CreateGeometry(){
219////////////////////////////////////////////////////////////////////////
220// This routine defines and Creates the geometry for version 1 of the ITS.
221////////////////////////////////////////////////////////////////////////
fe4da5cc 222
223 Float_t drcer[6] = { 0.,0.,.08,.08,0.,0. }; //CERAMICS THICKNESS
224 Float_t drepx[6] = { 0.,0.,0.,0.,.5357,.5357 }; //EPOXY THICKNESS
225 Float_t drpla[6] = { 0.,0.,0.,0.,.1786,.1786 }; //PLASTIC THICKNESS
226 Float_t dzb[6] = { 0.,0.,15.,15.,4.,4. }; //LENGTH OF BOXES
227 Float_t dphi[6] = { 72.,72.,72.,72.,50.6,45. }; //COVERED PHI-RANGE FOR LAYERS 1-6
228 Float_t rl[6] = { 3.9,7.6,14.,24.,40.,45. }; //SILICON LAYERS INNER RADIUS
229 Float_t drl[6] = { .755,.755,.809,.809,.7,.7 }; //THICKNESS OF LAYERS (in % radiation length)
230 Float_t dzl[6] = { 12.67,16.91,20.85,29.15,45.11,50.975 };//HALF LENGTH OF LAYERS
231 Float_t drpcb[6] = { 0.,0.,.06,.06,0.,0. }; //PCB THICKNESS
232 Float_t drcu[6] = { 0.,0.,.0504,.0504,.0357,.0357 }; //COPPER THICKNESS
233 Float_t drsi[6] = { 0.,0.,.006,.006,.3571,.3571 }; //SILICON THICKNESS
234
c4a5a168 235 Float_t drca, dzfc;
fe4da5cc 236 Int_t i, nsec;
b6668dd3 237 Float_t rend, drcatpc, dzco, zend, dits[3], rlim, drsu, zmax;
fe4da5cc 238 Float_t zpos, dzco1, dzco2;
239 Float_t drcac[6], acone, dphii;
240 Float_t pcits[15], xltpc;
241 Float_t rzcone, rstep, r0, z0, acable, fp, dz, zi, ri;
242 Int_t idrotm[399];
243 Float_t dgh[15];
244
ad51aeb0 245 Int_t *idtmed = fIdtmed->GetArray()-199;
fe4da5cc 246
247 // CONVERT INTO CM (RL(SI)=9.36 CM)
e8189707 248 for (i = 0; i < 6; ++i) {
fe4da5cc 249 drl[i] = drl[i] / 100. * 9.36;
250 }
251
252 // SUPPORT ENDPLANE THICKNESS
253 drsu = 2.*0.06+1./20; // 1./20. is 1 cm of honeycomb (1/20 carbon density);
254
255 // CONE BELOW TPC
256
b6668dd3 257 drcatpc = 1.2/4.;
fe4da5cc 258
259 // CABLE THICKNESS (CONICAL CABLES CONNECTING THE LAYERS)
260
c4a5a168 261 drca = 0.2;
fe4da5cc 262
263 // ITS CONE ANGLE
264
265 acone = 45.;
266 acone *= kDegrad;
267
268 // CONE RADIUS AT 1ST LAYER
269
270 rzcone = 30.;
271
272 // FIELD CAGE HALF LENGTH
273
274 dzfc = 64.5;
275 rlim = 48.;
276 zmax = 80.;
277 xltpc = 275.;
278
279
280 // PARAMETERS FOR SMALL (1/2) ITS
f7f0c278 281/*
e8189707 282 for (i = 0; i < 6; ++i) {
fe4da5cc 283 dzl[i] /= 2.;
284 dzb[i] /= 2.;
285 }
286 drca /= 2.;
287 acone /= 2.;
b6668dd3 288 drcatpc /= 2.;
fe4da5cc 289 rzcone /= 2.;
290 dzfc /= 2.;
291 zmax /= 2.;
292 xltpc /= 2.;
f7f0c278 293*/
294 acable = 15.;
fe4da5cc 295
296
297 // EQUAL DISTRIBUTION INTO THE 6 LAYERS
b6668dd3 298 rstep = drcatpc / 6.;
e8189707 299 for (i = 0; i < 6; ++i) {
fe4da5cc 300 drcac[i] = (i+1) * rstep;
301 }
302
303 // NUMBER OF PHI SECTORS
304
305 nsec = 5;
306
307 // PACK IN PHI AS MUCH AS POSSIBLE
308 // NOW PACK USING THICKNESS
309
e8189707 310 for (i = 0; i < 6; ++i) {
fe4da5cc 311
312// PACKING FACTOR
313 fp = rl[5] / rl[i];
314
315 // PHI-PACKING NOT SUFFICIENT ?
316
317 if (dphi[i]/45 < fp) {
318 drcac[i] = drcac[i] * fp * 45/dphi[i];
319 }
320 }
321
322
323 // --- Define ghost volume containing the six layers and fill it with air
324
325 dgh[0] = 3.5;
326 dgh[1] = 50.;
327 dgh[2] = zmax;
cfce8870 328 gMC->Gsvolu("ITSV", "TUBE", idtmed[275], dgh, 3);
fe4da5cc 329
330 // --- Place the ghost volume in its mother volume (ALIC) and make it
331 // invisible
332
cfce8870 333 gMC->Gspos("ITSV", 1, "ALIC", 0., 0., 0., 0, "ONLY");
334 gMC->Gsatt("ITSV", "SEEN", 0);
fe4da5cc 335
336 // ITS LAYERS (SILICON)
337
338 dits[0] = rl[0];
339 dits[1] = rl[0] + drl[0];
340 dits[2] = dzl[0];
cfce8870 341 gMC->Gsvolu("ITS1", "TUBE", idtmed[199], dits, 3);
342 gMC->Gspos("ITS1", 1, "ITSV", 0., 0., 0., 0, "ONLY");
fe4da5cc 343
344 dits[0] = rl[1];
345 dits[1] = rl[1] + drl[1];
346 dits[2] = dzl[1];
cfce8870 347 gMC->Gsvolu("ITS2", "TUBE", idtmed[199], dits, 3);
348 gMC->Gspos("ITS2", 1, "ITSV", 0., 0., 0., 0, "ONLY");
fe4da5cc 349
350 dits[0] = rl[2];
351 dits[1] = rl[2] + drl[2];
352 dits[2] = dzl[2];
cfce8870 353 gMC->Gsvolu("ITS3", "TUBE", idtmed[224], dits, 3);
354 gMC->Gspos("ITS3", 1, "ITSV", 0., 0., 0., 0, "ONLY");
fe4da5cc 355
356 dits[0] = rl[3];
357 dits[1] = rl[3] + drl[3];
358 dits[2] = dzl[3];
cfce8870 359 gMC->Gsvolu("ITS4", "TUBE", idtmed[224], dits, 3);
360 gMC->Gspos("ITS4", 1, "ITSV", 0., 0., 0., 0, "ONLY");
fe4da5cc 361
362 dits[0] = rl[4];
363 dits[1] = rl[4] + drl[4];
364 dits[2] = dzl[4];
cfce8870 365 gMC->Gsvolu("ITS5", "TUBE", idtmed[249], dits, 3);
366 gMC->Gspos("ITS5", 1, "ITSV", 0., 0., 0., 0, "ONLY");
fe4da5cc 367
368 dits[0] = rl[5];
369 dits[1] = rl[5] + drl[5];
370 dits[2] = dzl[5];
cfce8870 371 gMC->Gsvolu("ITS6", "TUBE", idtmed[249], dits, 3);
372 gMC->Gspos("ITS6", 1, "ITSV", 0., 0., 0., 0, "ONLY");
fe4da5cc 373
374 // ELECTRONICS BOXES
375
376 // PCB (layer #3 and #4)
377
cfce8870 378 gMC->Gsvolu("IPCB", "TUBE", idtmed[233], dits, 0);
e8189707 379 for (i = 2; i < 4; ++i) {
fe4da5cc 380 dits[0] = rl[i];
381 dits[1] = dits[0] + drpcb[i];
382 dits[2] = dzb[i] / 2.;
383 zpos = dzl[i] + dits[2];
cfce8870 384 gMC->Gsposp("IPCB", i-1, "ITSV", 0., 0., zpos, 0, "ONLY", dits, 3);
385 gMC->Gsposp("IPCB", i+1, "ITSV", 0., 0.,-zpos, 0, "ONLY", dits, 3);
fe4da5cc 386 }
387
388 // COPPER (layer #3 and #4)
389
cfce8870 390 gMC->Gsvolu("ICO2", "TUBE", idtmed[234], dits, 0);
e8189707 391 for (i = 2; i < 4; ++i) {
fe4da5cc 392 dits[0] = rl[i] + drpcb[i];
393 dits[1] = dits[0] + drcu[i];
394 dits[2] = dzb[i] / 2.;
395 zpos = dzl[i] + dits[2];
cfce8870 396 gMC->Gsposp("ICO2", i-1, "ITSV", 0., 0., zpos, 0, "ONLY", dits, 3);
397 gMC->Gsposp("ICO2", i+1, "ITSV", 0., 0.,-zpos, 0, "ONLY", dits, 3);
fe4da5cc 398 }
399
400 // CERAMICS (layer #3 and #4)
401
cfce8870 402 gMC->Gsvolu("ICER", "TUBE", idtmed[235], dits, 0);
e8189707 403 for (i = 2; i < 4; ++i) {
fe4da5cc 404 dits[0] = rl[i] + drpcb[i] + drcu[i];
405 dits[1] = dits[0] + drcer[i];
406 dits[2] = dzb[i] / 2.;
407 zpos = dzl[i] + dits[2];
cfce8870 408 gMC->Gsposp("ICER", i-1, "ITSV", 0., 0., zpos, 0, "ONLY", dits, 3);
409 gMC->Gsposp("ICER", i+1, "ITSV", 0., 0.,-zpos, 0, "ONLY", dits, 3);
fe4da5cc 410 }
411
412 // SILICON (layer #3 and #4)
413
cfce8870 414 gMC->Gsvolu("ISI2", "TUBE", idtmed[226], dits, 0);
e8189707 415 for (i = 2; i < 4; ++i) {
fe4da5cc 416 dits[0] = rl[i] + drpcb[i] + drcu[i] + drcer[i];
417 dits[1] = dits[0] + drsi[i];
418 dits[2] = dzb[i] / 2.;
419 zpos = dzl[i] + dits[2];
cfce8870 420 gMC->Gsposp("ISI2", i-1, "ITSV", 0., 0., zpos, 0, "ONLY", dits, 3);
421 gMC->Gsposp("ISI2", i+1, "ITSV", 0., 0.,-zpos, 0, "ONLY", dits, 3);
fe4da5cc 422 }
423
424 // PLASTIC (G10FR4) (layer #5 and #6)
425
cfce8870 426 gMC->Gsvolu("IPLA", "TUBE", idtmed[262], dits, 0);
e8189707 427 for (i = 4; i < 6; ++i) {
fe4da5cc 428 dits[0] = rl[i];
429 dits[1] = dits[0] + drpla[i];
430 dits[2] = dzb[i] / 2.;
431 zpos = dzl[i] + dits[2];
cfce8870 432 gMC->Gsposp("IPLA", i-1, "ITSV", 0., 0., zpos, 0, "ONLY", dits, 3);
433 gMC->Gsposp("IPLA", i+1, "ITSV", 0., 0.,-zpos, 0, "ONLY", dits, 3);
fe4da5cc 434 }
435
436 // COPPER (layer #5 and #6)
437
cfce8870 438 gMC->Gsvolu("ICO3", "TUBE", idtmed[259], dits, 0);
e8189707 439 for (i = 4; i < 6; ++i) {
fe4da5cc 440 dits[0] = rl[i] + drpla[i];
441 dits[1] = dits[0] + drcu[i];
442 dits[2] = dzb[i] / 2.;
443 zpos = dzl[i] + dits[2];
cfce8870 444 gMC->Gsposp("ICO3", i-1, "ITSV", 0., 0., zpos, 0, "ONLY", dits, 3);
445 gMC->Gsposp("ICO3", i+1, "ITSV", 0., 0.,-zpos, 0, "ONLY", dits, 3);
fe4da5cc 446 }
447
448 // EPOXY (layer #5 and #6)
449
cfce8870 450 gMC->Gsvolu("IEPX", "TUBE", idtmed[262], dits, 0);
e8189707 451 for (i = 4; i < 6; ++i) {
fe4da5cc 452 dits[0] = rl[i] + drpla[i] + drcu[i];
453 dits[1] = dits[0] + drepx[i];
454 dits[2] = dzb[i] / 2.;
455 zpos = dzl[i] + dits[2];
cfce8870 456 gMC->Gsposp("IEPX", i-1, "ITSV", 0., 0., zpos, 0, "ONLY", dits, 3);
457 gMC->Gsposp("IEPX", i+1, "ITSV", 0., 0.,-zpos, 0, "ONLY", dits, 3);
fe4da5cc 458 }
459
460 // SILICON (layer #5 and #6)
461
cfce8870 462 gMC->Gsvolu("ISI3", "TUBE", idtmed[251], dits, 0);
e8189707 463 for (i = 4; i < 6; ++i) {
fe4da5cc 464 dits[0] = rl[i] + drpla[i] + drcu[i] + drepx[i];
465 dits[1] = dits[0] + drsi[i];
466 dits[2] = dzb[i] / 2.;
467 zpos = dzl[i] + dits[2];
cfce8870 468 gMC->Gsposp("ISI3", i-1, "ITSV", 0., 0., zpos, 0, "ONLY", dits, 3);
469 gMC->Gsposp("ISI3", i+1, "ITSV", 0., 0.,-zpos, 0, "ONLY", dits, 3);
fe4da5cc 470 }
471
472 // SUPPORT
473
cfce8870 474 gMC->Gsvolu("ISUP", "TUBE", idtmed[274], dits, 0);
e8189707 475 for (i = 0; i < 6; ++i) {
fe4da5cc 476 dits[0] = rl[i];
7963222e 477 if (i < 5) dits[1] = rl[i+1];
fe4da5cc 478 else dits[1] = rlim;
479 dits[2] = drsu / 2.;
480 zpos = dzl[i] + dzb[i] + dits[2];
cfce8870 481 gMC->Gsposp("ISUP", i+1, "ITSV", 0., 0., zpos, 0, "ONLY", dits, 3);
482 gMC->Gsposp("ISUP", i+7, "ITSV", 0., 0.,-zpos, 0, "ONLY", dits, 3);
fe4da5cc 483 }
484
485 // CABLES (HORIZONTAL)
486
cfce8870 487 gMC->Gsvolu("ICHO", "TUBE", idtmed[278], dits, 0);
e8189707 488 for (i = 0; i < 6; ++i) {
fe4da5cc 489 dits[0] = rl[i];
490 dits[1] = dits[0] + drca;
491 dits[2] = (rzcone + TMath::Tan(acone) * (rl[i] - rl[0]) - (dzl[i]+ dzb[i] + drsu)) / 2.;
492 zpos = dzl[i - 1] + dzb[i] + drsu + dits[2];
cfce8870 493 gMC->Gsposp("ICHO", i+1, "ITSV", 0., 0., zpos, 0, "ONLY", dits, 3);
494 gMC->Gsposp("ICHO", i+7, "ITSV", 0., 0.,-zpos, 0, "ONLY", dits, 3);
fe4da5cc 495 }
496 // DEFINE A CONICAL GHOST VOLUME FOR THE PHI SEGMENTATION
497 pcits[0] = 0.;
498 pcits[1] = 360.;
499 pcits[2] = 2.;
500 pcits[3] = rzcone;
501 pcits[4] = 3.5;
502 pcits[5] = rl[0];
503 pcits[6] = pcits[3] + TMath::Tan(acone) * (rlim - rl[0]);
504 pcits[7] = rlim - rl[0] + 3.5;
505 pcits[8] = rlim;
cfce8870 506 gMC->Gsvolu("ICMO", "PCON", idtmed[275], pcits, 9);
fe4da5cc 507 AliMatrix(idrotm[200], 90., 0., 90., 90., 180., 0.);
cfce8870 508 gMC->Gspos("ICMO", 1, "ITSV", 0., 0., 0., 0, "ONLY");
509 gMC->Gspos("ICMO", 2, "ITSV", 0., 0., 0., idrotm[200], "ONLY");
fe4da5cc 510
511 // DIVIDE INTO NSEC PHI-SECTIONS
512
cfce8870 513 gMC->Gsdvn("ICMD", "ICMO", nsec, 2);
514 gMC->Gsatt("ICMO", "SEEN", 0);
515 gMC->Gsatt("ICMD", "SEEN", 0);
fe4da5cc 516
517 // CONICAL CABLES
518
519 pcits[2] = 2.;
cfce8870 520 gMC->Gsvolu("ICCO", "PCON", idtmed[278], pcits, 0);
e8189707 521 for (i = 1; i < 6; ++i) {
fe4da5cc 522 pcits[0] = -dphi[i] / 2.;
523 pcits[1] = dphi[i];
524 if (i < 5) {
525 dzco = TMath::Tan(acone) * (rl[i+1] - rl[i]);
526 } else {
527 dzco1 = zmax - (rzcone + TMath::Tan(acone) * (rl[5] - rl[0])) -2.;
528 dzco2 = (rlim - rl[5]) * TMath::Tan(acone);
529 if (rl[5] + dzco1 / TMath::Tan(acone) < rlim) {
530 dzco = dzco1;
531 } else {
532 dzco = dzco2;
533 }
534 }
535 pcits[3] = rzcone + TMath::Tan(acone) * (rl[i] - rl[0]);
536 pcits[4] = rl[i] - drcac[i] / TMath::Sin(acone);
537 pcits[5] = rl[i];
538 pcits[6] = pcits[3] + dzco;
539 pcits[7] = rl[i] + dzco / TMath::Tan(acone) - drcac[i] / TMath::Sin(acone);
540 pcits[8] = rl[i] + dzco / TMath::Tan(acone);
541
cfce8870 542 gMC->Gsposp("ICCO", i, "ICMD", 0., 0., 0., 0, "ONLY", pcits, 9);
fe4da5cc 543
544 }
545 zend = pcits[6];
546 rend = pcits[8];
547
548 // CONICAL CABLES BELOW TPC
549
550 // DEFINE A CONICAL GHOST VOLUME FOR THE PHI SEGMENTATION
551 pcits[0] = 0.;
552 pcits[1] = 360.;
553 pcits[2] = 2.;
554 pcits[3] = zend;
555 pcits[5] = rend;
b6668dd3 556 pcits[4] = pcits[5] - drcatpc;
fe4da5cc 557 pcits[6] = xltpc;
558 pcits[8] = pcits[4] + (pcits[6] - pcits[3]) * TMath::Tan(acable * kDegrad);
b6668dd3 559 pcits[7] = pcits[8] - drcatpc;
fe4da5cc 560 AliMatrix(idrotm[200], 90., 0., 90., 90., 180., 0.);
cfce8870 561 gMC->Gsvolu("ICCM", "PCON", idtmed[275], pcits, 9);
562 gMC->Gspos("ICCM", 1, "ALIC", 0., 0., 0., 0, "ONLY");
563 gMC->Gspos("ICCM", 2, "ALIC", 0., 0., 0., idrotm[200], "ONLY");
564 gMC->Gsdvn("ITMD", "ICCM", nsec, 2);
565 gMC->Gsatt("ITMD", "SEEN", 0);
566 gMC->Gsatt("ICCM", "SEEN", 0);
fe4da5cc 567
568 // NOW PLACE SEGMENTS WITH DECREASING PHI SEGMENTS INTO THE
569 // GHOST-VOLUME
570
571 pcits[2] = 2.;
cfce8870 572 gMC->Gsvolu("ITTT", "PCON", idtmed[278], pcits, 0);
fe4da5cc 573 r0 = rend;
574 z0 = zend;
575 dz = (xltpc - zend) / 9.;
e8189707 576 for (i = 0; i < 9; ++i) {
fe4da5cc 577 zi = z0 + i*dz + dz / 2.;
578 ri = r0 + (zi - z0) * TMath::Tan(acable * kDegrad);
579 dphii = dphi[5] * r0 / ri;
580 pcits[0] = -dphii / 2.;
581 pcits[1] = dphii;
582 pcits[3] = zi - dz / 2.;
583 pcits[5] = r0 + (pcits[3] - z0) * TMath::Tan(acable * kDegrad);
b6668dd3 584 pcits[4] = pcits[5] - drcatpc;
fe4da5cc 585 pcits[6] = zi + dz / 2.;
586 pcits[8] = r0 + (pcits[6] - z0) * TMath::Tan(acable * kDegrad);
b6668dd3 587 pcits[7] = pcits[8] - drcatpc;
fe4da5cc 588
cfce8870 589 gMC->Gsposp("ITTT", i+1, "ITMD", 0., 0., 0., 0, "ONLY", pcits, 9);
fe4da5cc 590 }
591
592 // --- Outputs the geometry tree in the EUCLID/CAD format
593
594 if (fEuclidOut) {
cfce8870 595 gMC->WriteEuclid("ITSgeometry", "ITSV", 1, 5);
fe4da5cc 596 }
597}
fe4da5cc 598//_____________________________________________________________________________
56d6a1ef 599void AliITSv1::CreateMaterials(){
600////////////////////////////////////////////////////////////////////////
c9a71be1 601 //
602 // Create ITS materials
603 // This function defines the default materials used in the Geant
b6668dd3 604 // Monte Carlo simulations for the geometries AliITSv1 and AliITSv3.
605 // In general it is automatically replaced by
c9a71be1 606 // the CreatMaterials routine defined in AliITSv?. Should the function
607 // CreateMaterials not exist for the geometry version you are using this
608 // one is used. See the definition found in AliITSv5 or the other routine
609 // for a complete definition.
610 //
611 // Water H2O
612 Float_t awat[2] = { 1.00794,15.9994 };
613 Float_t zwat[2] = { 1.,8. };
614 Float_t wwat[2] = { 2.,1. };
615 Float_t denswat = 1.;
616 // Freon
617 Float_t afre[2] = { 12.011,18.9984032 };
618 Float_t zfre[2] = { 6.,9. };
619 Float_t wfre[2] = { 5.,12. };
620 Float_t densfre = 1.5;
621 // Ceramics
622 // 94.4% Al2O3 , 2.8% SiO2 , 2.3% MnO , 0.5% Cr2O3
623 Float_t acer[5] = { 26.981539,15.9994,28.0855,54.93805,51.9961 };
624 Float_t zcer[5] = { 13.,8.,14.,25., 24. };
625 Float_t wcer[5] = { .49976,1.01233,.01307, .01782,.00342 };
626 Float_t denscer = 3.6;
627 //
628 // 60% SiO2 , 40% G10FR4
629 // PC board
630 Float_t apcb[3] = { 28.0855,15.9994,17.749 };
631 Float_t zpcb[3] = { 14.,8.,8.875 };
632 Float_t wpcb[3] = { .28,.32,.4 };
633 Float_t denspcb = 1.8;
634 // POLYETHYL
635 Float_t apoly[2] = { 12.01,1. };
636 Float_t zpoly[2] = { 6.,1. };
637 Float_t wpoly[2] = { .33,.67 };
638 // SERVICES
639 Float_t zserv[4] = { 1.,6.,26.,29. };
640 Float_t aserv[4] = { 1.,12.,55.8,63.5 };
641 Float_t wserv[4] = { .014,.086,.42,.48 };
642
b6668dd3 643 Int_t isxfld = gAlice->Field()->Integ();
644 Float_t sxmgmx = gAlice->Field()->Max();
c9a71be1 645
646
647 // --- Define the various materials for GEANT ---
648
649 // 200-224 --> Silicon Pixel Detectors (detectors, chips, buses, cooling,..)
650
651 AliMaterial(0, "SPD Si$", 28.0855, 14., 2.33, 9.36, 999);
652 AliMaterial(1, "SPD Si chip$", 28.0855, 14., 2.33, 9.36, 999);
653 AliMaterial(2, "SPD Si bus$", 28.0855, 14., 2.33, 9.36, 999);
654 AliMaterial(3, "SPD C$", 12.011, 6., 2.265,18.8, 999);
655 // v. dens
656 AliMaterial(4, "SPD Air$", 14.61, 7.3, .001205, 30423., 999);
657 AliMaterial(5, "SPD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
658 AliMaterial(6, "SPD Al$", 26.981539, 13., 2.6989, 8.9, 999);
659 AliMixture( 7, "SPD Water $", awat, zwat, denswat, -2, wwat);
660 AliMixture( 8, "SPD Freon$", afre, zfre, densfre, -2, wfre);
661 // **
b6668dd3 662 AliMedium(0, "SPD Si$", 0, 1,isxfld,sxmgmx, 10., .01, .1, .003, .003);
663 AliMedium(1, "SPD Si chip$", 1, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
664 AliMedium(2, "SPD Si bus$", 2, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
665 AliMedium(3, "SPD C$", 3, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
666 AliMedium(4, "SPD Air$", 4, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
667 AliMedium(5, "SPD Vacuum$", 5, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
668 AliMedium(6, "SPD Al$", 6, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
669 AliMedium(7, "SPD Water $", 7, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
670 AliMedium(8, "SPD Freon$", 8, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
c9a71be1 671
672 // 225-249 --> Silicon Drift Detectors (detectors, chips, buses, cooling,..)
673
674 AliMaterial(25, "SDD Si$", 28.0855, 14., 2.33, 9.36, 999);
675 AliMaterial(26, "SDD Si chip$", 28.0855, 14., 2.33, 9.36, 999);
676 AliMaterial(27, "SDD Si bus$", 28.0855, 14., 2.33, 9.36, 999);
677 AliMaterial(28, "SDD C$", 12.011, 6., 2.265,18.8, 999);
678 // v. dens
679 AliMaterial(29, "SDD Air$", 14.61, 7.3, .001205, 30423., 999);
680 AliMaterial(30, "SDD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
681 AliMaterial(31, "SDD Al$", 26.981539, 13., 2.6989, 8.9, 999);
682 // After a call with ratios by number (negative number of elements),
683 // the ratio array is changed to the ratio by weight, so all successive
684 // calls with the same array must specify the number of elements as
685 // positive
686 AliMixture(32, "SDD Water $", awat, zwat, denswat, 2, wwat);
687 // After a call with ratios by number (negative number of elements),
688 // the ratio array is changed to the ratio by weight, so all successive
689 // calls with the same array must specify the number of elements as
690 // positive
691 AliMixture( 33, "SDD Freon$", afre, zfre, densfre, 2, wfre);
692 AliMixture( 34, "SDD PCB$", apcb, zpcb, denspcb, 3, wpcb);
693 AliMaterial(35, "SDD Copper$", 63.546, 29., 8.96, 1.43, 999);
694 AliMixture( 36, "SDD Ceramics$", acer, zcer, denscer, -5, wcer);
695 AliMaterial(37, "SDD Kapton$", 12.011, 6., 1.3, 31.27, 999);
696 // **
697 // check A and Z
b6668dd3 698 AliMedium(25, "SDD Si$", 25, 1,isxfld,sxmgmx, 10., .01, .1, .003, .003);
699 AliMedium(26, "SDD Si chip$", 26, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
700 AliMedium(27, "SDD Si bus$", 27, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
701 AliMedium(28, "SDD C$", 28, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
702 AliMedium(29, "SDD Air$", 29, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
703 AliMedium(30, "SDD Vacuum$", 30, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
704 AliMedium(31, "SDD Al$", 31, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
705 AliMedium(32, "SDD Water $", 32, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
706 AliMedium(33, "SDD Freon$", 33, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
707 AliMedium(34, "SDD PCB$", 34, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
708 AliMedium(35, "SDD Copper$", 35, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
709 AliMedium(36, "SDD Ceramics$",36, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
710 AliMedium(37, "SDD Kapton$", 37, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
c9a71be1 711
712 // 250-274 --> Silicon Strip Detectors (detectors, chips, buses, cooling,..)
713
714 AliMaterial(50, "SSD Si$", 28.0855, 14., 2.33, 9.36, 999.);
715 AliMaterial(51, "SSD Si chip$", 28.0855, 14., 2.33, 9.36, 999.);
716 AliMaterial(52, "SSD Si bus$", 28.0855, 14., 2.33, 9.36, 999.);
717 AliMaterial(53, "SSD C$", 12.011, 6., 2.265,18.8, 999.);
718 // v. dens
719 AliMaterial(54, "SSD Air$", 14.61, 7.3, .001205, 30423., 999);
720 AliMaterial(55, "SSD Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
721 AliMaterial(56, "SSD Al$", 26.981539, 13., 2.6989, 8.9, 999);
722 // After a call with ratios by number (negative number of elements),
723 // the ratio array is changed to the ratio by weight, so all successive
724 // calls with the same array must specify the number of elements as
725 // positive
726 AliMixture(57, "SSD Water $", awat, zwat, denswat, 2, wwat);
727 // After a call with ratios by number (negative number of elements),
728 // the ratio array is changed to the ratio by weight, so all successive
729 // calls with the same array must specify the number of elements as
730 // positive
731 AliMixture(58, "SSD Freon$", afre, zfre, densfre, 2, wfre);
732 AliMixture(59, "SSD PCB$", apcb, zpcb, denspcb, 3, wpcb);
733 AliMaterial(60, "SSD Copper$", 63.546, 29., 8.96, 1.43, 999.);
734 // After a call with ratios by number (negative number of elements),
735 // the ratio array is changed to the ratio by weight, so all successive
736 // calls with the same array must specify the number of elements as
737 // positive
738 AliMixture( 61, "SSD Ceramics$", acer, zcer, denscer, 5, wcer);
739 AliMaterial(62, "SSD Kapton$", 12.011, 6., 1.3, 31.27, 999.);
740 // check A and Z
741 AliMaterial(63, "SDD G10FR4$", 17.749, 8.875, 1.8, 21.822, 999.);
742 // **
b6668dd3 743 AliMedium(50, "SSD Si$", 50, 1,isxfld,sxmgmx, 10., .01, .1, .003, .003);
744 AliMedium(51, "SSD Si chip$", 51, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
745 AliMedium(52, "SSD Si bus$", 52, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
746 AliMedium(53, "SSD C$", 53, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
747 AliMedium(54, "SSD Air$", 54, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
748 AliMedium(55, "SSD Vacuum$", 55, 0,isxfld,sxmgmx, 10.,1.00, .1, .100,10.00);
749 AliMedium(56, "SSD Al$", 56, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
750 AliMedium(57, "SSD Water $", 57, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
751 AliMedium(58, "SSD Freon$", 58, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
752 AliMedium(59, "SSD PCB$", 59, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
753 AliMedium(60, "SSD Copper$", 60, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
754 AliMedium(61, "SSD Ceramics$",61, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
755 AliMedium(62, "SSD Kapton$", 62, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
756 AliMedium(63, "SSD G10FR4$", 63, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
c9a71be1 757
758 // 275-299 --> General (end-caps, frames, cooling, cables, etc.)
759
760 AliMaterial(75, "GEN C$", 12.011, 6., 2.265, 18.8, 999.);
761 // verify density
762 AliMaterial(76, "GEN Air$", 14.61, 7.3, .001205, 30423., 999);
763 AliMaterial(77, "GEN Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
764 AliMixture( 78, "GEN POLYETHYL$", apoly, zpoly, .95, -2, wpoly);
765 AliMixture( 79, "GEN SERVICES$", aserv, zserv, 4.68, 4, wserv);
766 AliMaterial(80, "GEN Copper$", 63.546, 29., 8.96, 1.43, 999.);
767 // After a call with ratios by number (negative number of elements),
768 // the ratio array is changed to the ratio by weight, so all successive
769 // calls with the same array must specify the number of elements as
770 // positive
771 AliMixture(81, "GEN Water $", awat, zwat, denswat, 2, wwat);
772 // **
b6668dd3 773 AliMedium(75,"GEN C$", 75, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
774 AliMedium(76,"GEN Air$", 76, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
775 AliMedium(77,"GEN Vacuum$", 77, 0,isxfld,sxmgmx, 10., .10, .1, .100,10.00);
776 AliMedium(78,"GEN POLYETHYL$",78, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
777 AliMedium(79,"GEN SERVICES$", 79, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
778 AliMedium(80,"GEN Copper$", 80, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
779 AliMedium(81,"GEN Water $", 81, 0,isxfld,sxmgmx, 10., .01, .1, .003, .003);
fe4da5cc 780}
fe4da5cc 781//_____________________________________________________________________________
593d2ea1 782void AliITSv1::Init(){
56d6a1ef 783////////////////////////////////////////////////////////////////////////
784// Initialise the ITS after it has been created.
785////////////////////////////////////////////////////////////////////////
e8189707 786
593d2ea1 787 //
788 AliITS::Init();
789 fMajorVersion = 1;
790 fMinorVersion = 0;
fe4da5cc 791}
792
793//_____________________________________________________________________________
56d6a1ef 794void AliITSv1::DrawModule(){
795////////////////////////////////////////////////////////////////////////
796// Draw a shaded view of the FMD version 1.
797////////////////////////////////////////////////////////////////////////
fe4da5cc 798
799 // Set everything unseen
cfce8870 800 gMC->Gsatt("*", "seen", -1);
fe4da5cc 801 //
802 // Set ALIC mother visible
cfce8870 803 gMC->Gsatt("ALIC","SEEN",0);
fe4da5cc 804 //
805 // Set the volumes visible
cfce8870 806 gMC->Gsatt("ITSV","SEEN",0);
807 gMC->Gsatt("ITS1","SEEN",1);
808 gMC->Gsatt("ITS2","SEEN",1);
809 gMC->Gsatt("ITS3","SEEN",1);
810 gMC->Gsatt("ITS4","SEEN",1);
811 gMC->Gsatt("ITS5","SEEN",1);
812 gMC->Gsatt("ITS6","SEEN",1);
fe4da5cc 813
cfce8870 814 gMC->Gsatt("IPCB","SEEN",1);
815 gMC->Gsatt("ICO2","SEEN",1);
816 gMC->Gsatt("ICER","SEEN",0);
817 gMC->Gsatt("ISI2","SEEN",0);
818 gMC->Gsatt("IPLA","SEEN",0);
819 gMC->Gsatt("ICO3","SEEN",0);
820 gMC->Gsatt("IEPX","SEEN",0);
821 gMC->Gsatt("ISI3","SEEN",1);
822 gMC->Gsatt("ISUP","SEEN",0);
823 gMC->Gsatt("ICHO","SEEN",0);
824 gMC->Gsatt("ICMO","SEEN",0);
825 gMC->Gsatt("ICMD","SEEN",0);
826 gMC->Gsatt("ICCO","SEEN",1);
827 gMC->Gsatt("ICCM","SEEN",0);
828 gMC->Gsatt("ITMD","SEEN",0);
829 gMC->Gsatt("ITTT","SEEN",1);
fe4da5cc 830
831 //
cfce8870 832 gMC->Gdopt("hide", "on");
833 gMC->Gdopt("shad", "on");
834 gMC->Gsatt("*", "fill", 7);
835 gMC->SetClipBox(".");
836 gMC->SetClipBox("*", 0, 300, -300, 300, -300, 300);
837 gMC->DefaultRange();
838 gMC->Gdraw("alic", 40, 30, 0, 11, 10, .07, .07);
839 gMC->Gdhead(1111, "Inner Tracking System Version 1");
840 gMC->Gdman(17, 6, "MAN");
fe4da5cc 841}
fe4da5cc 842//_____________________________________________________________________________
56d6a1ef 843void AliITSv1::StepManager(){
844////////////////////////////////////////////////////////////////////////
845// Called for every step in the ITS, then calles the AliITShit class
846// creator with the information to be recoreded about that hit.
847////////////////////////////////////////////////////////////////////////
d8331d3f 848/*
fe4da5cc 849 Int_t copy, id;
58005f18 850 Float_t hits[8];
851 Int_t vol[4];
0a6d8768 852 TLorentzVector position, momentum;
fe4da5cc 853 TClonesArray &lhits = *fHits;
fe4da5cc 854 //
58005f18 855 // Track status
856 vol[3] = 0;
857 if(gMC->IsTrackInside()) vol[3] += 1;
858 if(gMC->IsTrackEntering()) vol[3] += 2;
859 if(gMC->IsTrackExiting()) vol[3] += 4;
860 if(gMC->IsTrackOut()) vol[3] += 8;
861 if(gMC->IsTrackDisappeared()) vol[3] += 16;
862 if(gMC->IsTrackStop()) vol[3] += 32;
863 if(gMC->IsTrackAlive()) vol[3] += 64;
864 //
865 // Fill hit structure.
56d6a1ef 866 if( !(gMC->TrackCharge()) ) return;
fe4da5cc 867 //
868 // Only entering charged tracks
58005f18 869 if((id=gMC->CurrentVolID(copy))==fIdSens[0]) {
fe4da5cc 870 vol[0]=1;
0a6d8768 871 id=gMC->CurrentVolOffID(1,copy);
fe4da5cc 872 vol[1]=copy;
0a6d8768 873 id=gMC->CurrentVolOffID(2,copy);
fe4da5cc 874 vol[2]=copy;
58005f18 875 } else if(id==fIdSens[1]) {
fe4da5cc 876 vol[0]=2;
0a6d8768 877 id=gMC->CurrentVolOffID(1,copy);
fe4da5cc 878 vol[1]=copy;
0a6d8768 879 id=gMC->CurrentVolOffID(2,copy);
fe4da5cc 880 vol[2]=copy;
58005f18 881 } else if(id==fIdSens[2]) {
fe4da5cc 882 vol[0]=3;
883 vol[1]=copy;
0a6d8768 884 id=gMC->CurrentVolOffID(1,copy);
fe4da5cc 885 vol[2]=copy;
58005f18 886 } else if(id==fIdSens[3]) {
fe4da5cc 887 vol[0]=4;
888 vol[1]=copy;
0a6d8768 889 id=gMC->CurrentVolOffID(1,copy);
fe4da5cc 890 vol[2]=copy;
58005f18 891 } else if(id==fIdSens[4]) {
fe4da5cc 892 vol[0]=5;
893 vol[1]=copy;
0a6d8768 894 id=gMC->CurrentVolOffID(1,copy);
fe4da5cc 895 vol[2]=copy;
58005f18 896 } else if(id==fIdSens[5]) {
fe4da5cc 897 vol[0]=6;
898 vol[1]=copy;
0a6d8768 899 id=gMC->CurrentVolOffID(1,copy);
fe4da5cc 900 vol[2]=copy;
901 } else return;
cfce8870 902 gMC->TrackPosition(position);
903 gMC->TrackMomentum(momentum);
fe4da5cc 904 hits[0]=position[0];
905 hits[1]=position[1];
906 hits[2]=position[2];
0a6d8768 907 hits[3]=momentum[0];
908 hits[4]=momentum[1];
58005f18 909 hits[5]=momentum[2];
cfce8870 910 hits[6]=gMC->Edep();
58005f18 911 hits[7]=gMC->TrackTime();
fe4da5cc 912 new(lhits[fNhits++]) AliITShit(fIshunt,gAlice->CurrentTrack(),vol,hits);
d8331d3f 913*/
fe4da5cc 914}