Moving to static AliL3Transform.
[u/mrichter/AliRoot.git] / HLT / comp / AliL3Modeller.h
1 #ifndef AliL3_Modeller
2 #define AliL3_Modeller
3
4
5 #include "AliL3RootTypes.h"
6
7 class AliL3TrackArray;
8 class AliL3MemHandler;
9 class AliL3DigitRowData;
10 class AliL3ModelTrack;
11
12 struct Cluster {
13   UInt_t fCharge;
14   UInt_t fPad;
15   UInt_t fTime;
16   UInt_t fSigmaY2;
17   UInt_t fSigmaZ2;
18 };
19
20 struct Digit {
21   Short_t fCharge;
22   Bool_t fUsed;
23 };
24
25 class AliL3Modeller {
26   
27  private:
28   
29   AliL3TrackArray *fTracks; //!
30   AliL3MemHandler *fMemHandler; //!
31   AliL3DigitRowData *fRowData;//!
32   
33   Int_t fNClusters;
34   Int_t fMaxClusters;
35   
36   Float_t fPadOverlap;
37   Float_t fTimeOverlap;
38   Int_t fTrackThreshold; //minimum weigth track need in order to be included.(=Nhits/weight)
39   
40   Int_t fSlice;
41   Int_t fPatch;
42   Char_t fPath[100];
43
44   void FillCluster(AliL3ModelTrack *track,Cluster *cluster,Int_t row,Int_t npads);
45   void CalcClusterWidth(Cluster *cl,Float_t &sigmaY2,Float_t &sigmaZ2);
46   void FillZeros(AliL3DigitRowData *digPt,Digit *row);
47
48  public:
49   
50   AliL3Modeller();
51   virtual ~AliL3Modeller();
52   
53   void Init(Int_t slice,Int_t patch,Char_t *trackdata,Char_t *path,Bool_t houghtracks=kFALSE);
54   void FindClusters();
55   void CheckForOverlaps();
56   void CalculateCrossingPoints();
57   void WriteRemaining();
58   
59   void SetInputData(AliL3DigitRowData *digits) {fRowData = digits;}
60   void SetTrackThreshold(Int_t i) {fTrackThreshold=i;}
61
62   AliL3TrackArray *GetTracks() {return fTracks;}
63     
64   ClassDef(AliL3Modeller,1) //Modeller class
65     
66 };
67
68 #endif