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