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