1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 Revision 1.9 1999/10/15 15:35:19 fca
19 New version for frame1099 with and without holes
21 Revision 1.9 1999/09/29 09:24:33 fca
22 Introduction of the Copyright and cvs Log
25 ///////////////////////////////////////////////////////////////////////////////
27 // Time Of Flight FCA //
28 // This class contains the basic functions for the Time Of Flight //
29 // detector. Functions specific to one particular geometry are //
30 // contained in the derived classes //
32 // VERSIONE WITH 5 SYMMETRIC MODULES ALONG Z AXIS
33 // ==============================================
35 // VERSION WITH HOLES FOR PHOS AND TRD IN SPACEFRAME WITH HOLES
37 // Volume sensibile : FPAD
43 <img src="picts/AliTOFClass.gif">
49 ///////////////////////////////////////////////////////////////////////////////
60 //_____________________________________________________________________________
64 // Default constructor
69 //_____________________________________________________________________________
70 AliTOF::AliTOF(const char *name, const char *title)
71 : AliDetector(name,title)
74 // AliTOF standard constructor
76 fHits = new TClonesArray("AliTOFhit", 405);
85 //_____________________________________________________________________________
86 void AliTOF::AddHit(Int_t track, Int_t *vol, Float_t *hits)
91 TClonesArray &lhits = *fHits;
92 new(lhits[fNhits++]) AliTOFhit(fIshunt,track,vol,hits);
95 //_____________________________________________________________________________
96 void AliTOF::BuildGeometry()
99 // Build TOF ROOT geometry for the ALICE event viewver
102 const int kColorTOF = 27;
105 Top=gAlice->GetGeometry()->GetNode("alice");
107 // Define rotation matrixes
108 new TRotMatrix("rot501","rot501",90,-20,90,90-20,0,0);
109 new TRotMatrix("rot502","rot502",90,-40,90,90-40,0,0);
110 new TRotMatrix("rot503","rot503",90,-60,90,90-60,0,0);
111 new TRotMatrix("rot504","rot504",90,-80,90,90-80,0,0);
112 new TRotMatrix("rot505","rot505",90,-100,90,90-100,0,0);
113 new TRotMatrix("rot506","rot506",90,-120,90,90-120,0,0);
114 new TRotMatrix("rot507","rot507",90,-140,90,90-140,0,0);
115 new TRotMatrix("rot508","rot508",90,-160,90,90-160,0,0);
116 new TRotMatrix("rot509","rot509",90,-180,90,90-180,0,0);
117 new TRotMatrix("rot510","rot510",90,-200,90,90-200,0,0);
118 new TRotMatrix("rot511","rot511",90,-220,90,90-220,0,0);
119 new TRotMatrix("rot512","rot512",90,-240,90,90-240,0,0);
120 new TRotMatrix("rot513","rot513",90,-260,90,90-260,0,0);
121 new TRotMatrix("rot514","rot514",90,-280,90,90-280,0,0);
122 new TRotMatrix("rot515","rot515",90,-300,90,90-300,0,0);
123 new TRotMatrix("rot516","rot516",90,-320,90,90-320,0,0);
124 new TRotMatrix("rot517","rot517",90,-340,90,90-340,0,0);
125 new TRotMatrix("rot518","rot518",90,-360,90,90-360,0,0);
127 // Position the different copies
128 const Float_t rtof=(399+370)/2;
130 const Float_t kPi = TMath::Pi();
131 const Float_t angle=2*kPi/ntof;
134 // Define TOF basic volume
136 Float_t zlen1 = 152.5;
137 Float_t zlen2 = 147.0;
138 Float_t zlen3 = 117.0;
140 new TBRIK("S_TOF1","TOF box","void",130/2,29/2,zlen1/2);
146 Node = new TNode("FTO001","FTO001","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot501");
147 Node->SetLineColor(kColorTOF);
151 Node = new TNode("FTO101","FTO101","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot501");
152 Node->SetLineColor(kColorTOF);
157 Node = new TNode("FTO002","FTO002","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot502");
158 Node->SetLineColor(kColorTOF);
162 Node = new TNode("FTO102","FTO102","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot502");
163 Node->SetLineColor(kColorTOF);
168 Node = new TNode("FTO003","FTO003","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot503");
169 Node->SetLineColor(kColorTOF);
173 Node = new TNode("FTO103","FTO103","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot503");
174 Node->SetLineColor(kColorTOF);
179 Node = new TNode("FTO004","FTO004","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot504");
180 Node->SetLineColor(kColorTOF);
184 Node = new TNode("FTO104","FTO104","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot504");
185 Node->SetLineColor(kColorTOF);
190 Node = new TNode("FTO005","FTO005","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot505");
191 Node->SetLineColor(kColorTOF);
195 Node = new TNode("FTO105","FTO105","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot505");
196 Node->SetLineColor(kColorTOF);
201 Node = new TNode("FTO006","FTO006","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot506");
202 Node->SetLineColor(kColorTOF);
206 Node = new TNode("FTO106","FTO106","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot506");
207 Node->SetLineColor(kColorTOF);
212 Node = new TNode("FTO007","FTO006","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot507");
213 Node->SetLineColor(kColorTOF);
217 Node = new TNode("FTO107","FTO106","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot507");
218 Node->SetLineColor(kColorTOF);
223 Node = new TNode("FTO008","FTO006","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot508");
224 Node->SetLineColor(kColorTOF);
228 Node = new TNode("FTO108","FTO106","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot508");
229 Node->SetLineColor(kColorTOF);
234 Node = new TNode("FTO009","FTO006","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot509");
235 Node->SetLineColor(kColorTOF);
239 Node = new TNode("FTO109","FTO106","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot509");
240 Node->SetLineColor(kColorTOF);
245 Node = new TNode("FTO010","FTO006","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot510");
246 Node->SetLineColor(kColorTOF);
250 Node = new TNode("FTO110","FTO106","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot510");
251 Node->SetLineColor(kColorTOF);
256 Node = new TNode("FTO011","FTO006","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot511");
257 Node->SetLineColor(kColorTOF);
261 Node = new TNode("FTO111","FTO106","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot511");
262 Node->SetLineColor(kColorTOF);
267 Node = new TNode("FTO012","FTO012","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot512");
268 Node->SetLineColor(kColorTOF);
272 Node = new TNode("FTO112","FTO112","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot512");
273 Node->SetLineColor(kColorTOF);
278 Node = new TNode("FTO013","FTO013","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot513");
279 Node->SetLineColor(kColorTOF);
283 Node = new TNode("FTO113","FTO113","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot513");
284 Node->SetLineColor(kColorTOF);
289 Node = new TNode("FTO014","FTO04","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot514");
290 Node->SetLineColor(kColorTOF);
294 Node = new TNode("FTO114","FTO114","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot514");
295 Node->SetLineColor(kColorTOF);
300 Node = new TNode("FTO015","FTO015","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot515");
301 Node->SetLineColor(kColorTOF);
305 Node = new TNode("FTO115","FTO115","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot515");
306 Node->SetLineColor(kColorTOF);
311 Node = new TNode("FTO016","FTO016","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot516");
312 Node->SetLineColor(kColorTOF);
316 Node = new TNode("FTO116","FTO116","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot516");
317 Node->SetLineColor(kColorTOF);
322 Node = new TNode("FTO017","FTO017","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot517");
323 Node->SetLineColor(kColorTOF);
327 Node = new TNode("FTO117","FTO117","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot517");
328 Node->SetLineColor(kColorTOF);
333 Node = new TNode("FTO018","FTO018","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot518");
334 Node->SetLineColor(kColorTOF);
338 Node = new TNode("FTO118","FTO118","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot518");
339 Node->SetLineColor(kColorTOF);
343 // Define second TOF volume
344 new TBRIK("S_TOF2","TOF box","void",130/2,29/2,zlen2/2);
346 // Position the volume
350 Node = new TNode("FTO202","FTO202","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot502");
351 Node->SetLineColor(kColorTOF);
355 Node = new TNode("FTO402","FTO402","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot502");
356 Node->SetLineColor(kColorTOF);
361 Node = new TNode("FTO203","FTO203","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot503");
362 Node->SetLineColor(kColorTOF);
366 Node = new TNode("FTO403","FTO403","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot503");
367 Node->SetLineColor(kColorTOF);
372 Node = new TNode("FTO204","FTO204","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot504");
373 Node->SetLineColor(kColorTOF);
377 Node = new TNode("FTO404","FTO404","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot504");
378 Node->SetLineColor(kColorTOF);
383 Node = new TNode("FTO205","FTO205","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot505");
384 Node->SetLineColor(kColorTOF);
388 Node = new TNode("FTO405","FTO405","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot505");
389 Node->SetLineColor(kColorTOF);
394 Node = new TNode("FTO206","FTO206","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot506");
395 Node->SetLineColor(kColorTOF);
399 Node = new TNode("FTO406","FTO406","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot506");
400 Node->SetLineColor(kColorTOF);
405 Node = new TNode("FTO207","FTO207","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot507");
406 Node->SetLineColor(kColorTOF);
410 Node = new TNode("FTO407","FTO407","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot507");
411 Node->SetLineColor(kColorTOF);
417 Node = new TNode("FTO208","FTO208","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot508");
418 Node->SetLineColor(kColorTOF);
422 Node = new TNode("FTO408","FTO408","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot508");
423 Node->SetLineColor(kColorTOF);
428 Node = new TNode("FTO209","FTO209","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot509");
429 Node->SetLineColor(kColorTOF);
433 Node = new TNode("FTO409","FTO409","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot509");
434 Node->SetLineColor(kColorTOF);
439 Node = new TNode("FTO210","FTO210","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot510");
440 Node->SetLineColor(kColorTOF);
444 Node = new TNode("FTO410","FTO410","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot510");
445 Node->SetLineColor(kColorTOF);
450 Node = new TNode("FTO211","FTO211","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot511");
451 Node->SetLineColor(kColorTOF);
455 Node = new TNode("FTO411","FTO411","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot511");
456 Node->SetLineColor(kColorTOF);
461 Node = new TNode("FTO212","FTO212","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot512");
462 Node->SetLineColor(kColorTOF);
466 Node = new TNode("FTO412","FTO412","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot512");
467 Node->SetLineColor(kColorTOF);
473 Node = new TNode("FTO213","FTO213","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot513");
474 Node->SetLineColor(kColorTOF);
478 Node = new TNode("FTO413","FTO413","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot513");
479 Node->SetLineColor(kColorTOF);
484 Node = new TNode("FTO214","FTO214","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot514");
485 Node->SetLineColor(kColorTOF);
489 Node = new TNode("FTO414","FTO414","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot514");
490 Node->SetLineColor(kColorTOF);
495 Node = new TNode("FTO215","FTO215","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot515");
496 Node->SetLineColor(kColorTOF);
500 Node = new TNode("FTO415","FTO415","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot515");
501 Node->SetLineColor(kColorTOF);
506 Node = new TNode("FTO216","FTO216","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot516");
507 Node->SetLineColor(kColorTOF);
511 Node = new TNode("FTO416","FTO416","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot516");
512 Node->SetLineColor(kColorTOF);
515 // Define third TOF volume
516 new TBRIK("S_TOF3","TOF box","void",130/2.,29/2,zlen3/2.);
522 Node = new TNode("FTO302","FTO302","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot502");
523 Node->SetLineColor(kColorTOF);
528 Node = new TNode("FTO303","FTO303","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot503");
529 Node->SetLineColor(kColorTOF);
534 Node = new TNode("FTO304","FTO304","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot504");
535 Node->SetLineColor(kColorTOF);
540 Node = new TNode("FTO305","FTO305","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot505");
541 Node->SetLineColor(kColorTOF);
546 Node = new TNode("FTO306","FTO306","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot506");
547 Node->SetLineColor(kColorTOF);
553 Node = new TNode("FTO312","FTO312","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot512");
554 Node->SetLineColor(kColorTOF);
559 Node = new TNode("FTO313","FTO313","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot513");
560 Node->SetLineColor(kColorTOF);
565 Node = new TNode("FTO314","FTO314","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot514");
566 Node->SetLineColor(kColorTOF);
571 Node = new TNode("FTO315","FTO315","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot515");
572 Node->SetLineColor(kColorTOF);
577 Node = new TNode("FTO316","FTO316","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot516");
578 Node->SetLineColor(kColorTOF);
583 //_____________________________________________________________________________
584 void AliTOF::CreateGeometry()
587 // Common geometry code
591 <img src="picts/AliTOFv23.gif">
596 const Double_t kPi=TMath::Pi();
597 const Double_t kDegrad=kPi/180;
601 Float_t rmin, rmax, dwall;
603 // barrel iner radius
605 // barrel outer radius
608 // frame inbetween TOF modules
610 // Sizes of TOF module with its support etc..
611 xtof = 2.*(rmin*TMath::Tan(10*kDegrad)-dwall/2-.5);
617 Float_t zlen1 = 159.5;//cm
618 Float_t zlen2 = 154.0;//cm
619 Float_t zlen3 = 124.0;//cm
621 // TOF module internal definitions
622 TOFpc(xtof, ytof, zlen1, zlen2, zlen3, ztof0);
625 //_____________________________________________________________________________
626 void AliTOF::DrawModule()
629 // Draw a shaded view of the common part of the TOF geometry
632 cout << " Drawing of AliTOF"<< endl;
633 // Set everything unseen
634 gMC->Gsatt("*", "seen", -1);
636 // Set ALIC mother transparent
637 gMC->Gsatt("ALIC","SEEN",0);
639 // Set the volumes visible
640 gMC->Gsatt("FBAR","SEEN",0);
641 gMC->Gsatt("FTO1","SEEN",1);
642 gMC->Gsatt("FTO2","SEEN",1);
643 gMC->Gsatt("FTO3","SEEN",1);
644 gMC->Gsatt("FBT1","SEEN",1);
645 gMC->Gsatt("FBT2","SEEN",1);
646 gMC->Gsatt("FBT3","SEEN",1);
647 gMC->Gsatt("FLT1","SEEN",1);
648 gMC->Gsatt("FLT2","SEEN",1);
649 gMC->Gsatt("FLT3","SEEN",1);
651 gMC->Gdopt("hide", "on");
652 gMC->Gdopt("shad", "on");
653 gMC->Gsatt("*", "fill", 7);
654 gMC->SetClipBox(".");
655 gMC->SetClipBox("*", 0, 1000, -1000, 1000, -1000, 1000);
657 gMC->Gdraw("alic", 40, 30, 0, 12, 9.5, .02, .02);
658 gMC->Gdhead(1111, "Time Of Flight");
659 gMC->Gdman(18, 4, "MAN");
660 gMC->Gdopt("hide","off");
663 //_____________________________________________________________________________
664 void AliTOF::CreateMaterials()
667 // Defines TOF materials for all versions
668 // Authors : Maxim Martemianov, Boris Zagreev (ITEP) 18/09/98
670 Int_t ISXFLD = gAlice->Field()->Integ();
671 Float_t SXMGMX = gAlice->Field()->Max();
674 Float_t aq[2] = { 28.0855,15.9994 };
675 Float_t zq[2] = { 14.,8. };
676 Float_t wq[2] = { 1.,2. };
680 Float_t afre[2] = { 12.011,18.9984032 };
681 Float_t zfre[2] = { 6.,9. };
682 Float_t wfre[2] = { 5.,12. };
683 Float_t densfre = 1.5;
686 Float_t ac[2] = { 12.,16. };
687 Float_t zc[2] = { 6.,8. };
688 Float_t wc[2] = { 1.,2. };
689 Float_t dc = .001977;
691 // For mylar (C5H4O2)
692 Float_t amy[3] = { 12., 1., 16. };
693 Float_t zmy[3] = { 6., 1., 8. };
694 Float_t wmy[3] = { 5., 4., 2. };
697 // For polyethilene (CH2) for honeycomb!!!!
698 Float_t ape[2] = { 12., 1. };
699 Float_t zpe[2] = { 6., 1. };
700 Float_t wpe[2] = { 1., 2. };
701 Float_t dpe = 0.935*0.479; //To have 1%X0 for 1cm as for honeycomb
704 Float_t ag10[4] = { 12.,1.,16.,28. };
705 Float_t zg10[4] = { 6.,1.,8.,14. };
706 Float_t wmatg10[4] = { .259,.288,.248,.205 };
707 Float_t densg10 = 1.7;
710 Float_t adme[5] = { 12.,1.,16.,19.,79. };
711 Float_t zdme[5] = { 6.,1.,8.,9.,35. };
712 Float_t wmatdme[5] = { .4056,.0961,.2562,.1014,.1407 };
713 Float_t densdme = .00205;
715 // ---- ALUMINA (AL203)
716 Float_t aal[2] = { 27.,16. };
717 Float_t zal[2] = { 13.,8. };
718 Float_t wmatal[2] = { 2.,3. };
719 Float_t densal = 2.3;
722 Float_t awa[2] = { 1., 16. };
723 Float_t zwa[2] = { 1., 8. };
724 Float_t wwa[2] = { 2., 1. };
728 //AliMaterial(0, "Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
729 AliMaterial(1, "Air$",14.61,7.3,0.001205,30423.24,67500.);
730 AliMaterial(2, "Cu $", 63.54, 29.0, 8.96, 1.43, 14.8);
731 AliMaterial(3, "C $", 12.01, 6.0, 2.265,18.8, 74.4);
732 AliMixture(4, "Polyethilene$", ape, zpe, dpe, npe, wpe);
733 AliMixture(5, "G10$", ag10, zg10, densg10, nlmatg10, wmatg10);
734 AliMixture(6, "DME ", adme, zdme, densdme, nlmatdme, wmatdme);
735 AliMixture(7, "CO2$", ac, zc, dc, nc, wc);
736 AliMixture(8, "ALUMINA$", aal, zal, densal, nlmatal, wmatal);
737 AliMaterial(9, "Al $", 26.98, 13., 2.7, 8.9, 37.2);
738 AliMaterial(10, "C-TRD$", 12.01, 6., 2.265*18.8/69.282*15./100, 18.8, 74.4); // for 15%
739 AliMixture(11, "Mylar$", amy, zmy, dmy, nmy, wmy);
740 AliMixture(12, "Freon$", afre, zfre, densfre, nfre, wfre);
741 AliMixture(13, "Quartz$", aq, zq, dq, nq, wq);
742 AliMixture(14, "Water$", awa, zwa, dwa, nwa, wwa);
744 Float_t epsil, stmin, deemax, stemax;
746 // EPSIL = 0.1 ! Tracking precision,
747 // STEMAX = 0.1 ! Maximum displacement for multiple scattering
748 // DEEMAX = 0.1 ! Maximum fractional energy loss, DLS
756 AliMedium(1, "Air$", 1, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
757 AliMedium(2, "Cu $", 2, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
758 AliMedium(3, "C $", 3, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
759 AliMedium(4, "Pol$", 4, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
760 AliMedium(5, "G10$", 5, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
761 AliMedium(6, "DME$", 6, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
762 AliMedium(7, "CO2$", 7, 0, ISXFLD, SXMGMX, 10., -.01, -.1, .01, -.01);
763 AliMedium(8, "ALUMINA$", 8, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
764 AliMedium(9, "Al Frame$", 9, 0, ISXFLD, SXMGMX, 10, stemax, deemax, epsil, stmin);
765 AliMedium(10, "DME-S$", 6, 1, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
766 AliMedium(11, "C-TRD$", 10, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
767 AliMedium(12, "Myl$", 11, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
768 AliMedium(13, "Fre$", 12, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
769 AliMedium(14, "Fre-S$", 12, 1, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
770 AliMedium(15, "Glass$", 13, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
771 AliMedium(16, "Water$", 14, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
774 //_____________________________________________________________________________
775 Int_t AliTOF::DistancetoPrimitive(Int_t , Int_t )
778 // Returns distance from mouse pointer to detector, default version
783 //_____________________________________________________________________________
787 // Initialise TOF detector after it has been built
790 // Set id of TOF sensitive volume
791 if (IsVersion() !=0) fIdSens=gMC->VolId("FPAD");
798 //___________________________________________
799 AliTOFhit::AliTOFhit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits):
806 for (i=0;i<3;i++) fVolume[i] = vol[i];