Line data Source code
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 0 : AliHLTTPCRawClustersDescriptor(): fVersion(0), fMergedClustersFlag(1){}
16 0 : ~AliHLTTPCRawClustersDescriptor(){}
17 : AliHLTTPCRawClustersDescriptor(const AliHLTTPCRawClustersDescriptor& other)
18 : : fVersion(other.fVersion)
19 : , fMergedClustersFlag(other.fMergedClustersFlag)
20 : {}
21 :
22 : AliHLTTPCRawClustersDescriptor& operator=(const AliHLTTPCRawClustersDescriptor& other){
23 0 : if( &other == this ) return *this;
24 0 : fVersion = other.fVersion;
25 0 : fMergedClustersFlag = other.fMergedClustersFlag;
26 0 : return *this;
27 0 : }
28 :
29 : Bool_t CheckSize( UInt_t size ) const {
30 0 : if( size<sizeof(UInt_t) ) return 0;
31 0 : if( fVersion==0 ) return ( size==sizeof(AliHLTTPCRawClustersDescriptor));
32 0 : return 0;
33 0 : }
34 :
35 : UInt_t GetVersion() const { return fVersion; }
36 0 : Int_t GetMergedClustersFlag() const { return fMergedClustersFlag; }
37 :
38 0 : 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
|