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.10 1999/11/01 20:41:57 fca
19 Added protections against using the wrong version of FRAME
21 Revision 1.9 1999/10/15 15:35:19 fca
22 New version for frame1099 with and without holes
24 Revision 1.9 1999/09/29 09:24:33 fca
25 Introduction of the Copyright and cvs Log
28 ///////////////////////////////////////////////////////////////////////////////
30 // Time Of Flight FCA //
31 // This class contains the basic functions for the Time Of Flight //
32 // detector. Functions specific to one particular geometry are //
33 // contained in the derived classes //
35 // VERSIONE WITH 5 SYMMETRIC MODULES ALONG Z AXIS
36 // ==============================================
38 // VERSION WITH HOLES FOR PHOS AND TRD IN SPACEFRAME WITH HOLES
40 // Volume sensibile : FPAD
46 <img src="picts/AliTOFClass.gif">
52 ///////////////////////////////////////////////////////////////////////////////
64 //_____________________________________________________________________________
68 // Default constructor
73 //_____________________________________________________________________________
74 AliTOF::AliTOF(const char *name, const char *title)
75 : AliDetector(name,title)
78 // AliTOF standard constructor
80 fHits = new TClonesArray("AliTOFhit", 405);
89 //_____________________________________________________________________________
90 void AliTOF::AddHit(Int_t track, Int_t sector, Int_t plate, Int_t pad_x,Int_t pad_z, Float_t *hits)
95 TClonesArray &lhits = *fHits;
96 new(lhits[fNhits++]) AliTOFhit(fIshunt,track,sector,plate,pad_x,pad_z,hits);
100 //_____________________________________________________________________________
101 void AliTOF::BuildGeometry()
104 // Build TOF ROOT geometry for the ALICE event viewver
107 const int kColorTOF = 27;
110 Top=gAlice->GetGeometry()->GetNode("alice");
112 // Define rotation matrixes
113 new TRotMatrix("rot501","rot501",90,-20,90,90-20,0,0);
114 new TRotMatrix("rot502","rot502",90,-40,90,90-40,0,0);
115 new TRotMatrix("rot503","rot503",90,-60,90,90-60,0,0);
116 new TRotMatrix("rot504","rot504",90,-80,90,90-80,0,0);
117 new TRotMatrix("rot505","rot505",90,-100,90,90-100,0,0);
118 new TRotMatrix("rot506","rot506",90,-120,90,90-120,0,0);
119 new TRotMatrix("rot507","rot507",90,-140,90,90-140,0,0);
120 new TRotMatrix("rot508","rot508",90,-160,90,90-160,0,0);
121 new TRotMatrix("rot509","rot509",90,-180,90,90-180,0,0);
122 new TRotMatrix("rot510","rot510",90,-200,90,90-200,0,0);
123 new TRotMatrix("rot511","rot511",90,-220,90,90-220,0,0);
124 new TRotMatrix("rot512","rot512",90,-240,90,90-240,0,0);
125 new TRotMatrix("rot513","rot513",90,-260,90,90-260,0,0);
126 new TRotMatrix("rot514","rot514",90,-280,90,90-280,0,0);
127 new TRotMatrix("rot515","rot515",90,-300,90,90-300,0,0);
128 new TRotMatrix("rot516","rot516",90,-320,90,90-320,0,0);
129 new TRotMatrix("rot517","rot517",90,-340,90,90-340,0,0);
130 new TRotMatrix("rot518","rot518",90,-360,90,90-360,0,0);
132 // Position the different copies
133 const Float_t rtof=(399+370)/2;
135 const Float_t kPi = TMath::Pi();
136 const Float_t angle=2*kPi/ntof;
139 // Define TOF basic volume
141 Float_t zlen1 = 152.5;
142 Float_t zlen2 = 147.0;
143 Float_t zlen3 = 117.0;
145 new TBRIK("S_TOF1","TOF box","void",130/2,29/2,zlen1/2);
151 Node = new TNode("FTO001","FTO001","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot501");
152 Node->SetLineColor(kColorTOF);
156 Node = new TNode("FTO101","FTO101","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot501");
157 Node->SetLineColor(kColorTOF);
162 Node = new TNode("FTO002","FTO002","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot502");
163 Node->SetLineColor(kColorTOF);
167 Node = new TNode("FTO102","FTO102","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot502");
168 Node->SetLineColor(kColorTOF);
173 Node = new TNode("FTO003","FTO003","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot503");
174 Node->SetLineColor(kColorTOF);
178 Node = new TNode("FTO103","FTO103","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot503");
179 Node->SetLineColor(kColorTOF);
184 Node = new TNode("FTO004","FTO004","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot504");
185 Node->SetLineColor(kColorTOF);
189 Node = new TNode("FTO104","FTO104","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot504");
190 Node->SetLineColor(kColorTOF);
195 Node = new TNode("FTO005","FTO005","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot505");
196 Node->SetLineColor(kColorTOF);
200 Node = new TNode("FTO105","FTO105","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot505");
201 Node->SetLineColor(kColorTOF);
206 Node = new TNode("FTO006","FTO006","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot506");
207 Node->SetLineColor(kColorTOF);
211 Node = new TNode("FTO106","FTO106","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot506");
212 Node->SetLineColor(kColorTOF);
217 Node = new TNode("FTO007","FTO006","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot507");
218 Node->SetLineColor(kColorTOF);
222 Node = new TNode("FTO107","FTO106","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot507");
223 Node->SetLineColor(kColorTOF);
228 Node = new TNode("FTO008","FTO006","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot508");
229 Node->SetLineColor(kColorTOF);
233 Node = new TNode("FTO108","FTO106","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot508");
234 Node->SetLineColor(kColorTOF);
239 Node = new TNode("FTO009","FTO006","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot509");
240 Node->SetLineColor(kColorTOF);
244 Node = new TNode("FTO109","FTO106","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot509");
245 Node->SetLineColor(kColorTOF);
250 Node = new TNode("FTO010","FTO006","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot510");
251 Node->SetLineColor(kColorTOF);
255 Node = new TNode("FTO110","FTO106","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot510");
256 Node->SetLineColor(kColorTOF);
261 Node = new TNode("FTO011","FTO006","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot511");
262 Node->SetLineColor(kColorTOF);
266 Node = new TNode("FTO111","FTO106","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot511");
267 Node->SetLineColor(kColorTOF);
272 Node = new TNode("FTO012","FTO012","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot512");
273 Node->SetLineColor(kColorTOF);
277 Node = new TNode("FTO112","FTO112","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot512");
278 Node->SetLineColor(kColorTOF);
283 Node = new TNode("FTO013","FTO013","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot513");
284 Node->SetLineColor(kColorTOF);
288 Node = new TNode("FTO113","FTO113","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot513");
289 Node->SetLineColor(kColorTOF);
294 Node = new TNode("FTO014","FTO04","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot514");
295 Node->SetLineColor(kColorTOF);
299 Node = new TNode("FTO114","FTO114","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot514");
300 Node->SetLineColor(kColorTOF);
305 Node = new TNode("FTO015","FTO015","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot515");
306 Node->SetLineColor(kColorTOF);
310 Node = new TNode("FTO115","FTO115","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot515");
311 Node->SetLineColor(kColorTOF);
316 Node = new TNode("FTO016","FTO016","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot516");
317 Node->SetLineColor(kColorTOF);
321 Node = new TNode("FTO116","FTO116","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot516");
322 Node->SetLineColor(kColorTOF);
327 Node = new TNode("FTO017","FTO017","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot517");
328 Node->SetLineColor(kColorTOF);
332 Node = new TNode("FTO117","FTO117","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot517");
333 Node->SetLineColor(kColorTOF);
338 Node = new TNode("FTO018","FTO018","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),299.15,"rot518");
339 Node->SetLineColor(kColorTOF);
343 Node = new TNode("FTO118","FTO118","S_TOF1",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-299.15,"rot518");
344 Node->SetLineColor(kColorTOF);
348 // Define second TOF volume
349 new TBRIK("S_TOF2","TOF box","void",130/2,29/2,zlen2/2);
351 // Position the volume
355 Node = new TNode("FTO202","FTO202","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot502");
356 Node->SetLineColor(kColorTOF);
360 Node = new TNode("FTO402","FTO402","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot502");
361 Node->SetLineColor(kColorTOF);
366 Node = new TNode("FTO203","FTO203","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot503");
367 Node->SetLineColor(kColorTOF);
371 Node = new TNode("FTO403","FTO403","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot503");
372 Node->SetLineColor(kColorTOF);
377 Node = new TNode("FTO204","FTO204","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot504");
378 Node->SetLineColor(kColorTOF);
382 Node = new TNode("FTO404","FTO404","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot504");
383 Node->SetLineColor(kColorTOF);
388 Node = new TNode("FTO205","FTO205","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot505");
389 Node->SetLineColor(kColorTOF);
393 Node = new TNode("FTO405","FTO405","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot505");
394 Node->SetLineColor(kColorTOF);
399 Node = new TNode("FTO206","FTO206","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot506");
400 Node->SetLineColor(kColorTOF);
404 Node = new TNode("FTO406","FTO406","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot506");
405 Node->SetLineColor(kColorTOF);
410 Node = new TNode("FTO207","FTO207","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot507");
411 Node->SetLineColor(kColorTOF);
415 Node = new TNode("FTO407","FTO407","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot507");
416 Node->SetLineColor(kColorTOF);
422 Node = new TNode("FTO208","FTO208","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot508");
423 Node->SetLineColor(kColorTOF);
427 Node = new TNode("FTO408","FTO408","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot508");
428 Node->SetLineColor(kColorTOF);
433 Node = new TNode("FTO209","FTO209","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot509");
434 Node->SetLineColor(kColorTOF);
438 Node = new TNode("FTO409","FTO409","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot509");
439 Node->SetLineColor(kColorTOF);
444 Node = new TNode("FTO210","FTO210","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot510");
445 Node->SetLineColor(kColorTOF);
449 Node = new TNode("FTO410","FTO410","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot510");
450 Node->SetLineColor(kColorTOF);
455 Node = new TNode("FTO211","FTO211","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot511");
456 Node->SetLineColor(kColorTOF);
460 Node = new TNode("FTO411","FTO411","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot511");
461 Node->SetLineColor(kColorTOF);
466 Node = new TNode("FTO212","FTO212","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot512");
467 Node->SetLineColor(kColorTOF);
471 Node = new TNode("FTO412","FTO412","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot512");
472 Node->SetLineColor(kColorTOF);
478 Node = new TNode("FTO213","FTO213","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot513");
479 Node->SetLineColor(kColorTOF);
483 Node = new TNode("FTO413","FTO413","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot513");
484 Node->SetLineColor(kColorTOF);
489 Node = new TNode("FTO214","FTO214","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot514");
490 Node->SetLineColor(kColorTOF);
494 Node = new TNode("FTO414","FTO414","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot514");
495 Node->SetLineColor(kColorTOF);
500 Node = new TNode("FTO215","FTO215","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot515");
501 Node->SetLineColor(kColorTOF);
505 Node = new TNode("FTO415","FTO415","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot515");
506 Node->SetLineColor(kColorTOF);
511 Node = new TNode("FTO216","FTO216","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),146.45,"rot516");
512 Node->SetLineColor(kColorTOF);
516 Node = new TNode("FTO416","FTO416","S_TOF2",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),-146.45,"rot516");
517 Node->SetLineColor(kColorTOF);
520 // Define third TOF volume
521 new TBRIK("S_TOF3","TOF box","void",130/2.,29/2,zlen3/2.);
527 Node = new TNode("FTO302","FTO302","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot502");
528 Node->SetLineColor(kColorTOF);
533 Node = new TNode("FTO303","FTO303","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot503");
534 Node->SetLineColor(kColorTOF);
539 Node = new TNode("FTO304","FTO304","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot504");
540 Node->SetLineColor(kColorTOF);
545 Node = new TNode("FTO305","FTO305","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot505");
546 Node->SetLineColor(kColorTOF);
551 Node = new TNode("FTO306","FTO306","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot506");
552 Node->SetLineColor(kColorTOF);
558 Node = new TNode("FTO312","FTO312","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot512");
559 Node->SetLineColor(kColorTOF);
564 Node = new TNode("FTO313","FTO313","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot513");
565 Node->SetLineColor(kColorTOF);
570 Node = new TNode("FTO314","FTO314","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot514");
571 Node->SetLineColor(kColorTOF);
576 Node = new TNode("FTO315","FTO315","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot515");
577 Node->SetLineColor(kColorTOF);
582 Node = new TNode("FTO316","FTO316","S_TOF3",rtof*TMath::Cos(ang),rtof*TMath::Sin(ang),0.,"rot516");
583 Node->SetLineColor(kColorTOF);
588 //_____________________________________________________________________________
589 void AliTOF::CreateGeometry()
592 // Common geometry code
596 <img src="picts/AliTOFv23.gif">
601 const Double_t kPi=TMath::Pi();
602 const Double_t kDegrad=kPi/180;
606 Float_t rmin, rmax, dwall;
608 // barrel iner radius
610 // barrel outer radius
613 // frame inbetween TOF modules
615 // Sizes of TOF module with its support etc..
616 xtof = 2.*(rmin*TMath::Tan(10*kDegrad)-dwall/2-.5);
622 Float_t zlen1 = 159.5;//cm
623 Float_t zlen2 = 154.0;//cm
624 Float_t zlen3 = 124.0;//cm
626 // TOF module internal definitions
627 TOFpc(xtof, ytof, zlen1, zlen2, zlen3, ztof0);
630 //_____________________________________________________________________________
631 void AliTOF::DrawModule()
634 // Draw a shaded view of the common part of the TOF geometry
637 cout << " Drawing of AliTOF"<< endl;
638 // Set everything unseen
639 gMC->Gsatt("*", "seen", -1);
641 // Set ALIC mother transparent
642 gMC->Gsatt("ALIC","SEEN",0);
644 // Set the volumes visible
645 gMC->Gsatt("FBAR","SEEN",0);
646 gMC->Gsatt("FTO1","SEEN",1);
647 gMC->Gsatt("FTO2","SEEN",1);
648 gMC->Gsatt("FTO3","SEEN",1);
649 gMC->Gsatt("FBT1","SEEN",1);
650 gMC->Gsatt("FBT2","SEEN",1);
651 gMC->Gsatt("FBT3","SEEN",1);
652 gMC->Gsatt("FLT1","SEEN",1);
653 gMC->Gsatt("FLT2","SEEN",1);
654 gMC->Gsatt("FLT3","SEEN",1);
656 gMC->Gdopt("hide", "on");
657 gMC->Gdopt("shad", "on");
658 gMC->Gsatt("*", "fill", 7);
659 gMC->SetClipBox(".");
660 gMC->SetClipBox("*", 0, 1000, -1000, 1000, -1000, 1000);
662 gMC->Gdraw("alic", 40, 30, 0, 12, 9.5, .02, .02);
663 gMC->Gdhead(1111, "Time Of Flight");
664 gMC->Gdman(18, 4, "MAN");
665 gMC->Gdopt("hide","off");
668 //_____________________________________________________________________________
669 void AliTOF::CreateMaterials()
672 // Defines TOF materials for all versions
673 // Authors : Maxim Martemianov, Boris Zagreev (ITEP) 18/09/98
675 Int_t ISXFLD = gAlice->Field()->Integ();
676 Float_t SXMGMX = gAlice->Field()->Max();
679 Float_t aq[2] = { 28.0855,15.9994 };
680 Float_t zq[2] = { 14.,8. };
681 Float_t wq[2] = { 1.,2. };
685 Float_t afre[2] = { 12.011,18.9984032 };
686 Float_t zfre[2] = { 6.,9. };
687 Float_t wfre[2] = { 5.,12. };
688 Float_t densfre = 1.5;
691 Float_t ac[2] = { 12.,16. };
692 Float_t zc[2] = { 6.,8. };
693 Float_t wc[2] = { 1.,2. };
694 Float_t dc = .001977;
696 // For mylar (C5H4O2)
697 Float_t amy[3] = { 12., 1., 16. };
698 Float_t zmy[3] = { 6., 1., 8. };
699 Float_t wmy[3] = { 5., 4., 2. };
702 // For polyethilene (CH2) for honeycomb!!!!
703 Float_t ape[2] = { 12., 1. };
704 Float_t zpe[2] = { 6., 1. };
705 Float_t wpe[2] = { 1., 2. };
706 Float_t dpe = 0.935*0.479; //To have 1%X0 for 1cm as for honeycomb
709 Float_t ag10[4] = { 12.,1.,16.,28. };
710 Float_t zg10[4] = { 6.,1.,8.,14. };
711 Float_t wmatg10[4] = { .259,.288,.248,.205 };
712 Float_t densg10 = 1.7;
715 Float_t adme[5] = { 12.,1.,16.,19.,79. };
716 Float_t zdme[5] = { 6.,1.,8.,9.,35. };
717 Float_t wmatdme[5] = { .4056,.0961,.2562,.1014,.1407 };
718 Float_t densdme = .00205;
720 // ---- ALUMINA (AL203)
721 Float_t aal[2] = { 27.,16. };
722 Float_t zal[2] = { 13.,8. };
723 Float_t wmatal[2] = { 2.,3. };
724 Float_t densal = 2.3;
727 Float_t awa[2] = { 1., 16. };
728 Float_t zwa[2] = { 1., 8. };
729 Float_t wwa[2] = { 2., 1. };
733 //AliMaterial(0, "Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
734 AliMaterial(1, "Air$",14.61,7.3,0.001205,30423.24,67500.);
735 AliMaterial(2, "Cu $", 63.54, 29.0, 8.96, 1.43, 14.8);
736 AliMaterial(3, "C $", 12.01, 6.0, 2.265,18.8, 74.4);
737 AliMixture(4, "Polyethilene$", ape, zpe, dpe, npe, wpe);
738 AliMixture(5, "G10$", ag10, zg10, densg10, nlmatg10, wmatg10);
739 AliMixture(6, "DME ", adme, zdme, densdme, nlmatdme, wmatdme);
740 AliMixture(7, "CO2$", ac, zc, dc, nc, wc);
741 AliMixture(8, "ALUMINA$", aal, zal, densal, nlmatal, wmatal);
742 AliMaterial(9, "Al $", 26.98, 13., 2.7, 8.9, 37.2);
743 AliMaterial(10, "C-TRD$", 12.01, 6., 2.265*18.8/69.282*15./100, 18.8, 74.4); // for 15%
744 AliMixture(11, "Mylar$", amy, zmy, dmy, nmy, wmy);
745 AliMixture(12, "Freon$", afre, zfre, densfre, nfre, wfre);
746 AliMixture(13, "Quartz$", aq, zq, dq, nq, wq);
747 AliMixture(14, "Water$", awa, zwa, dwa, nwa, wwa);
749 Float_t epsil, stmin, deemax, stemax;
751 // EPSIL = 0.1 ! Tracking precision,
752 // STEMAX = 0.1 ! Maximum displacement for multiple scattering
753 // DEEMAX = 0.1 ! Maximum fractional energy loss, DLS
761 AliMedium(1, "Air$", 1, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
762 AliMedium(2, "Cu $", 2, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
763 AliMedium(3, "C $", 3, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
764 AliMedium(4, "Pol$", 4, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
765 AliMedium(5, "G10$", 5, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
766 AliMedium(6, "DME$", 6, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
767 AliMedium(7, "CO2$", 7, 0, ISXFLD, SXMGMX, 10., -.01, -.1, .01, -.01);
768 AliMedium(8, "ALUMINA$", 8, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
769 AliMedium(9, "Al Frame$", 9, 0, ISXFLD, SXMGMX, 10, stemax, deemax, epsil, stmin);
770 AliMedium(10, "DME-S$", 6, 1, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
771 AliMedium(11, "C-TRD$", 10, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
772 AliMedium(12, "Myl$", 11, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
773 AliMedium(13, "Fre$", 12, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
774 AliMedium(14, "Fre-S$", 12, 1, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
775 AliMedium(15, "Glass$", 13, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
776 AliMedium(16, "Water$", 14, 0, ISXFLD, SXMGMX, 10., stemax, deemax, epsil, stmin);
779 //_____________________________________________________________________________
780 Int_t AliTOF::DistancetoPrimitive(Int_t , Int_t )
783 // Returns distance from mouse pointer to detector, default version
788 //_____________________________________________________________________________
792 // Initialise TOF detector after it has been built
795 // Set id of TOF sensitive volume
796 if (IsVersion() !=0) fIdSens=gMC->VolId("FPAD");
803 //___________________________________________
804 AliTOFhit::AliTOFhit(Int_t shunt, Int_t track, Int_t sector, Int_t plate, Int_t pad_x, Int_t pad_z, Float_t *hits):