SPD Bari model added
[u/mrichter/AliRoot.git] / ITS / AliITSClusterFinderSPDbari.h
CommitLineData
0aedb77e 1#ifndef ALIITSCLUSTERFINDERSPDBARI_H
2#define ALIITSCLUSTERFINDERSPDBARI_H
3
4////////////////////////////////////////////////
5// ITS Cluster Finder Class //
6////////////////////////////////////////////////
7
8#include "AliITSClusterFinder.h"
9
10class AliITSMapA1;
11
12class AliITSClusterFinderSPDbari :
13 public AliITSClusterFinder
14
15{
16public:
17 AliITSClusterFinderSPDbari
18 (AliITSsegmentation *segmentation,
19 TClonesArray *digits, TClonesArray *recpoints);
20 AliITSClusterFinderSPDbari();
21 virtual ~AliITSClusterFinderSPDbari(){
22 // destructor
23 }
24 AliITSClusterFinderSPDbari(const AliITSClusterFinderSPDbari &source); // copy constructor
25 AliITSClusterFinderSPDbari& operator=(const AliITSClusterFinderSPDbari &source); // assignment operator
26
27
28 virtual void SetDx(Float_t dx=1.) {
29 // set dx
30 fDx=dx;
31 }
32 virtual void SetDz(Float_t dz=0.) {
33 // set dz
34 fDz=dz;
35 }
36
37 // Search for clusters
38// virtual void FindRawClusters(Int_t module);
39 virtual void FindRawClusters(); // to be changed
40 void DigitToPoint(Int_t nclus, Float_t *xcenter, Float_t *zcenter,
41 Float_t *errxcenter,Float_t *errzcenter,
42 Int_t *tr1clus, Int_t *tr2clus, Int_t *tr3clus, Int_t module);
43 void ClusterFinder(Int_t ndigits,Int_t digx[],Int_t digz[],
44 Int_t digtr1[],Int_t digtr2[],Int_t digtr3[],
45 Int_t &nclus,
46 Float_t xcenter[],Float_t zcenter[],
47 Float_t errxcenter[],Float_t errzcenter[],
48 Int_t tr1clus[],Int_t tr2clus[], Int_t tr3clus[]);
49
50
51
52private:
53
54 TClonesArray *fClusters; // clusters
55 Int_t fNclusters; // num of clusters
56 Float_t fDz; // dz
57 Float_t fDx; // dx
58
59 Int_t fMinNCells; // min num of cells in the cluster
60
61 ClassDef(AliITSClusterFinderSPDbari,1) // SPD clustering based
62 // on Nico Di Bari algorithm
63 };
64#endif
65