]>
Commit | Line | Data |
---|---|---|
3e87ef69 | 1 | // @(#) $Id$ |
2 | ||
108615fc | 3 | #ifndef ALIL3FILEHANDLER_H |
4 | #define ALIL3FILEHANDLER_H | |
5 | ||
108615fc | 6 | #include "AliL3MemHandler.h" |
3e87ef69 | 7 | |
8 | class TClonesArray; | |
9 | ||
10 | #include <AliSimDigits.h> | |
11 | #include <AliTPCParam.h> | |
12 | ||
108615fc | 13 | #include <TObject.h> |
14 | #include <TFile.h> | |
95a00d93 | 15 | #include <TTree.h> |
95a00d93 | 16 | |
108615fc | 17 | class AliL3SpacePointData; |
18 | class AliL3DigitRowData; | |
19 | class AliL3TrackSegmentData; | |
20 | class AliL3TrackArray; | |
21 | ||
22 | class AliL3FileHandler:public AliL3MemHandler{ | |
23 | private: | |
24 | TFile *fInAli; | |
25 | AliTPCParam *fParam; | |
108615fc | 26 | Bool_t SetAliInput(); |
a6e4f9d6 | 27 | Int_t fLastIndex; |
28 | AliSimDigits *fDigits; | |
29 | TTree *fDigitsTree; | |
108615fc | 30 | FILE *fMC;//! |
a6e4f9d6 | 31 | |
02f030e3 | 32 | Bool_t fIndexCreated; //is index created |
33 | Int_t fIndex[36][159]; //stores index over digitstree | |
34 | //for faster access w/o ASVVERSION | |
35 | ||
a6e4f9d6 | 36 | Bool_t GetDigitsTree(Int_t event); |
02f030e3 | 37 | Bool_t CreateIndex(); //create the index |
38 | ||
108615fc | 39 | public: |
40 | AliL3FileHandler(); | |
41 | virtual ~AliL3FileHandler(); | |
108615fc | 42 | |
a815f9dd | 43 | void FreeDigitsTree(); |
3e87ef69 | 44 | Bool_t SetAliInput(Char_t *name); |
108615fc | 45 | Bool_t SetAliInput(TFile *file); |
46 | void CloseAliInput(); | |
68a27388 | 47 | Bool_t IsDigit(Int_t event); |
a815f9dd | 48 | |
3e87ef69 | 49 | Bool_t SetMCOutput(Char_t *name); |
108615fc | 50 | Bool_t SetMCOutput(FILE *file); |
51 | void CloseMCOutput(); | |
52 | ||
53 | //Digit IO | |
3e87ef69 | 54 | Bool_t AliDigits2Binary(Int_t event=0,Bool_t altro=kFALSE); |
31d9405a | 55 | AliL3DigitRowData *AliDigits2Memory(UInt_t & nrow,Int_t event=0); //Allocates Memory |
3e87ef69 | 56 | AliL3DigitRowData *AliAltroDigits2Memory(UInt_t & nrow,Int_t event=0,Bool_t eventmerge=kFALSE); //Allocates Memory |
954beff0 | 57 | Bool_t AliDigits2CompBinary(Int_t event=0,Bool_t altro=kFALSE); |
0d319e67 | 58 | void AliDigits2RootFile(AliL3DigitRowData *rowPt,Char_t *new_digitsfile); |
108615fc | 59 | |
60 | //Point IO | |
3e87ef69 | 61 | Bool_t AliPoints2Binary(Int_t eventn=0); |
62 | AliL3SpacePointData *AliPoints2Memory(UInt_t & npoint,Int_t eventn=0);//Allocates Memory | |
108615fc | 63 | |
b661165c | 64 | ClassDef(AliL3FileHandler,1) //Filehandler class |
108615fc | 65 | }; |
66 | ||
67 | #endif |