]>
Commit | Line | Data |
---|---|---|
3e87ef69 | 1 | // @(#) $Id$ |
2 | ||
c62b480b | 3 | #ifndef ALIL3HOUGHTRANSFORMERGLOBAL_H |
4 | #define ALIL3HOUGHTRANSFORMERGLOBAL_H | |
3e87ef69 | 5 | |
6 | #include "AliL3RootTypes.h" | |
7 | #include "AliL3HoughTransformer.h" | |
8 | ||
9 | class AliL3Histogram; | |
10 | class AliL3MemHandler; | |
11 | class AliL3TrackArray; | |
12 | class AliL3HoughMaxFinder; | |
13 | class TH2F; | |
14 | ||
c62b480b | 15 | struct AliL3Seed { |
16 | Float_t fPhi;//Track emission angle | |
17 | Float_t fRadius;//Track radius | |
18 | Float_t fEta;//Track eta | |
19 | Int_t fIndex;//index? | |
3e87ef69 | 20 | }; |
21 | ||
22 | class AliL3HoughTransformerGlobal : public AliL3HoughTransformer { | |
c62b480b | 23 | |
3e87ef69 | 24 | public: |
25 | AliL3HoughTransformerGlobal(); | |
26 | AliL3HoughTransformerGlobal(Char_t *path,Int_t event=0); | |
27 | virtual ~AliL3HoughTransformerGlobal(); | |
28 | ||
b2a02bce | 29 | void CreateHistograms(Float_t ptmin,Int_t nxbin,Int_t nybin); |
3e87ef69 | 30 | void VerifyTracks(AliL3TrackArray *tracks,Int_t &index); |
31 | void TransformCircle(); | |
32 | void TransformCircleC(); | |
33 | void DefineRegion(Float_t ptmin,Float_t linephi,Int_t seedpadrow); | |
34 | void LoadActiveSlices(Bool_t binary=kTRUE); | |
35 | void UnloadActiveSlices(); | |
c62b480b | 36 | void DisplayActiveRegion(TH2F *hist,Int_t etaindex=0); |
3e87ef69 | 37 | |
38 | void SetSeedPadRow(Int_t i) {fSeedPadRow=i;} | |
39 | ||
40 | AliL3TrackArray *GetTracks() {return fTracks;} | |
41 | ||
c62b480b | 42 | private: |
43 | Int_t fEvent;//Event index | |
44 | Char_t fPath[1024];//path to the input files | |
45 | Int_t *fPadMin; //! | |
46 | Int_t *fPadMax; //! | |
47 | Int_t fNActiveSlice;//number of active slices | |
48 | Float_t fPsi;//psi range | |
49 | Float_t fPtMin;//minimum pt | |
50 | Int_t fSeedPadRow;//? | |
51 | AliL3MemHandler **fMemHandler; //! | |
52 | AliL3TrackArray *fTracks; //! | |
53 | AliL3HoughMaxFinder *fPeakFinder; //! | |
54 | ||
55 | void Rotate(Float_t *xyz,Int_t relslice); | |
56 | void FindPeaks(AliL3Histogram *hist,Float_t eta); | |
57 | Int_t LoadClusterSeeds(AliL3Seed *seeds); | |
58 | Float_t CalculateBorder(Float_t *xyz,Int_t charge); | |
59 | ||
3e87ef69 | 60 | ClassDef(AliL3HoughTransformerGlobal,1) |
61 | ||
62 | }; | |
63 | ||
64 | #endif | |
65 | ||
66 | ||
67 | ||
68 |