]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOF.cxx
Several changes:
[u/mrichter/AliRoot.git] / TOF / AliTOF.cxx
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 /* $Id$ */
16
17 ///////////////////////////////////////////////////////////////////////////////
18 //                                                                           //
19 //  Time Of Flight                                                           //
20 //  This class contains the basic functions for the Time Of Flight           //
21 //  detector. Functions specific to one particular geometry are              //
22 //  contained in the derived classes                                         //
23 //                                                                           //
24 //  VERSIONE WITH 5 SYMMETRIC MODULES ALONG Z AXIS                           //
25 //  ============================================================             //
26 //                                                                           //
27 //  VERSION WITH HOLES FOR PHOS AND TRD IN SPACEFRAME WITH HOLES             //
28 //                                                                           //
29 //  Volume sensibile : FPAD                                                  //
30 //                                                                           //
31 //                                                                           //
32 //                                                                           //
33 //                                                                           //
34 ///////////////////////////////////////////////////////////////////////////////
35 // Begin_Html
36 /*
37 <img src="picts/AliTOFClass.gif">
38 */
39 //End_Html
40
41 #include <TClonesArray.h>
42 #include <TFile.h>
43 #include <TFolder.h>
44 #include <TROOT.h>
45 #include <TTask.h>
46 #include <TTree.h>
47 #include <TVirtualMC.h>
48 #include <TStopwatch.h>
49
50 #include "AliConst.h"
51 #include "AliLoader.h"
52 #include "AliLog.h"
53 #include "AliMC.h"
54 #include "AliRun.h"
55
56 #include "AliTOFDDLRawData.h"
57 #include "AliTOFDigitizer.h"
58 #include "AliTOFdigit.h"
59 #include "AliTOFhitT0.h"
60 #include "AliTOFhit.h"
61 #include "AliTOFGeometry.h"
62 #include "AliTOFSDigitizer.h"
63 #include "AliTOFSDigit.h"
64 #include "AliTOF.h"
65
66 class AliTOFcluster;
67
68 extern TFile *gFile;
69 extern TROOT *gROOT;
70 extern TVirtualMC *gMC;
71
72 extern AliRun *gAlice;
73
74  
75 ClassImp(AliTOF)
76  
77 //_____________________________________________________________________________
78 AliTOF::AliTOF():
79   fFGeom(0x0),
80   fDTask(0x0),
81   fReTask(0x0),
82   fSDigits(0x0),
83   fNSDigits(0),
84   fReconParticles(0x0),
85   fIdSens(-1),
86   fTZero(kFALSE),
87   fTOFHoles(kTRUE),
88   fTOFGeometry(0x0)
89 {
90   //
91   // Default constructor
92   //
93
94   //by default all sectors switched on
95   for (Int_t ii=0; ii<18; ii++) fTOFSectors[ii]=0;
96
97   fDigits = 0;
98   fIshunt   = 0;
99   fName = "TOF";
100 }
101  
102 //_____________________________________________________________________________
103 AliTOF::AliTOF(const char *name, const char *title, Option_t *option)
104        : 
105   AliDetector(name,title),
106   fFGeom(0x0),
107   fDTask(0x0),
108   fReTask(0x0),
109   fSDigits(0x0),
110   fNSDigits(0),
111   fReconParticles(0x0),
112   fIdSens(-1),
113   fTZero(kFALSE),
114   fTOFHoles(kTRUE),
115   fTOFGeometry(0x0)
116 {
117   //
118   // AliTOF standard constructor
119   // 
120   // Here are fixed some important parameters
121   //
122
123   // Initialization of hits, sdigits and digits array
124   // added option for time zero analysis
125   //skowron
126   fTOFGeometry = new AliTOFGeometry();
127
128   //by default all sectors switched on
129   for (Int_t ii=0; ii<18; ii++) fTOFSectors[ii]=0;
130
131   if (strstr(option,"tzero")){
132     fHits   = new TClonesArray("AliTOFhitT0",  1000);
133     fTZero = kTRUE;
134     //    AliWarning("tzero option requires AliTOFv4T0/AliTOFv5T0 as TOF version (check Your Config.C)");
135   }else{
136     fHits   = new TClonesArray("AliTOFhit",  1000);
137     fTZero = kFALSE;
138   }
139   if (gAlice==0) {
140      AliFatal("gAlice==0 !");
141   }
142
143   AliMC *mcApplication = (AliMC*)gAlice->GetMCApp();
144
145   if (mcApplication->GetHitLists())
146      mcApplication->AddHitList(fHits);
147   else AliError("gAlice->GetHitLists()==0");
148
149   fIshunt  = 0;
150   fSDigits = new TClonesArray("AliTOFSDigit", 1000);
151   fDigits  = new TClonesArray("AliTOFdigit",  1000);
152
153   //
154   // Digitization parameters
155   //
156   // (Transfer Functions to be inserted here)
157   //
158   //PH  SetMarkerColor(7);
159   //PH  SetMarkerStyle(2);
160   //PH  SetMarkerSize(0.4);
161
162 // Strip Parameters
163   //fGapA    =   4.; //cm  Gap beetween tilted strip in A-type plate
164   //fGapB    =   6.; //cm  Gap beetween tilted strip in B-type plate
165
166   // Physical performances
167   //fTimeRes = 100.;//ps
168   //fChrgRes = 100.;//pC
169
170 }
171
172 //____________________________________________________________________________
173 void AliTOF::SetTOFSectors(Int_t *sectors)
174 {
175   // Setter for partial/full TOF configuration
176
177   for(Int_t isec=0;isec<18;isec++){
178     fTOFSectors[isec]=sectors[isec];
179   }
180 }
181 //____________________________________________________________________________
182 void AliTOF::GetTOFSectors(Int_t *sectors) const
183 {
184   // Getter for partial/full TOF configuration
185
186   for(Int_t isec=0;isec<18;isec++){
187     sectors[isec]=fTOFSectors[isec];
188   }
189 }
190
191 //_____________________________________________________________________________
192 void AliTOF::CreateTOFFolders()
193 {
194   // create the ALICE TFolder
195   // create the ALICE TTasks
196   // create the ALICE main TFolder
197   // to be done by AliRun
198
199   TFolder * alice = new TFolder();
200   alice->SetNameTitle("FPAlice", "Alice Folder") ;
201   gROOT->GetListOfBrowsables()->Add(alice) ;
202
203   TFolder * aliceF  = alice->AddFolder("folders", "Alice memory Folder") ;
204   //  make it the owner of the objects that it contains
205   aliceF->SetOwner() ;
206   // geometry folder
207   TFolder * geomF = aliceF->AddFolder("Geometry", "Geometry objects") ;
208   TFolder * aliceT  = alice->AddFolder("tasks", "Alice tasks Folder") ;   
209   //  make it the owner of the objects that it contains
210   aliceT->SetOwner() ;
211
212   TTask * aliceDi = new TTask("(S)Digitizer", "Alice SDigitizer & Digitizer") ;
213   aliceT->Add(aliceDi);
214
215   TTask * aliceRe = new TTask("Reconstructioner", "Alice Reconstructioner") ;
216   aliceT->Add(aliceRe);
217
218   char * tempo = new char[80] ;
219
220   // creates the TOF Digitizer and adds it to alice main (S)Digitizer task
221   sprintf(tempo, "%sDigitizers container",GetName() ) ;
222   fDTask = new TTask(GetName(), tempo);
223   aliceDi->Add(fDTask) ;
224
225   // creates the TOF reconstructioner and adds it to alice main Reconstructioner task
226   sprintf(tempo, "%sReconstructioner container",GetName() ) ;
227   fReTask = new TTask(GetName(), tempo);
228   aliceRe->Add(fReTask) ;
229
230   delete [] tempo ;
231  
232   // creates the TOF geometry  folder
233   geomF->AddFolder("TOF", "Geometry for TOF") ;
234 }
235
236 //_____________________________________________________________________________
237 AliTOF::~AliTOF()
238 {
239   // dtor:
240   // it remove also the alice folder 
241   // and task that TOF creates instead of AliRun
242   /* PH Temporarily commented because of problems
243   TFolder * alice = (TFolder*)gROOT->GetListOfBrowsables()->FindObject("FPAlice") ;
244   delete alice;
245   alice = 0;
246   */
247   if (fHits)
248     {
249       fHits->Delete ();
250       delete fHits;
251       fHits = 0;
252     }
253   if (fDigits)
254     {
255       fDigits->Delete ();
256       delete fDigits;
257       fDigits = 0;
258     }
259   if (fSDigits)
260     {
261       fSDigits->Delete();
262       delete fSDigits;
263       fSDigits = 0;
264     }
265
266   if (fReconParticles)
267     {
268       fReconParticles->Delete ();
269       delete fReconParticles;
270       fReconParticles = 0;
271     }
272
273 }
274
275 //_____________________________________________________________________________
276 void AliTOF::AddHit(Int_t track, Int_t *vol, Float_t *hits)
277 {
278   //
279   // Add a TOF hit
280   // new with placement used
281   //
282   TClonesArray &lhits = *fHits;
283   new(lhits[fNhits++]) AliTOFhit(fIshunt, track, vol, hits);
284 }
285
286 //_____________________________________________________________________________
287 void AliTOF::AddT0Hit(Int_t track, Int_t *vol, Float_t *hits)
288 {
289   //
290   // Add a TOF hit
291   // new with placement used
292   //
293   TClonesArray &lhits = *fHits;
294   new(lhits[fNhits++]) AliTOFhitT0(fIshunt, track, vol, hits);
295 }
296
297 //_____________________________________________________________________________
298 void AliTOF::AddDigit(Int_t *tracks, Int_t *vol, Int_t *digits)
299 {
300   //
301   // Add a TOF digit
302   // new with placement used
303   //
304   TClonesArray &ldigits = *fDigits;
305   new (ldigits[fNdigits++]) AliTOFdigit(tracks, vol, digits);
306 }
307
308 //_____________________________________________________________________________
309 void AliTOF::AddSDigit(Int_t tracknum, Int_t *vol, Int_t *digits)
310 {
311      
312 //
313 // Add a TOF sdigit
314 //
315         
316   TClonesArray &lSDigits = *fSDigits;   
317   new(lSDigits[fNSDigits++]) AliTOFSDigit(tracknum, vol, digits);
318 }
319
320 //_____________________________________________________________________________
321 void AliTOF::SetTreeAddress ()
322 {
323   // Set branch address for the Hits and Digits Tree.
324   
325   if (fLoader->TreeH())
326    {
327      if (fHits == 0x0)
328       {
329         if (fTZero) fHits   = new TClonesArray("AliTOFhitT0", 1000);
330         else fHits   = new TClonesArray("AliTOFhit", 1000);
331       }
332    }
333   AliDetector::SetTreeAddress ();
334
335   TBranch *branch;
336
337   if (fLoader->TreeS () )
338     {
339       branch = fLoader->TreeS ()->GetBranch ("TOF");
340       if (branch) {
341         if (fSDigits == 0x0) fSDigits = new TClonesArray("AliTOFSDigit",  1000);
342         branch->SetAddress (&fSDigits);
343       }
344     }
345
346   if (fLoader->TreeR() ) 
347     {
348       branch = fLoader->TreeR()->GetBranch("TOF"); 
349       if (branch) 
350        {
351          if (fReconParticles == 0x0) fReconParticles = new TClonesArray("AliTOFcluster",  1000);
352          branch->SetAddress(&fReconParticles);
353        }
354     }
355
356   /*
357   if (fLoader->TreeR() && fReconParticles) //I do not know where this array is created - skowron
358     {
359       branch = fLoader->TreeR()->GetBranch("TOF"); 
360       if (branch) 
361        {
362          branch->SetAddress(&fReconParticles) ;
363        }
364     }
365   */
366 }
367
368 //_____________________________________________________________________________
369 void AliTOF::CreateGeometry()
370 {
371   //
372   // Common geometry code 
373   //
374   //Begin_Html
375   /*
376     <img src="picts/AliTOFv23.gif">
377   */
378   //End_Html
379   //
380
381   Float_t xTof, yTof;
382
383   if (IsVersion()==8) {
384
385     xTof = 124.5;//fTOFGeometry->StripLength()+2.*(0.3+0.03); // cm,  x-dimension of FTOA volume
386     yTof = fTOFGeometry->Rmax()-fTOFGeometry->Rmin(); // cm,  y-dimension of FTOA volume
387     Float_t zTof = fTOFGeometry->ZlenA();             // cm,  z-dimension of FTOA volume
388     
389     //  TOF module internal definitions
390     TOFpc(xTof, yTof, zTof);
391
392   } else if (IsVersion()==7) {
393
394     xTof = 124.5;//fTOFGeometry->StripLength()+2.*(0.3+0.03); // cm,  x-dimension of FTOA volume
395     yTof = fTOFGeometry->Rmax()-fTOFGeometry->Rmin(); // cm,  y-dimension of FTOA volume
396     Float_t zTof = fTOFGeometry->ZlenA();             // cm,  z-dimension of FTOA volume
397     
398     //  TOF module internal definitions
399     TOFpc(xTof, yTof, zTof, fTOFGeometry->ZlenB());
400
401   } else {
402
403     Float_t wall = 4.;//cm // frame inbetween TOF modules
404
405     // Sizes of TOF module with its support etc..
406     xTof = 2.*(fTOFGeometry->Rmin()*TMath::Tan(10.*kDegrad)-wall/2.-0.5);
407     yTof = fTOFGeometry->Rmax()-fTOFGeometry->Rmin();
408
409     //  TOF module internal definitions 
410     TOFpc(xTof, yTof, fTOFGeometry->ZlenC(), fTOFGeometry->ZlenB(), fTOFGeometry->ZlenA(), fTOFGeometry->MaxhZtof());
411   }
412
413 }
414
415 //_____________________________________________________________________________
416 void AliTOF::DrawModule() const
417 {
418   //
419   // Draw a shaded view of the common part of the TOF geometry
420   //
421
422   AliInfo(" Drawing of AliTOF"); 
423   // Set everything unseen
424   gMC->Gsatt("*", "seen", -1);
425   // 
426   // Set ALIC mother transparent
427   gMC->Gsatt("ALIC","SEEN",0);
428   //
429   // Set the volumes visible
430   gMC->Gsatt("FTOA","SEEN",1);
431   gMC->Gsatt("FTOB","SEEN",1);
432   gMC->Gsatt("FTOC","SEEN",1);
433   gMC->Gsatt("FLTA","SEEN",1);
434   gMC->Gsatt("FLTB","SEEN",1);
435   gMC->Gsatt("FLTC","SEEN",1);
436   gMC->Gsatt("FSTR","SEEN",1);
437   //
438   gMC->Gdopt("hide", "on");
439   gMC->Gdopt("shad", "on");
440   gMC->Gsatt("*", "fill", 7);
441   gMC->SetClipBox(".");
442   gMC->SetClipBox("*", 0, 1000, -1000, 1000, -1000, 1000);
443   gMC->DefaultRange();
444   gMC->Gdraw("alic", 40, 30, 0, 12, 9.5, .02, .02);
445   gMC->Gdhead(1111, "Time Of Flight");
446   gMC->Gdman(18, 4, "MAN");
447   gMC->Gdopt("hide","off");
448 }
449
450 //___________________________________________
451 void AliTOF::ResetHits ()
452 {
453   // Reset number of clusters and the cluster array for this detector
454   AliDetector::ResetHits ();
455 }
456
457 //____________________________________________
458 void AliTOF::ResetDigits ()
459 {
460   //
461   // Reset number of digits and the digits array for this detector
462   AliDetector::ResetDigits ();
463   //
464
465 //____________________________________________
466 void AliTOF::ResetSDigits ()
467 {
468   //
469   // Reset number of sdigits and the sdigits array for this detector
470   fNSDigits = 0;
471   //fSDigits = 0x0;
472   //
473
474 //_____________________________________________________________________________
475 void AliTOF::Init()
476 {
477   //
478   // Initialise TOF detector after it has been built
479   //
480   // Set id of TOF sensitive volume
481   if (IsVersion() !=0) fIdSens=gMC->VolId("FPAD");
482
483   /*
484   // Save the geometry
485   TDirectory* saveDir = gDirectory;
486   gAlice->GetRunLoader()->CdGAFile();
487   fTOFGeometry->Write("TOFGeometry");
488   saveDir->cd();
489   */
490 }
491
492 //____________________________________________________________________________
493 void AliTOF::MakeBranch(Option_t* option)
494 {
495  //
496  // Initializes the Branches of the TOF inside the 
497  // trees written for each event. 
498  // AliDetector::MakeBranch initializes just the 
499  // Branch inside TreeH. Here we add the branches in 
500  // TreeD, TreeS and TreeR.
501  //
502   const char *oH = strstr(option,"H");
503   if (fLoader->TreeH() && oH)
504    {
505      if (fHits == 0x0)
506       {
507         if (fTZero) fHits   = new TClonesArray("AliTOFhitT0", 1000);
508         else fHits   = new TClonesArray("AliTOFhit", 1000);
509       }
510    }
511   
512   AliDetector::MakeBranch(option);
513
514   Int_t buffersize = 4000;
515   Char_t branchname[10];
516   sprintf(branchname,"%s",GetName());
517   
518   const char *oD = strstr(option,"D");
519   const char *oS = strstr(option,"S");
520   const char *oR = strstr(option,"R");
521
522   if (fLoader->TreeD() && oD){
523     if (fDigits == 0x0) fDigits = new TClonesArray("AliTOFdigit",  1000); 
524     MakeBranchInTree(fLoader->TreeD(), branchname, &fDigits,buffersize, 0) ;
525   }
526
527   if (fLoader->TreeS() && oS){
528     if (fSDigits == 0x0) fSDigits = new TClonesArray("AliTOFSDigit",  1000);
529     MakeBranchInTree(fLoader->TreeS(), branchname, &fSDigits,buffersize, 0) ;
530   }
531
532   if (fLoader->TreeR() && oR){
533     if (fReconParticles == 0x0) fReconParticles = new TClonesArray("AliTOFcluster",  1000);
534     MakeBranchInTree(fLoader->TreeR(), branchname, &fReconParticles,buffersize, 0) ;
535   }
536
537   /*
538   if (fReconParticles && fLoader->TreeR() && oR){
539     MakeBranchInTree(fLoader->TreeR(), branchname, &fReconParticles,buffersize, 0) ;
540   }
541   */
542 }
543
544 //____________________________________________________________________________
545 void AliTOF::Makehits(Bool_t hits) 
546 {
547 // default argument used, see AliTOF.h
548 // Enable/Disable the writing of the TOF-hits branch 
549 // on TreeH
550 // by default :  enabled for TOFv1, v2, v3, v4, v5
551 //              disabled for TOFv0
552 // 
553    if (hits &&  (IsVersion()!=0))
554       fIdSens = gMC->VolId("FPAD");
555    else
556       AliInfo("Option for writing the TOF-hits branch on TreeH: disabled");
557 }
558
559 //____________________________________________________________________________
560 void AliTOF::FinishEvent()
561 {
562 // do nothing
563 }
564
565 //____________________________________________________________________________
566 void AliTOF::Hits2SDigits()
567 {
568 //
569 // Use the TOF SDigitizer to make TOF SDigits
570 //
571
572 //  AliInfo("Start...");
573   
574   AliRunLoader * rl = fLoader->GetRunLoader();
575   AliTOFSDigitizer sd((rl->GetFileName()).Data());
576   ToAliDebug(1, sd.Print(""));
577
578   sd.Exec("") ;
579
580 }
581
582 //____________________________________________________________________________
583 void AliTOF::Hits2SDigits(Int_t evNumber1, Int_t evNumber2)
584 {
585 //
586 // Use the TOF SDigitizer to make TOF SDigits
587 //
588
589   if ((evNumber2-evNumber1)==1) 
590     AliDebug(1, Form("I am making sdigits for the %dth event", evNumber1));
591   if ((evNumber2-evNumber1)>1)
592     AliDebug(1, Form("I am making sdigits for the events from the %dth to the %dth", evNumber1, evNumber2-1));
593  
594   AliRunLoader * rl = fLoader->GetRunLoader();
595   AliTOFSDigitizer sd((rl->GetFileName()).Data(),evNumber1,evNumber2) ;
596   ToAliDebug(1, sd.Print(""));
597
598   sd.Exec("") ;
599
600 }
601
602 //___________________________________________________________________________
603 AliDigitizer* AliTOF::CreateDigitizer(AliRunDigitizer* manager) const
604 {
605   return new AliTOFDigitizer(manager);
606 }
607
608 //___________________________________________________________________________
609 Bool_t AliTOF::CheckOverlap(Int_t* vol, Int_t* digit,Int_t Track)
610 {
611 //
612 // Checks if 2 or more hits belong to the same pad.
613 // In this case the data assigned to the digit object
614 // are the ones of the first hit in order of Time.
615 // 2 hits from the same track on the same pad are collected.
616 // Called only by Hits2SDigits.
617 // This procedure has to be optimized in the next TOF release.
618 //
619
620   Bool_t overlap = kFALSE;
621   Int_t  vol2[5];
622
623   for (Int_t ndig=0; ndig<fSDigits->GetEntries(); ndig++){
624     AliTOFdigit* currentDigit = (AliTOFdigit*)(fSDigits->UncheckedAt(ndig));
625     currentDigit->GetLocation(vol2);
626     Bool_t idem= kTRUE;
627     // check on digit volume
628     for (Int_t i=0;i<=4;i++){
629       if (!idem) break;
630       if (vol[i]!=vol2[i]) idem=kFALSE;}
631
632     if (idem){  // same pad fired
633       Int_t tdc2 = digit[0];
634       Int_t tdc1 = currentDigit->GetTdc();
635
636       // we separate two digits on the same pad if
637       // they are separated in time by at least 25 ns
638       // remember that tdc time is given in ps
639
640       if (TMath::Abs(tdc1-tdc2)<25000){
641         // in case of overlap we take the earliest
642         if (tdc1>tdc2){
643           currentDigit->SetTdc(tdc2); 
644           currentDigit->SetAdc(digit[1]);
645         }
646         else {
647           currentDigit->SetTdc(tdc1);
648           currentDigit->SetAdc(digit[1]);
649         }
650         currentDigit->AddTrack(Track); // add track number in the track array
651         overlap = kTRUE;
652         return overlap;
653       } else 
654         overlap= kFALSE;
655
656     } // close if (idem) -> two digits on the same TOF pad
657
658   } // end loop on existing sdigits
659
660   return overlap;
661 }
662 //____________________________________________________________________________
663 void AliTOF::Digits2Raw()
664 {
665 //
666 // Starting from the TOF digits, writes the Raw Data objects
667 //
668
669   TStopwatch stopwatch;
670   stopwatch.Start();
671
672   fLoader->LoadDigits();
673
674   TTree* digits = fLoader->TreeD();
675   if (!digits) {
676     AliError("no digits tree");
677     return;
678   }
679   
680   /*
681   fRunLoader->CdGAFile();
682   TFile *in=(TFile*)gFile;
683   in->cd();
684   AliTOFGeometry *geometry  = (AliTOFGeometry*)in->Get("TOFgeometry");
685   */
686   AliTOFDDLRawData rawWriter;
687   //AliTOFDDLRawData rawWriter;
688   rawWriter.SetVerbose(0);
689   //rawWriter.SetFakeOrphaneProduction(kTRUE);
690   //rawWriter.SetPackedAcquisitionMode(kFALSE);
691   if (rawWriter.GetPackedAcquisitionMode()) {
692     if(rawWriter.GetMatchingWindow()>8192)
693       AliWarning(Form("You are running in packing mode and the matching window is %.2f ns, i.e. greater than 199.8848 ns",
694                       rawWriter.GetMatchingWindow()*AliTOFGeometry::TdcBinWidth()*1.e-03));
695   }
696   
697   AliDebug(1,"Formatting raw data for TOF");
698   digits->GetEvent(0);
699   rawWriter.RawDataTOF(digits->GetBranch("TOF"));  
700
701   fLoader->UnloadDigits();
702   
703   AliDebug(1, Form("Execution time to write TOF raw data : R:%.2fs C:%.2fs",
704                    stopwatch.RealTime(),stopwatch.CpuTime()));
705
706 }
707
708 //____________________________________________________________________________
709 void AliTOF::RecreateSDigitsArray() {
710 //
711 // delete TClonesArray fSDigits and create it again
712 //  needed for backward compatability with PPR test production
713 //
714   fSDigits->Clear();
715 }
716 //____________________________________________________________________________
717 void AliTOF::CreateSDigitsArray() {
718 //
719 // create TClonesArray fSDigits
720 //  needed for backward compatability with PPR test production
721 //
722   fSDigits       = new TClonesArray("AliTOFSDigit",  1000);
723 }