3 #ifndef ALIL3FILEHANDLER_H
4 #define ALIL3FILEHANDLER_H
6 #include "AliL3MemHandler.h"
10 #include <AliSimDigits.h>
11 #include <AliTPCParam.h>
13 #include <AliRunLoader.h>
20 class AliL3SpacePointData;
21 class AliL3DigitRowData;
22 class AliL3TrackSegmentData;
23 class AliL3TrackArray;
25 class AliL3FileHandler:public AliL3MemHandler{
34 virtual Bool_t SetAliInput();
36 AliSimDigits *fDigits;
40 Bool_t fIndexCreated; //is index created
41 Int_t fIndex[36][159]; //stores index over digitstree
42 //for faster access w/o ASVVERSION
44 Bool_t GetDigitsTree(Int_t event);
45 Bool_t CreateIndex(); //create the index
51 void FreeDigitsTree();
52 Bool_t SetAliInput(Char_t *name);
53 Bool_t SetAliInput(TFile *file);
55 Bool_t SetAliInput(AliRunLoader *runLoader);
59 Bool_t IsDigit(Int_t event);
61 Bool_t SetMCOutput(Char_t *name);
62 Bool_t SetMCOutput(FILE *file);
66 Bool_t AliDigits2Binary(Int_t event=0,Bool_t altro=kFALSE);
67 AliL3DigitRowData *AliDigits2Memory(UInt_t & nrow,Int_t event=0); //Allocates Memory
68 AliL3DigitRowData *AliAltroDigits2Memory(UInt_t & nrow,Int_t event=0,Bool_t eventmerge=kFALSE);
70 Bool_t AliDigits2CompBinary(Int_t event=0,Bool_t altro=kFALSE);
71 void AliDigits2RootFile(AliL3DigitRowData *rowPt,Char_t *new_digitsfile);
74 Bool_t AliPoints2Binary(Int_t eventn=0);
75 AliL3SpacePointData *AliPoints2Memory(UInt_t & npoint,Int_t eventn=0);//Allocates Memory
77 ClassDef(AliL3FileHandler,1) //Filehandler class