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