]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/comp/AliL3Compress.h
New version of TOF tracker which uses TOF clusters as an input (A. De Caro)
[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 "AliL3StandardIncludes.h"
8 #include "AliL3DataCompressor.h"
9
10 class AliL3Compress {
11   
12  public:
13   AliL3Compress();
14   AliL3Compress(Int_t slice,Int_t patch,Char_t *path="./",Bool_t writeshape=kFALSE,Int_t event=-1);
15   virtual ~AliL3Compress();
16   
17   Bool_t WriteFile(AliL3TrackArray *tracks,Char_t *filename=0);
18   Bool_t ReadFile(Char_t which,Char_t *filename=0);
19   virtual Bool_t CompressFile();
20   virtual Bool_t ExpandFile();
21   void CompressRemaining(AliL3SpacePointData *points[36][6],UInt_t npoints[36][6]);
22   void ExpandRemaining(TempCluster **clusters,Int_t *ncl,Int_t maxclusters);
23   virtual void PrintCompRatio(STDOF *outfile=0);
24   Int_t GetEntropy(Float_t &padEntropy,Float_t &timeEntropy,Float_t &chargeEntropy);
25   
26   AliL3TrackArray *GetTracks() {return fTracks;}
27   
28  protected:
29   AliL3TrackArray *fTracks; //! Array of tracks
30   Int_t fSlice; // Slice
31   Int_t fPatch; // Patch
32   Char_t fPath[100]; // Path to the files
33   Bool_t fWriteShape; // Flag to write the shape
34   Int_t fEvent; // Current event
35
36   
37   ClassDef(AliL3Compress,1) 
38
39 };
40
41 #endif