]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/comp/AliL3Compress.h
Additional protection
[u/mrichter/AliRoot.git] / HLT / comp / AliL3Compress.h
CommitLineData
3e87ef69 1// @(#) $Id$
2
5bf93292 3#ifndef AliL3_Compress
4#define AliL3_Compress
5
1f1942b8 6#include "AliL3RootTypes.h"
a3282264 7#include "AliL3StandardIncludes.h"
6f388e0d 8#include "AliL3DataCompressor.h"
5bf93292 9
10class AliL3Compress {
11
5bf93292 12 public:
13 AliL3Compress();
3e87ef69 14 AliL3Compress(Int_t slice,Int_t patch,Char_t *path="./",Bool_t writeshape=kFALSE,Int_t event=-1);
5bf93292 15 virtual ~AliL3Compress();
16
3e87ef69 17 Bool_t WriteFile(AliL3TrackArray *tracks,Char_t *filename=0);
18 Bool_t ReadFile(Char_t which,Char_t *filename=0);
de3c3890 19 virtual Bool_t CompressFile();
20 virtual Bool_t ExpandFile();
6f388e0d 21 void CompressRemaining(AliL3SpacePointData *points[36][6],UInt_t npoints[36][6]);
22 void ExpandRemaining(TempCluster **clusters,Int_t *ncl,Int_t maxclusters);
de3c3890 23 virtual void PrintCompRatio(STDOF *outfile=0);
b4686276 24 Int_t GetEntropy(Float_t &padEntropy,Float_t &timeEntropy,Float_t &chargeEntropy);
92a876e2 25
95a00d93 26 AliL3TrackArray *GetTracks() {return fTracks;}
27
b4686276 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
5bf93292 37 ClassDef(AliL3Compress,1)
38
39};
40
41#endif