1 #ifndef ALITPCCLUSTERMI_H
2 #define ALITPCCLUSTERMI_H
4 //-------------------------------------------------------
7 // Origin: Marian Ivanov
8 //-------------------------------------------------------
13 #include "AliCluster.h"
16 //_____________________________________________________________________________
17 class AliTPCclusterMI : public AliCluster {
20 AliTPCclusterMI(Int_t *lab, Float_t *hit);
21 virtual ~AliTPCclusterMI() {}
22 virtual Bool_t IsSortable() const;
23 virtual Int_t Compare(const TObject* obj) const;
24 inline void Use(Int_t inc=10);
25 virtual Float_t GetX() const { return fX;}
26 virtual void SetX(Float_t x) { fX = x;}
27 virtual Int_t GetDetector() const {return fDetector;}
28 virtual Int_t GetRow() const {return fRow;}
29 virtual void SetDetector(Int_t detector){fDetector = (UChar_t)(detector%256);}
30 virtual void SetRow(Int_t row){fRow = (UChar_t)(row%256);}
32 void SetQ(Float_t q) {fQ=(UShort_t)q;}
33 void SetType(Char_t type) {fType=type;}
34 void SetMax(UShort_t max) {fMax=max;}
35 Int_t IsUsed(Int_t th=10) const {return (fUsed>=th) ? 1 : 0;}
36 Float_t GetQ() const {return TMath::Abs(fQ);}
37 Float_t GetMax() const {return fMax;}
38 Char_t GetType()const {return fType;}
41 Float_t fX; //X position of cluster
42 Short_t fQ ; //Q of cluster (in ADC counts)
43 Char_t fType; //type of the cluster 0 means golden
44 Short_t fMax; //maximal amplitude in cluster
45 Char_t fUsed; //counter of usage
46 UChar_t fDetector; //detector number
47 UChar_t fRow; //row number number
48 ClassDef(AliTPCclusterMI,2) // Time Projection Chamber clusters
51 void AliTPCclusterMI::Use(Int_t inc)
53 if (inc>0) fUsed+=inc;