]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCclusterMI.h
reduced to 6 standard plots
[u/mrichter/AliRoot.git] / TPC / AliTPCclusterMI.h
1 #ifndef ALITPCCLUSTERMI_H
2 #define ALITPCCLUSTERMI_H
3
4 //-------------------------------------------------------
5 //                    TPC Cluster Class
6 //   Parallel tracking
7 //   Origin: Marian Ivanov
8 //-------------------------------------------------------
9
10 /* $Id$ */
11
12
13 #include "AliCluster.h"
14 #include "TMath.h"
15
16 //_____________________________________________________________________________
17 class AliTPCclusterMI : public AliCluster {
18 public:
19   AliTPCclusterMI();
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);}  
31   //
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;}
39  
40 private:
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
49 };
50
51 void AliTPCclusterMI::Use(Int_t inc) 
52
53   if (inc>0)  fUsed+=inc; 
54   else 
55     fUsed=0;
56 }
57
58
59
60 #endif
61
62