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