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