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