1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
20 ///////////////////////////////////////////////////////////////////////////////
23 // This class contains the basic functions for the Time Of Flight //
24 // detector. Functions specific to one particular geometry are //
25 // contained in the derived classes //
29 <img src="picts/AliTOFClass.gif">
34 ///////////////////////////////////////////////////////////////////////////////
46 //_____________________________________________________________________________
50 // Default constructor
55 //_____________________________________________________________________________
56 AliTOF::AliTOF(const char *name, const char *title)
57 : AliDetector(name,title)
60 // AliTOF standard constructor
62 fHits = new TClonesArray("AliTOFhit", 405);
70 // Check that FRAME is there otherwise we have no place where to
72 AliModule* FRAME=gAlice->GetModule("FRAME");
74 Error("Ctor","TOF needs FRAME to be present\n");
79 //_____________________________________________________________________________
80 void AliTOF::AddHit(Int_t track, Int_t *vol, Float_t *hits)
85 TClonesArray &lhits = *fHits;
86 new(lhits[fNhits++]) AliTOFhit(fIshunt,track,vol,hits);
89 //_____________________________________________________________________________
90 void AliTOF::BuildGeometry()
93 // Build TOF ROOT geometry for the ALICE event viewver
96 const int kColorTOF = 27;
99 Top=gAlice->GetGeometry()->GetNode("alice");
101 // Define rotation matrixes
102 new TRotMatrix("rot501","rot501",90,-20,90,90-20,0,0);
103 new TRotMatrix("rot502","rot502",90,-40,90,90-40,0,0);
104 new TRotMatrix("rot503","rot503",90,-60,90,90-60,0,0);
105 new TRotMatrix("rot504","rot504",90,-80,90,90-80,0,0);
106 new TRotMatrix("rot505","rot505",90,-100,90,90-100,0,0);
107 new TRotMatrix("rot506","rot506",90,-120,90,90-120,0,0);
108 new TRotMatrix("rot507","rot507",90,-140,90,90-140,0,0);
109 new TRotMatrix("rot508","rot508",90,-160,90,90-160,0,0);
110 new TRotMatrix("rot509","rot509",90,-180,90,90-180,0,0);
111 new TRotMatrix("rot510","rot510",90,-200,90,90-200,0,0);
112 new TRotMatrix("rot511","rot511",90,-220,90,90-220,0,0);
113 new TRotMatrix("rot512","rot512",90,-240,90,90-240,0,0);
114 new TRotMatrix("rot513","rot513",90,-260,90,90-260,0,0);
115 new TRotMatrix("rot514","rot514",90,-280,90,90-280,0,0);
116 new TRotMatrix("rot515","rot515",90,-300,90,90-300,0,0);
117 new TRotMatrix("rot516","rot516",90,-320,90,90-320,0,0);
118 new TRotMatrix("rot517","rot517",90,-340,90,90-340,0,0);
119 new TRotMatrix("rot518","rot518",90,-360,90,90-360,0,0);
121 // Position the different copies
122 const Float_t rtof=(399+370)/2;
124 const Float_t angle=2*kPI/ntof;
127 // Define TOF basic volume
128 new TBRIK("S_TOF1","TOF box","void",130/2,29/2,190.);
133 Node = new TNode("FTO002","FTO02","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),190,"rot502");
134 Node->SetLineColor(kColorTOF);
138 Node = new TNode("FTO102","FTO102","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-190,"rot502");
139 Node->SetLineColor(kColorTOF);
145 Node = new TNode("FTO003","FTO003","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),190,"rot503");
146 Node->SetLineColor(kColorTOF);
150 Node = new TNode("FTO103","FTO103","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-190,"rot503");
151 Node->SetLineColor(kColorTOF);
157 Node = new TNode("FTO004","FTO004","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),190,"rot504");
158 Node->SetLineColor(kColorTOF);
162 Node = new TNode("FTO104","FTO104","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-190,"rot504");
163 Node->SetLineColor(kColorTOF);
169 Node = new TNode("FTO005","FTO005","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),190,"rot505");
170 Node->SetLineColor(kColorTOF);
174 Node = new TNode("FTO105","FTO105","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-190,"rot505");
175 Node->SetLineColor(kColorTOF);
181 Node = new TNode("FTO006","FTO006","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),190,"rot506");
182 Node->SetLineColor(kColorTOF);
186 Node = new TNode("FTO106","FTO106","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-190,"rot506");
187 Node->SetLineColor(kColorTOF);
193 Node = new TNode("FTO012","FTO012","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),190,"rot512");
194 Node->SetLineColor(kColorTOF);
198 Node = new TNode("FTO112","FTO112","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-190,"rot512");
199 Node->SetLineColor(kColorTOF);
205 Node = new TNode("FTO013","FTO013","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),190,"rot513");
206 Node->SetLineColor(kColorTOF);
210 Node = new TNode("FTO113","FTO113","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-190,"rot513");
211 Node->SetLineColor(kColorTOF);
217 Node = new TNode("FTO014","FTO04","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),190,"rot514");
218 Node->SetLineColor(kColorTOF);
222 Node = new TNode("FTO114","FTO114","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-190,"rot514");
223 Node->SetLineColor(kColorTOF);
229 Node = new TNode("FTO015","FTO015","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),190,"rot515");
230 Node->SetLineColor(kColorTOF);
234 Node = new TNode("FTO115","FTO115","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-190,"rot515");
235 Node->SetLineColor(kColorTOF);
241 Node = new TNode("FTO016","FTO016","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),190,"rot516");
242 Node->SetLineColor(kColorTOF);
246 Node = new TNode("FTO116","FTO116","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-190,"rot516");
247 Node->SetLineColor(kColorTOF);
251 // Define second TOF volume
252 new TBRIK("S_TOF2","TOF box","void",130/2,29/2,170.);
254 // Position the volume
257 Node = new TNode("FTO007","FTO007","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),(2*190-170),"rot507");
258 Node->SetLineColor(kColorTOF);
262 Node = new TNode("FTO107","FTO107","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-(2*190-170),"rot507");
263 Node->SetLineColor(kColorTOF);
269 Node = new TNode("FTO008","FTO008","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),(2*190-170),"rot508");
270 Node->SetLineColor(kColorTOF);
274 Node = new TNode("FTO108","FTO108","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-(2*190-170),"rot508");
275 Node->SetLineColor(kColorTOF);
281 Node = new TNode("FTO009","FTO009","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),(2*190-170),"rot509");
282 Node->SetLineColor(kColorTOF);
286 Node = new TNode("FTO109","FTO109","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-(2*190-170),"rot509");
287 Node->SetLineColor(kColorTOF);
293 Node = new TNode("FTO010","FTO010","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),(2*190-170),"rot510");
294 Node->SetLineColor(kColorTOF);
298 Node = new TNode("FTO110","FTO110","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-(2*190-170),"rot510");
299 Node->SetLineColor(kColorTOF);
305 Node = new TNode("FTO011","FTO011","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),(2*190-170),"rot511");
306 Node->SetLineColor(kColorTOF);
310 Node = new TNode("FTO111","FTO111","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-(2*190-170),"rot511");
311 Node->SetLineColor(kColorTOF);
315 // Define third TOF volume
316 new TBRIK("S_TOF3","TOF box","void",130/2.,29/2,75.);
321 Node = new TNode("FTO001","FTO001","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),(2*190-75),"rot501");
322 Node->SetLineColor(kColorTOF);
326 Node = new TNode("FTO101","FTO101","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-(2*190-75),"rot501");
327 Node->SetLineColor(kColorTOF);
333 Node = new TNode("FTO017","FTO017","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),(2*190-75),"rot517");
334 Node->SetLineColor(kColorTOF);
338 Node = new TNode("FTO117","FTO117","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-(2*190-75),"rot517");
339 Node->SetLineColor(kColorTOF);
345 Node = new TNode("FTO018","FTO018","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),(2*190-75),"rot518");
346 Node->SetLineColor(kColorTOF);
350 Node = new TNode("FTO118","FTO118","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-(2*190-75),"rot518");
351 Node->SetLineColor(kColorTOF);
355 //_____________________________________________________________________________
356 void AliTOF::CreateGeometry()
359 // Common geometry code
363 <img src="picts/AliTOFv23.gif">
368 const Double_t kPi=TMath::Pi();
369 const Double_t kDegrad=kPi/180;
372 Float_t xtof, ytof, fil_step;
373 Float_t zcor1, zcor2, zcor3;
374 Float_t ztof0, ztof1, ztof2;
375 Float_t zl, rmin, rmax, xm, ym, dwall;
377 Float_t zm0, zm1, zm2;
380 Int_t *idtmed = fIdtmed->GetArray()-499;
382 // barrel iner radius
384 // barrel outer radius
386 // barrel length along Z axis
387 zl = (rmin+2/*distance to sencetive layer*/+7/2)*2;
389 // frame inbetween TOF modules
391 // Sizes of TOF module with its support etc..
392 xtof = 2 * (rmin*TMath::Tan(10*kDegrad)-dwall/2-.5);
395 // Is it full coverage version (3) or not
396 if (IsVersion() != 3) {
397 ztof1 = ztof0-rmax*TMath::Tan(7.8*kDegrad); // minus Z size of PHOS
398 ztof2 = ztof0-rmax*TMath::Tan(54.34/2*kDegrad); // minus Z size of HMPID;
403 // Number of TOF-modules
407 //Some imitation of TRD
411 gMC->Gsvolu("FTRD", "TUBE", idtmed[510], par, 3);
412 gMC->Gspos("FTRD", 1, "ALIC", 0., 0., 0., 0, "ONLY");
424 gMC->Gsvolu("FBAR", "PGON", idtmed[500], par, 10);
425 gMC->Gspos("FBAR", 1, "ALIC", 0., 0., 0., 0, "ONLY");
432 gMC->Gsvolu("FTO1", "BOX ", idtmed[506], par, 3);
434 gMC->Gsvolu("FTO2", "BOX ", idtmed[506], par, 3);
436 gMC->Gsvolu("FTO3", "BOX ", idtmed[506], par, 3);
440 par[1]=(rmax-rmin)/2.;
442 gMC->Gsvolu("FFR1", "BOX ", idtmed[508], par, 3);
443 gMC->Gsatt("FFR1", "SEEN", -2);
445 gMC->Gsvolu("FFR2", "BOX ", idtmed[508], par, 3);
446 gMC->Gsatt("FFR2", "SEEN", -2);
448 gMC->Gsvolu("FFR2", "BOX ", idtmed[508], par, 3);
449 gMC->Gsatt("FFR2", "SEEN", -2);
452 // Subtraction the distanse to TOF module boundaries
453 xm = xtof -(.5 +.5)*2;
459 /////////////// TOF module internal definitions //////////////
460 TOFpc(xm, ym, zm0, zm1, zm2);
461 /////////////////////////////////////////////////////////////
463 // Position of modules
464 fil_step = 360./lmax;
466 zcor2 = ztof0 - ztof1 / 2.;
467 zcor3 = ztof0 - ztof2 / 2.;
469 for (i = 1; i <= lmax; ++i) {
471 xcor2 = (rmin+rmax)/2 * TMath::Sin(fil1 * kDegrad);
472 ycor2 = (rmin+rmax)/2 * TMath::Cos(fil1 * kDegrad);
474 AliMatrix(idrotm[i], 90., -fil1, 90., 90. -fil1, 0., 0.);
475 if (i>=7 && i<=11) { // free space for PHOS
476 // if (fil1 >= 180-50 && fil1 <= 180+50) {
477 gMC->Gspos("FTO2", i, "FBAR", xcor2, ycor2, zcor2, idrotm[i], "ONLY");
478 gMC->Gspos("FTO2", lmax1, "FBAR", xcor2, ycor2, -zcor2, idrotm[i], "ONLY");
479 } else if (i>=17 || i==1) { // free space for RICH
480 // } else if (fil1 <= 30 || fil1 >= 360. - 30) {
481 gMC->Gspos("FTO3", i, "FBAR", xcor2, ycor2, zcor3, idrotm[i], "ONLY");
482 gMC->Gspos("FTO3", lmax1, "FBAR", xcor2, ycor2, -zcor3, idrotm[i], "ONLY");
484 gMC->Gspos("FTO1", i, "FBAR", xcor2, ycor2, zcor1, idrotm[i], "ONLY");
485 gMC->Gspos("FTO1", lmax1, "FBAR", xcor2, ycor2, -zcor1, idrotm[i], "ONLY");
489 AliMatrix(idrotm[0], 90., 0., 0., 0., 90, -90.);
490 gMC->Gspos("FTO2", 1, "BTO2", 0, zcor2, 0, idrotm[0], "ONLY");
491 gMC->Gspos("FTO2", 2, "BTO2", 0, -zcor2, 0, idrotm[0], "ONLY");
493 gMC->Gspos("FTO3", 1, "BTO3", 0, zcor3, 0, idrotm[0], "ONLY");
494 gMC->Gspos("FTO3", 2, "BTO3", 0, -zcor3, 0, idrotm[0], "ONLY");
496 gMC->Gspos("FTO1", 1, "BTO1", 0, zcor1, 0, idrotm[0], "ONLY");
497 gMC->Gspos("FTO1", 2, "BTO1", 0, -zcor1, 0, idrotm[0], "ONLY");
500 //_____________________________________________________________________________
501 void AliTOF::DrawModule()
504 // Draw a shaded view of the common part of the TOF geometry
507 cout << " Drawing of AliTOF"<< endl;
508 // Set everything unseen
509 gMC->Gsatt("*", "seen", -1);
511 // Set ALIC mother transparent
512 gMC->Gsatt("ALIC","SEEN",0);
514 // Set the volumes visible
515 gMC->Gsatt("FBAR","SEEN",0);
516 gMC->Gsatt("FTO1","SEEN",1);
517 gMC->Gsatt("FTO2","SEEN",1);
518 gMC->Gsatt("FTO3","SEEN",1);
519 gMC->Gsatt("FBT1","SEEN",1);
520 gMC->Gsatt("FBT2","SEEN",1);
521 gMC->Gsatt("FBT3","SEEN",1);
522 gMC->Gsatt("FLT1","SEEN",1);
523 gMC->Gsatt("FLT2","SEEN",1);
524 gMC->Gsatt("FLT3","SEEN",1);
526 gMC->Gdopt("hide", "on");
527 gMC->Gdopt("shad", "on");
528 gMC->Gsatt("*", "fill", 7);
529 gMC->SetClipBox(".");
530 gMC->SetClipBox("*", 0, 1000, -1000, 1000, -1000, 1000);
532 gMC->Gdraw("alic", 40, 30, 0, 12, 9.5, .02, .02);
533 gMC->Gdhead(1111, "Time Of Flight");
534 gMC->Gdman(18, 4, "MAN");
535 gMC->Gdopt("hide","off");
538 //_____________________________________________________________________________
539 void AliTOF::CreateMaterials()
542 // Defines TOF materials for all versions
543 // Authors : Maxim Martemianov, Boris Zagreev (ITEP) 18/09/98
545 Int_t ISXFLD = gAlice->Field()->Integ();
546 Float_t SXMGMX = gAlice->Field()->Max();
549 Float_t aq[2] = { 28.0855,15.9994 };
550 Float_t zq[2] = { 14.,8. };
551 Float_t wq[2] = { 1.,2. };
555 Float_t afre[2] = { 12.011,18.9984032 };
556 Float_t zfre[2] = { 6.,9. };
557 Float_t wfre[2] = { 5.,12. };
558 Float_t densfre = 1.5;
561 Float_t ac[2] = { 12.,16. };
562 Float_t zc[2] = { 6.,8. };
563 Float_t wc[2] = { 1.,2. };
564 Float_t dc = .001977;
566 // For mylar (C5H4O2)
567 Float_t amy[3] = { 12., 1., 16. };
568 Float_t zmy[3] = { 6., 1., 8. };
569 Float_t wmy[3] = { 5., 4., 2. };
572 // For polyethilene (CH2) for honeycomb!!!!
573 Float_t ape[2] = { 12., 1. };
574 Float_t zpe[2] = { 6., 1. };
575 Float_t wpe[2] = { 1., 2. };
576 Float_t dpe = 0.935*0.479; //To have 1%X0 for 1cm as for honeycomb
579 Float_t ag10[4] = { 12.,1.,16.,28. };
580 Float_t zg10[4] = { 6.,1.,8.,14. };
581 Float_t wmatg10[4] = { .259,.288,.248,.205 };
582 Float_t densg10 = 1.7;
585 Float_t adme[5] = { 12.,1.,16.,19.,79. };
586 Float_t zdme[5] = { 6.,1.,8.,9.,35. };
587 Float_t wmatdme[5] = { .4056,.0961,.2562,.1014,.1407 };
588 Float_t densdme = .00205;
590 // ---- ALUMINA (AL203)
591 Float_t aal[2] = { 27.,16. };
592 Float_t zal[2] = { 13.,8. };
593 Float_t wmatal[2] = { 2.,3. };
594 Float_t densal = 2.3;
597 Float_t awa[2] = { 1., 16. };
598 Float_t zwa[2] = { 1., 8. };
599 Float_t wwa[2] = { 2., 1. };
604 //AliMaterial(0, "Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
605 AliMaterial(1, "Air$",14.61,7.3,0.001205,30423.24,67500.);
606 AliMaterial(2, "Cu $", 63.54, 29.0, 8.96, 1.43, 14.8);
607 AliMaterial(3, "C $", 12.01, 6.0, 2.265,18.8, 74.4);
608 AliMixture(4, "Polyethilene$", ape, zpe, dpe, npe, wpe);
609 AliMixture(5, "G10$", ag10, zg10, densg10, nlmatg10, wmatg10);
610 AliMixture(6, "DME ", adme, zdme, densdme, nlmatdme, wmatdme);
611 AliMixture(7, "CO2$", ac, zc, dc, nc, wc);
612 AliMixture(8, "ALUMINA$", aal, zal, densal, nlmatal, wmatal);
613 AliMaterial(9, "Al $", 26.98, 13., 2.7, 8.9, 37.2);
614 // (TRD simulation) thickness = 69.282cm/18.8cm = 3.685 X/X0
615 // AliMaterial(10, "C-TRD$", 12.01, 6., 2.265*18.8/69.282*10.2/100, 18.8, 74.4); // for 10.2%
616 AliMaterial(10, "C-TRD$", 12.01, 6., 2.265*18.8/69.282*15./100, 18.8, 74.4); // for 15%
617 // AliMaterial(10, "C-TRD$", 12.01, 6., 2.265*18.8/69.282*20./100, 18.8, 74.4); // for 20%
618 AliMixture(11, "Mylar$", amy, zmy, dmy, nmy, wmy);
619 AliMixture(12, "Freon$", afre, zfre, densfre, nfre, wfre);
620 AliMixture(13, "Quartz$", aq, zq, dq, nq, wq);
621 AliMixture(14, "Water$", awa, zwa, dwa, nwa, wwa);
623 Float_t epsil, stmin, deemax, stemax;
625 // EPSIL = 0.1 ! Tracking precision,
626 // STEMAX = 0.1 ! Maximum displacement for multiple scattering
627 // DEEMAX = 0.1 ! Maximum fractional energy loss, DLS
634 // AliMedium(0, "Vacuum $", 0, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
635 AliMedium(1, "Air$", 1, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
636 AliMedium(2, "Cu $", 2, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
637 AliMedium(3, "C $", 3, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
638 AliMedium(4, "Pol$", 4, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
639 AliMedium(5, "G10$", 5, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
640 AliMedium(6, "DME$", 6, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
641 AliMedium(7, "CO2$", 7, 0, ISXFLD, SXMGMX, 10., -.01, -.1, .01, -.01);
642 AliMedium(8, "ALUMINA$", 8, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
643 AliMedium(9, "Al Frame$", 9, 0, ISXFLD, SXMGMX, 10, stemax, deemax, epsil, stmin);
644 AliMedium(10, "DME-S$", 6, 1, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
645 AliMedium(11, "C-TRD$", 10, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
646 AliMedium(12, "Myl$", 11, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
647 AliMedium(13, "Fre$", 12, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
648 AliMedium(14, "Fre-S$", 12, 1, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
649 AliMedium(15, "Glass$", 13, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
650 AliMedium(16, "Water$", 14, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
653 //_____________________________________________________________________________
654 Int_t AliTOF::DistancetoPrimitive(Int_t , Int_t )
657 // Returns distance from mouse pointer to detector, default version
662 //_____________________________________________________________________________
666 // Initialise TOF detector after it has been built
671 for(i=0;i<35;i++) printf("*");
672 printf(" TOF_INIT ");
673 for(i=0;i<35;i++) printf("*");
675 cout << "TOF version " << IsVersion() <<" initialized" << endl;
677 // Set id of TOF sensitive volume
678 if (IsVersion() !=0) fIdSens=gMC->VolId("FPG0");
680 for(i=0;i<80;i++) printf("*");
687 //___________________________________________
688 AliTOFhit::AliTOFhit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits):
695 for (i=0;i<3;i++) fVolume[i] = vol[i];