]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/AliHLTTPCRawClustersDescriptor.h
HLTZDC module
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCRawClustersDescriptor.h
1 #ifndef ALIHLTTPCRAWCLUSTERSDESCRIPTOR_H
2 #define ALIHLTTPCRAWCLUSTERSDESCRIPTOR_H
3
4 #include "Rtypes.h"
5
6 /**
7  * @struct AliHLTTPCRawClustersDescriptor
8  * The class describes properties of the raw clusters
9  * @ingroup alihlt_tpc_datastructs
10  */
11 class AliHLTTPCRawClustersDescriptor
12 {
13  public:
14
15   AliHLTTPCRawClustersDescriptor(): fVersion(0), fMergedClustersFlag(1){}
16   ~AliHLTTPCRawClustersDescriptor(){}
17   AliHLTTPCRawClustersDescriptor(const AliHLTTPCRawClustersDescriptor& other)
18     : fVersion(other.fVersion)
19     , fMergedClustersFlag(other.fMergedClustersFlag)
20   {}
21
22   AliHLTTPCRawClustersDescriptor& operator=(const AliHLTTPCRawClustersDescriptor& other){ 
23     if( &other == this ) return *this;
24     fVersion = other.fVersion;
25     fMergedClustersFlag = other.fMergedClustersFlag;
26     return *this;
27   }
28
29   Bool_t CheckSize( UInt_t size ) const {
30     if( size<sizeof(UInt_t) ) return 0;
31     if( fVersion==0 ) return ( size==sizeof(AliHLTTPCRawClustersDescriptor));
32     return 0;
33   }
34   
35   UInt_t GetVersion() const { return fVersion; }
36   Int_t GetMergedClustersFlag() const { return fMergedClustersFlag; }
37   
38   void SetMergedClustersFlag( Int_t flag ){ fMergedClustersFlag=flag; }
39
40  private:
41
42   UInt_t fVersion; // version number
43   Int_t fMergedClustersFlag; // flag tells if the clusters were merged at the branch borders
44 };
45
46 #endif