]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/comp/AliL3Compress.h
84f91b8ae8993e915b57068f55c3bc0602aea934
[u/mrichter/AliRoot.git] / HLT / comp / AliL3Compress.h
1 // @(#) $Id$
2
3 #ifndef AliL3_Compress
4 #define AliL3_Compress
5
6 #include "AliL3DataCompressor.h"
7
8 class AliL3Compress {
9   
10  private:
11   AliL3TrackArray *fTracks; //!
12
13   Int_t fSlice;
14   Int_t fPatch;
15   Char_t fPath[100];
16   Bool_t fWriteShape;
17   Int_t fEvent;
18
19  public:
20   AliL3Compress();
21   AliL3Compress(Int_t slice,Int_t patch,Char_t *path="./",Bool_t writeshape=kFALSE,Int_t event=-1);
22   virtual ~AliL3Compress();
23   
24   Bool_t WriteFile(AliL3TrackArray *tracks,Char_t *filename=0);
25   Bool_t ReadFile(Char_t which,Char_t *filename=0);
26   Bool_t CompressFile();
27   Bool_t ExpandFile();
28   void CompressRemaining(AliL3SpacePointData *points[36][6],UInt_t npoints[36][6]);
29   void ExpandRemaining(TempCluster **clusters,Int_t *ncl,Int_t maxclusters);
30   void PrintCompRatio(ofstream *outfile=0);
31   
32   AliL3TrackArray *GetTracks() {return fTracks;}
33   
34   ClassDef(AliL3Compress,1) 
35
36 };
37
38 #endif