]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/src/AliL3ClustFinderNew.h
bce5dddd715c3c8860ac0264d62490fa9812a049
[u/mrichter/AliRoot.git] / HLT / src / AliL3ClustFinderNew.h
1 #ifndef AliL3_ClustFinderNew
2 #define AliL3_ClustFinderNew
3
4 #include "AliL3RootTypes.h"
5
6
7 struct ClusterData
8 {
9
10   UInt_t fTotalCharge;
11   UInt_t fPad;
12   UInt_t fTime;
13   UInt_t fMean;
14   UInt_t fFlags;
15   UInt_t fChargeFalling; //for deconvolution
16   UInt_t fLastCharge;    //for deconvolution
17 };
18 typedef struct ClusterData ClusterData;
19
20 class AliL3DigitRowData;
21 class AliL3SpacePointData;
22
23 class AliL3ClustFinderNew {
24  
25  private:
26   
27   AliL3DigitRowData *fDigitRowData; //!
28   AliL3SpacePointData *fSpacePointData; //!
29   Bool_t fDeconvTime;
30   Bool_t fDeconvPad;
31   UInt_t fNDigitRowData;
32   Int_t fFirstRow;
33   Int_t fLastRow;
34   Int_t fCurrentRow;
35   Int_t fCurrentSlice;
36   Int_t fCurrentPatch;
37   Int_t fMatch;
38   UInt_t fThreshold;
39   Int_t fNClusters;
40   Int_t fMaxNClusters;
41   Float_t fXYErr;
42   Float_t fZErr;
43
44 #ifdef do_mc
45   void GetTrackID(Int_t pad,Int_t time,Int_t *trackID);
46 #endif
47   
48  public:
49   AliL3ClustFinderNew();
50   virtual ~AliL3ClustFinderNew();
51   
52   void Read(UInt_t ndigits,AliL3DigitRowData *ptr);
53   void InitSlice(Int_t slice,Int_t patch,Int_t firstrow, Int_t lastrow,Int_t maxpoints);
54   void InitSlice(Int_t slice,Int_t patch,Int_t maxpoints);
55   void ProcessDigits();
56   void ProcessRow(AliL3DigitRowData *tempPt);
57   void SetOutputArray(AliL3SpacePointData *pt);
58   void WriteClusters(Int_t n_clusters,ClusterData *list);
59
60   void SetXYError(Float_t f) {fXYErr = f;}
61   void SetZError(Float_t f) {fZErr = f;}
62   void SetDeconv(Bool_t f) {fDeconvPad=f; fDeconvTime=f;}
63   
64   Int_t GetNumberOfClusters() {return fNClusters;}
65   
66   ClassDef(AliL3ClustFinderNew,1) //Fast cluster finder
67
68 };
69
70 #endif