]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSClusterFinderSDD.h
Fixed type from Float_t to Int_t for thres.
[u/mrichter/AliRoot.git] / ITS / AliITSClusterFinderSDD.h
1 #ifndef ALIITSCLUSTERFINDERSDD_H
2 #define ALIITSCLUSTERFINDERSDD_H
3
4 ////////////////////////////////////////////////
5 //  ITS Cluster Finder Class                 //
6 ////////////////////////////////////////////////
7
8
9 #include "AliITSClusterFinder.h"
10
11 class AliITSMapA2;
12 class TFile;
13
14 class AliITSClusterFinderSDD :
15  public AliITSClusterFinder
16
17 {
18 public:
19   AliITSClusterFinderSDD
20   (AliITSsegmentation *seg, 
21    AliITSresponse *response, TClonesArray *digits,TClonesArray *recpoints);
22   AliITSClusterFinderSDD();
23   virtual ~AliITSClusterFinderSDD();
24   AliITSClusterFinderSDD(const AliITSClusterFinderSDD &source); // copy constructor
25   AliITSClusterFinderSDD& operator=(const AliITSClusterFinderSDD &source); // assignment operator
26   
27   virtual void SetCutAmplitude(Int_t thres=0) {
28     // set cut amplitude
29     fCutAmplitude=thres;
30   }
31   virtual void SetDAnode(Float_t danode=4.2) {
32     // setDAnode
33     fDAnode=danode;
34   }
35   virtual void SetDTime(Float_t dtime=75) {
36     // SetDTime
37     fDTime=dtime;
38   }
39   virtual void SetMinPeak(Int_t minpeak=7) {
40     // SetMinPeak
41     fMinPeak=minpeak;
42   }
43   virtual void SetMinNCells(Int_t minc=6) {
44     // setNCells
45     fMinNCells=minc;
46   }
47    virtual void SetMaxNCells(Int_t maxc=10) {
48     // setNCells
49     fMaxNCells=maxc;
50   }
51    virtual void SetTimeCorr(Float_t timec=70.) {
52     // setNCells
53     fTimeCorr=timec;
54   }
55   
56   // Search for clusters
57   virtual void FindRawClusters();
58   void  Find1DClusters();
59   void  GroupClusters();
60   void  SelectClusters();
61   void  GetRecPoints();
62   
63 private:
64   
65   TClonesArray       *fClusters;      // clusters
66   Int_t               fNclusters;     // num of clusters
67   Float_t             fDAnode;        // fDanode
68   Float_t             fDTime;         // fDtime
69   Float_t             fTimeCorr;      // Correction factor along time coord
70   
71   Int_t               fCutAmplitude;  // cut amplitude
72   Int_t               fMinPeak;       // min peak
73   Int_t               fMinNCells;     // min num of cells
74   Int_t               fMaxNCells;     // max num of cells
75   ClassDef(AliITSClusterFinderSDD,1) // SDD clustering - Piergiorgio C. algo
76     };
77 #endif
78
79
80
81
82
83
84