1 #ifndef ALIHLTTPCDATACOMPRESSIONDESCRIPTOR_H
2 #define ALIHLTTPCDATACOMPRESSIONDESCRIPTOR_H
7 * @struct AliHLTTPCDataCompressionDescriptor
8 * The class describes properties of the compressed data
9 * @ingroup alihlt_tpc_datastructs
11 class AliHLTTPCDataCompressionDescriptor
15 AliHLTTPCDataCompressionDescriptor(): fVersion(0), fMergedClustersFlag(1){}
16 ~AliHLTTPCDataCompressionDescriptor(){}
17 AliHLTTPCDataCompressionDescriptor(const AliHLTTPCDataCompressionDescriptor& other)
18 : fVersion(other.fVersion)
19 , fMergedClustersFlag(other.fMergedClustersFlag)
22 AliHLTTPCDataCompressionDescriptor& operator=(const AliHLTTPCDataCompressionDescriptor& other){
23 fVersion = other.fVersion;
24 fMergedClustersFlag = other.fMergedClustersFlag;
28 Bool_t CheckSize( UInt_t size ) const {
29 if( size<sizeof(UInt_t) ) return 0;
30 if( fVersion==0 ) return ( size==sizeof(AliHLTTPCDataCompressionDescriptor));
34 UInt_t GetVersion() const { return fVersion; }
35 Int_t GetMergedClustersFlag() const { return fMergedClustersFlag; }
37 void SetMergedClustersFlag( Int_t flag ){ fMergedClustersFlag=flag; }
41 UInt_t fVersion; // version number
42 Int_t fMergedClustersFlag; // flag tells if the clusters were merged at the branch borders