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 ///////////////////////////////////////////////////////////////////////////////
21 // This class contains the basic functions for the Time Of Flight //
22 // detector. Functions specific to one particular geometry are //
23 // contained in the derived classes //
25 // VERSIONE WITH 5 SYMMETRIC MODULES ALONG Z AXIS
26 // ==============================================
28 // VERSION WITH HOLES FOR PHOS AND TRD IN SPACEFRAME WITH HOLES
30 // Volume sensibile : FPAD
36 <img src="picts/AliTOFClass.gif">
42 ///////////////////////////////////////////////////////////////////////////////
45 #include <Riostream.h>
46 #include <Rstrstream.h>
58 #include <TVirtualMC.h>
61 #include "AliConfig.h"
62 #include "AliHeader.h"
64 #include "AliLoader.h"
68 #include "AliTOFGeometry.h"
69 #include "AliTOFSDigit.h"
70 #include "AliTOFdigit.h"
71 #include "AliTOFhit.h"
72 #include "AliTOFhitT0.h"
74 #include "AliTOFDigitizer.h"
75 #include "AliTOFDDLRawData.h"
76 #include "AliTOFcluster.h"
80 //_____________________________________________________________________________
84 // Default constructor
93 fReconParticles = 0x0;
99 //_____________________________________________________________________________
100 AliTOF::AliTOF(const char *name, const char *title, Option_t *option)
101 : AliDetector(name,title)
104 // AliTOF standard constructor
106 // Here are fixed some important parameters
109 // Initialization of hits, sdigits and digits array
110 // added option for time zero analysis
111 fFGeom = 0x0; //skowron
114 fReconParticles= 0x0;
117 if (strstr(option,"tzero")){
118 fHits = new TClonesArray("AliTOFhitT0", 1000);
120 AliWarning("tzero option requires AliTOFv4T0 as TOF version (check Your Config.C)");
122 fHits = new TClonesArray("AliTOFhit", 1000);
126 AliFatal("gAlice==0 !");
128 if (gAlice->GetMCApp()->GetHitLists())
129 gAlice->GetMCApp()->AddHitList(fHits);
130 else AliError("gAlice->GetHitLists()==0");
133 fSDigits = new TClonesArray("AliTOFSDigit", 1000);
134 fDigits = new TClonesArray("AliTOFdigit", 1000);
140 fReconParticles = 0x0;
143 // Digitization parameters
145 // (Transfer Functions to be inserted here)
152 //fGapA = 4.; //cm Gap beetween tilted strip in A-type plate
153 //fGapB = 6.; //cm Gap beetween tilted strip in B-type plate
155 // Physical performances
156 //fTimeRes = 100.;//ps
157 //fChrgRes = 100.;//pC
161 //_____________________________________________________________________________
162 void AliTOF::CreateTOFFolders()
164 // create the ALICE TFolder
165 // create the ALICE TTasks
166 // create the ALICE main TFolder
167 // to be done by AliRun
169 TFolder * alice = new TFolder();
170 alice->SetNameTitle("FPAlice", "Alice Folder") ;
171 gROOT->GetListOfBrowsables()->Add(alice) ;
173 TFolder * aliceF = alice->AddFolder("folders", "Alice memory Folder") ;
174 // make it the owner of the objects that it contains
177 TFolder * geomF = aliceF->AddFolder("Geometry", "Geometry objects") ;
178 TFolder * aliceT = alice->AddFolder("tasks", "Alice tasks Folder") ;
179 // make it the owner of the objects that it contains
182 TTask * aliceDi = new TTask("(S)Digitizer", "Alice SDigitizer & Digitizer") ;
183 aliceT->Add(aliceDi);
185 TTask * aliceRe = new TTask("Reconstructioner", "Alice Reconstructioner") ;
186 aliceT->Add(aliceRe);
188 char * tempo = new char[80] ;
190 // creates the TOF Digitizer and adds it to alice main (S)Digitizer task
191 sprintf(tempo, "%sDigitizers container",GetName() ) ;
192 fDTask = new TTask(GetName(), tempo);
193 aliceDi->Add(fDTask) ;
195 // creates the TOF reconstructioner and adds it to alice main Reconstructioner task
196 sprintf(tempo, "%sReconstructioner container",GetName() ) ;
197 fReTask = new TTask(GetName(), tempo);
198 aliceRe->Add(fReTask) ;
202 // creates the TOF geometry folder
203 geomF->AddFolder("TOF", "Geometry for TOF") ;
206 //_____________________________________________________________________________
210 // it remove also the alice folder
211 // and task that TOF creates instead of AliRun
212 /* PH Temporarily commented because of problems
213 TFolder * alice = (TFolder*)gROOT->GetListOfBrowsables()->FindObject("FPAlice") ;
238 fReconParticles->Delete ();
239 delete fReconParticles;
245 //_____________________________________________________________________________
246 void AliTOF::AddHit(Int_t track, Int_t *vol, Float_t *hits)
250 // new with placement used
252 TClonesArray &lhits = *fHits;
253 new(lhits[fNhits++]) AliTOFhit(fIshunt, track, vol, hits);
256 //_____________________________________________________________________________
257 void AliTOF::AddT0Hit(Int_t track, Int_t *vol, Float_t *hits)
261 // new with placement used
263 TClonesArray &lhits = *fHits;
264 new(lhits[fNhits++]) AliTOFhitT0(fIshunt, track, vol, hits);
267 //_____________________________________________________________________________
268 void AliTOF::AddDigit(Int_t *tracks, Int_t *vol, Float_t *digits)
272 // new with placement used
274 TClonesArray &ldigits = *fDigits;
275 new (ldigits[fNdigits++]) AliTOFdigit(tracks, vol, digits);
278 //___________________________________________
279 void AliTOF::AddSDigit(Int_t tracknum, Int_t *vol, Float_t *digits)
286 TClonesArray &lSDigits = *fSDigits;
287 new(lSDigits[fNSDigits++]) AliTOFSDigit(tracknum, vol, digits);
290 //_____________________________________________________________________________
291 void AliTOF::SetTreeAddress ()
293 // Set branch address for the Hits and Digits Tree.
295 if (fLoader->TreeH())
299 if (fTZero) fHits = new TClonesArray("AliTOFhitT0", 1000);
300 else fHits = new TClonesArray("AliTOFhit", 1000);
303 AliDetector::SetTreeAddress ();
307 if (fLoader->TreeS () )
309 branch = fLoader->TreeS ()->GetBranch ("TOF");
311 if (fSDigits == 0x0) fSDigits = new TClonesArray("AliTOFSDigit", 1000);
312 branch->SetAddress (&fSDigits);
316 if (fLoader->TreeR() )
318 branch = fLoader->TreeR()->GetBranch("TOF");
321 if (fReconParticles == 0x0) fReconParticles = new TClonesArray("AliTOFcluster", 1000);
322 branch->SetAddress(&fReconParticles);
327 if (fLoader->TreeR() && fReconParticles) //I do not know where this array is created - skowron
329 branch = fLoader->TreeR()->GetBranch("TOF");
332 branch->SetAddress(&fReconParticles) ;
338 //_____________________________________________________________________________
339 void AliTOF::CreateGeometry()
342 // Common geometry code
346 <img src="picts/AliTOFv23.gif">
350 const Double_t kPi=TMath::Pi();
351 const Double_t kDegrad=kPi/180.;
353 Float_t xTof, yTof, wall;
355 // frame inbetween TOF modules
358 // Sizes of TOF module with its support etc..
359 xTof = 2.*(AliTOFGeometry::Rmin()*TMath::Tan(10*kDegrad)-wall/2-.5);
360 yTof = AliTOFGeometry::Rmax()-AliTOFGeometry::Rmin();
362 // TOF module internal definitions
363 //TOFpc(xTof, yTof, fZlenC, fZlenB, fZlenA, AliTOFGeometry::MaxhZtof());
364 TOFpc(xTof, yTof, AliTOFGeometry::ZlenC(), AliTOFGeometry::ZlenB(), AliTOFGeometry::ZlenA(), AliTOFGeometry::MaxhZtof());
367 //_____________________________________________________________________________
368 void AliTOF::DrawModule() const
371 // Draw a shaded view of the common part of the TOF geometry
374 AliInfo(" Drawing of AliTOF");
375 // Set everything unseen
376 gMC->Gsatt("*", "seen", -1);
378 // Set ALIC mother transparent
379 gMC->Gsatt("ALIC","SEEN",0);
381 // Set the volumes visible
382 gMC->Gsatt("FTOA","SEEN",1);
383 gMC->Gsatt("FTOB","SEEN",1);
384 gMC->Gsatt("FTOC","SEEN",1);
385 gMC->Gsatt("FLTA","SEEN",1);
386 gMC->Gsatt("FLTB","SEEN",1);
387 gMC->Gsatt("FLTC","SEEN",1);
388 gMC->Gsatt("FSTR","SEEN",1);
390 gMC->Gdopt("hide", "on");
391 gMC->Gdopt("shad", "on");
392 gMC->Gsatt("*", "fill", 7);
393 gMC->SetClipBox(".");
394 gMC->SetClipBox("*", 0, 1000, -1000, 1000, -1000, 1000);
396 gMC->Gdraw("alic", 40, 30, 0, 12, 9.5, .02, .02);
397 gMC->Gdhead(1111, "Time Of Flight");
398 gMC->Gdman(18, 4, "MAN");
399 gMC->Gdopt("hide","off");
402 //_____________________________________________________________________________
403 void AliTOF::CreateMaterials()
406 // Defines TOF materials for all versions
407 // Revision: F. Pierella 18-VI-2002
410 Int_t isxfld = gAlice->Field()->Integ();
411 Float_t sxmgmx = gAlice->Field()->Max();
413 //--- Quartz (SiO2) to simulate float glass
414 // density tuned to have correct float glass
416 Float_t aq[2] = { 28.0855,15.9994 };
417 Float_t zq[2] = { 14.,8. };
418 Float_t wq[2] = { 1.,2. };
419 Float_t dq = 2.55; // std value: 2.2
422 // --- Freon C2F4H2 (TOF-TDR pagg.)
423 // Geant Manual CONS110-1, pag. 43 (Geant, Detector Description and Simulation Tool)
424 Float_t afre[3] = {12.011,18.998,1.007};
425 Float_t zfre[3] = { 6., 9., 1.};
426 Float_t wfre[3] = { 2., 4., 2.};
427 Float_t densfre = 0.00375;
428 // http://www.fi.infn.it/sezione/prevprot/gas/freon.html
431 //-- Isobutane quencher C4H10 (5% in the sensitive mixture)
432 Float_t aiso[2] = {12.011,1.007};
433 Float_t ziso[2] = { 6., 1.};
434 Float_t wiso[2] = { 4., 10.};
435 Float_t densiso = .......; // (g/cm3) density
436 Int_t nfre = -2; // < 0 i.e. proportion by number of atoms of each kind
437 //-- SF6 (5% in the sensitive mixture)
438 Float_t asf[3] = {32.066,18.998};
439 Float_t zsf[3] = { 16., 9.};
440 Float_t wsf[3] = { 1., 6.};
441 Float_t denssf = .....; // (g/cm3) density
442 Int_t nfre = -2; // < 0 i.e. proportion by number of atoms of each kind
445 Float_t ac[2] = {12.,16.};
446 Float_t zc[2] = { 6., 8.};
447 Float_t wc[2] = { 1., 2.};
448 Float_t dc = .001977;
450 // For mylar (C5H4O2)
451 Float_t amy[3] = { 12., 1., 16. };
452 Float_t zmy[3] = { 6., 1., 8. };
453 Float_t wmy[3] = { 5., 4., 2. };
456 // For polyethilene (CH2) - honeycomb -
457 Float_t ape[2] = { 12., 1. };
458 Float_t zpe[2] = { 6., 1. };
459 Float_t wpe[2] = { 1., 2. };
460 Float_t dpe = 0.935*0.479; //To have 1%X0 for 1cm as for honeycomb
463 Float_t ag10[4] = { 12.,1.,16.,28. };
464 Float_t zg10[4] = { 6.,1., 8.,14. };
465 Float_t wmatg10[4] = { .259,.288,.248,.205 };
466 Float_t densg10 = 1.7;
469 // plexiglass CH2=C(CH3)CO2CH3
470 Float_t aplex[3] = { 12.,1.,16.};
471 Float_t zplex[3] = { 6.,1., 8.};
472 Float_t wmatplex[3] = {5.,8.,2.};
473 Float_t densplex =1.16;
476 // ---- ALUMINA (AL203)
477 Float_t aal[2] = { 27.,16.};
478 Float_t zal[2] = { 13., 8.};
479 Float_t wmatal[2] = { 2.,3. };
480 Float_t densal = 2.3;
483 Float_t awa[2] = { 1., 16. };
484 Float_t zwa[2] = { 1., 8. };
485 Float_t wwa[2] = { 2., 1. };
490 Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
491 Float_t zsteel[4] = { 26.,24.,28.,14. };
492 Float_t wsteel[4] = { .715,.18,.1,.005 };
494 //AliMaterial(0, "Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
497 Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
498 Float_t zAir[4]={6.,7.,8.,18.};
499 Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
500 Float_t dAir = 1.20479E-3;
502 AliMixture( 1, "Air$", aAir, zAir, dAir, 4, wAir);
504 AliMaterial( 2, "Cu $", 63.54, 29.0, 8.96, 1.43, 14.8);
505 AliMaterial( 3, "C $", 12.01, 6.0, 2.265,18.8, 74.4);
506 AliMixture ( 4, "Polyethilene$", ape, zpe, dpe, npe, wpe);
507 AliMixture ( 5, "G10$", ag10, zg10, densg10, nlmatg10, wmatg10);
508 AliMixture ( 6, "PLE$", aplex, zplex, densplex, nplex, wmatplex);
509 AliMixture ( 7, "CO2$", ac, zc, dc, nc, wc);
510 AliMixture ( 8, "ALUMINA$", aal, zal, densal, nlmatal, wmatal);
511 AliMaterial( 9, "Al $", 26.98, 13., 2.7, 8.9, 37.2);
512 AliMaterial(10, "C-TRD$", 12.01, 6., 2.265*18.8/69.282*15./100, 18.8, 74.4); // for 15%
513 AliMixture (11, "Mylar$", amy, zmy, dmy, nmy, wmy);
514 AliMixture (12, "Freon$", afre, zfre, densfre, nfre, wfre);
515 AliMixture (13, "Glass$", aq, zq, dq, nq, wq);
516 AliMixture (14, "Water$", awa, zwa, dwa, nwa, wwa);
517 AliMixture (15, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
519 Float_t epsil, stmin, deemax, stemax;
522 // EPSIL = 0.1 ! Tracking precision,
523 // STEMAX = 0.1 ! Maximum displacement for multiple scattering
524 // DEEMAX = 0.1 ! Maximum fractional energy loss, DLS
528 epsil = .001; // Tracking precision,
529 stemax = -1.; // Maximum displacement for multiple scattering
530 deemax = -.3; // Maximum fractional energy loss, DLS
533 AliMedium( 1, "Air$" , 1, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
534 AliMedium( 2, "Cu $" , 2, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
535 AliMedium( 3, "C $" , 3, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
536 AliMedium( 4, "Pol$" , 4, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
537 AliMedium( 5, "G10$" , 5, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
538 AliMedium( 6, "PLE$" , 6, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
539 AliMedium( 7, "CO2$" , 7, 0, isxfld, sxmgmx, 10., -.01, -.1, .01, -.01);
540 AliMedium( 8,"ALUMINA$", 8, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
541 AliMedium( 9,"Al Frame$",9, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
542 AliMedium(10, "DME-S$", 6, 1, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
543 AliMedium(11, "C-TRD$", 10, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
544 AliMedium(12, "Myl$" , 11, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
545 AliMedium(13, "Fre$" , 12, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
546 AliMedium(14, "Fre-S$", 12, 1, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
547 AliMedium(15, "Glass$", 13, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
548 AliMedium(16, "Water$", 14, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
549 AliMedium(17, "STEEL$", 15, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
552 //_____________________________________________________________________________
553 Int_t AliTOF::DistancetoPrimitive(Int_t , Int_t )
556 // Returns distance from mouse pointer to detector, default version
561 //___________________________________________
562 void AliTOF::ResetHits ()
564 // Reset number of clusters and the cluster array for this detector
565 AliDetector::ResetHits ();
568 //____________________________________________
569 void AliTOF::ResetDigits ()
572 // Reset number of digits and the digits array for this detector
573 AliDetector::ResetDigits ();
576 //____________________________________________
577 void AliTOF::ResetSDigits ()
580 // Reset number of sdigits and the sdigits array for this detector
585 //_____________________________________________________________________________
589 // Initialise TOF detector after it has been built
591 // Set id of TOF sensitive volume
592 if (IsVersion() !=0) fIdSens=gMC->VolId("FPAD");
595 TDirectory* saveDir = gDirectory;
596 gAlice->GetRunLoader()->CdGAFile();
597 fTOFGeometry->Write("TOFGeometry");
601 //____________________________________________________________________________
602 void AliTOF::MakeBranch(Option_t* option)
605 // Initializes the Branches of the TOF inside the
606 // trees written for each event.
607 // AliDetector::MakeBranch initializes just the
608 // Branch inside TreeH. Here we add the branches in
609 // TreeD, TreeS and TreeR.
611 const char *oH = strstr(option,"H");
612 if (fLoader->TreeH() && oH)
616 if (fTZero) fHits = new TClonesArray("AliTOFhitT0", 1000);
617 else fHits = new TClonesArray("AliTOFhit", 1000);
621 AliDetector::MakeBranch(option);
623 Int_t buffersize = 4000;
624 Char_t branchname[10];
625 sprintf(branchname,"%s",GetName());
627 const char *oD = strstr(option,"D");
628 const char *oS = strstr(option,"S");
629 const char *oR = strstr(option,"R");
631 if (fLoader->TreeD() && oD){
632 if (fDigits == 0x0) fDigits = new TClonesArray("AliTOFdigit", 1000);
633 MakeBranchInTree(fLoader->TreeD(), branchname, &fDigits,buffersize, 0) ;
636 if (fLoader->TreeS() && oS){
637 if (fSDigits == 0x0) fSDigits = new TClonesArray("AliTOFSDigit", 1000);
638 MakeBranchInTree(fLoader->TreeS(), branchname, &fSDigits,buffersize, 0) ;
641 if (fLoader->TreeR() && oR){
642 if (fReconParticles == 0x0) fReconParticles = new TClonesArray("AliTOFcluster", 1000);
643 MakeBranchInTree(fLoader->TreeR(), branchname, &fReconParticles,buffersize, 0) ;
647 if (fReconParticles && fLoader->TreeR() && oR){
648 MakeBranchInTree(fLoader->TreeR(), branchname, &fReconParticles,buffersize, 0) ;
653 //____________________________________________________________________________
654 void AliTOF::Makehits(Bool_t hits)
656 // default argument used, see AliTOF.h
657 // Enable/Disable the writing of the TOF-hits branch
659 // by default : enabled for TOFv1, v2, v3, v4
660 // disabled for TOFv0
662 if (hits && (IsVersion()!=0))
663 fIdSens = gMC->VolId("FPAD");
665 AliInfo("Option for writing the TOF-hits branch on TreeH: disabled");
668 //____________________________________________________________________________
669 void AliTOF::FinishEvent()
674 //---------------------------------------------------------------------
675 void AliTOF::Hits2SDigits()
678 // Use the TOF SDigitizer to make TOF SDigits
681 // cout<<"AliTOF::Hits2SDigits> start...\n";
683 AliRunLoader * rl = fLoader->GetRunLoader();
684 AliTOFSDigitizer sd((rl->GetFileName()).Data());
685 ToAliDebug(1, sd.Print(""));
691 //---------------------------------------------------------------------
692 void AliTOF::Hits2SDigits(Int_t evNumber1, Int_t evNumber2)
695 // Use the TOF SDigitizer to make TOF SDigits
698 if ((evNumber2-evNumber1)==1)
699 AliDebug(1, Form("I am making sdigits for the %dth event", evNumber1))
700 else if ((evNumber2-evNumber1)>1)
701 AliDebug(1, Form("I am making sdigits for the events from the "
702 "%dth to the %dth", evNumber1, evNumber2-1));
704 AliRunLoader * rl = fLoader->GetRunLoader();
705 AliTOFSDigitizer sd((rl->GetFileName()).Data(),evNumber1,evNumber2) ;
706 ToAliDebug(1, sd.Print(""));
712 //___________________________________________________________________________
713 AliDigitizer* AliTOF::CreateDigitizer(AliRunDigitizer* manager) const
715 return new AliTOFDigitizer(manager);
718 //___________________________________________________________________________
719 Bool_t AliTOF::CheckOverlap(Int_t* vol, Float_t* digit,Int_t Track)
722 // Checks if 2 or more hits belong to the same pad.
723 // In this case the data assigned to the digit object
724 // are the ones of the first hit in order of Time.
725 // 2 hits from the same track on the same pad are collected.
726 // Called only by Hits2SDigits.
727 // This procedure has to be optimized in the next TOF release.
730 Bool_t overlap = kFALSE;
733 for (Int_t ndig=0; ndig<fSDigits->GetEntries(); ndig++){
734 AliTOFdigit* currentDigit = (AliTOFdigit*)(fSDigits->UncheckedAt(ndig));
735 currentDigit->GetLocation(vol2);
737 // check on digit volume
738 for (Int_t i=0;i<=4;i++){
740 if (vol[i]!=vol2[i]) idem=kFALSE;}
742 if (idem){ // same pad fired
743 Float_t tdc2 = digit[0];
744 Float_t tdc1 = currentDigit->GetTdc();
746 // we separate two digits on the same pad if
747 // they are separated in time by at least 25 ns
748 // remember that tdc time is given in ps
750 if (TMath::Abs(tdc1-tdc2)<25000){
751 // in case of overlap we take the earliest
753 currentDigit->SetTdc(tdc2);
754 currentDigit->SetAdc(digit[1]);
757 currentDigit->SetTdc(tdc1);
758 currentDigit->SetAdc(digit[1]);
760 currentDigit->AddTrack(Track); // add track number in the track array
766 } // close if (idem) -> two digits on the same TOF pad
768 } // end loop on existing sdigits
774 //____________________________________________________________________________
775 void AliTOF::Digits2Raw()
778 // Starting from the TOF digits, writes the Raw Data objects
781 fLoader->LoadDigits();
783 TTree* digits = fLoader->TreeD();
785 AliError("no digits tree");
789 AliTOFDDLRawData rawWriter;
790 rawWriter.SetVerbose(0);
792 AliInfo("Formatting raw data for TOF");
794 rawWriter.RawDataTOF(digits->GetBranch("TOF"));
796 fLoader->UnloadDigits();
799 ////////////////////////////////////////////////////////////////////////
800 void AliTOF::RecreateSDigitsArray() {
802 // delete TClonesArray fSDigits and create it again
803 // needed for backward compatability with PPR test production
806 fSDigits = new TClonesArray("AliTOFSDigit", 1000);
808 ////////////////////////////////////////////////////////////////////////
809 void AliTOF::CreateSDigitsArray() {
811 // create TClonesArray fSDigits
812 // needed for backward compatability with PPR test production
814 fSDigits = new TClonesArray("AliTOFSDigit", 1000);