]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliTPCclusterMI.h
Formatting changes.
[u/mrichter/AliRoot.git] / TPC / AliTPCclusterMI.h
CommitLineData
1c53abe2 1#ifndef ALITPCCLUSTERMI_H
2#define ALITPCCLUSTERMI_H
3
4//-------------------------------------------------------
5// TPC Cluster Class
6d171107 6// Parallel tracking
1c53abe2 7// Origin: Marian Ivanov
8//-------------------------------------------------------
9
6d171107 10/* $Id$ */
11
12
1c53abe2 13#include "AliCluster.h"
14#include "TMath.h"
15
16//_____________________________________________________________________________
17class AliTPCclusterMI : public AliCluster {
18public:
2f32844a 19 AliTPCclusterMI();
20 AliTPCclusterMI(Int_t *lab, Float_t *hit);
6d171107 21 virtual ~AliTPCclusterMI() {}
1c53abe2 22 virtual Bool_t IsSortable() const;
23 virtual Int_t Compare(const TObject* obj) const;
7fd61510 24 inline void Use(Int_t inc=10);
508541c7 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 //
6c024a0e 32 void SetQ(Float_t q) {fQ=(UShort_t)q;}
1c53abe2 33 void SetType(Char_t type) {fType=type;}
6c024a0e 34 void SetMax(UShort_t max) {fMax=max;}
7fd61510 35 Int_t IsUsed(Int_t th=10) const {return (fUsed>=th) ? 1 : 0;}
1c53abe2 36 Float_t GetQ() const {return TMath::Abs(fQ);}
37 Float_t GetMax() const {return fMax;}
38 Char_t GetType()const {return fType;}
7fd61510 39
1c53abe2 40private:
508541c7 41 Float_t fX; //X position of cluster
1c53abe2 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
7fd61510 45 Char_t fUsed; //counter of usage
508541c7 46 UChar_t fDetector; //detector number
47 UChar_t fRow; //row number number
48 ClassDef(AliTPCclusterMI,2) // Time Projection Chamber clusters
1c53abe2 49};
50
7fd61510 51void AliTPCclusterMI::Use(Int_t inc)
52{
53 if (inc>0) fUsed+=inc;
54 else
55 fUsed=0;
56}
57
1c53abe2 58
59
60#endif
61
62