]>
Commit | Line | Data |
---|---|---|
3e87ef69 | 1 | // @(#) $Id$ |
2 | ||
d5cdf5cf | 3 | #ifndef ALIL3ConfMapperH |
4 | #define ALIL3ConfMapperH | |
108615fc | 5 | |
6 | #include "AliL3RootTypes.h" | |
108615fc | 7 | #include "AliL3SpacePointData.h" |
8 | ||
9 | class AliL3ConfMapPoint; | |
10 | class AliL3ConfMapTrack; | |
11 | class AliL3Vertex; | |
12 | class AliL3TrackArray; | |
13 | ||
b661165c | 14 | // |
15 | //Conformal mapping base class | |
16 | ||
108615fc | 17 | class AliL3ConfMapper { |
18 | ||
d5cdf5cf | 19 | struct AliL3ConfMapContainer |
20 | { | |
21 | void *first; // first track | |
22 | void *last; // last track | |
23 | }; | |
24 | ||
108615fc | 25 | private: |
26 | ||
02f030e3 | 27 | Bool_t fBench; //run-time measurements |
108615fc | 28 | |
d5cdf5cf | 29 | Int_t fNTracks; //number of tracks build. |
108615fc | 30 | |
108615fc | 31 | AliL3Vertex *fVertex; //! |
d5cdf5cf | 32 | Bool_t fParamSet[2]; //! |
108615fc | 33 | Bool_t fVertexFinder; //Include vertexfinding or not (latter case vertex=(0,0,0)) |
34 | ||
108615fc | 35 | AliL3ConfMapPoint *fHit; //! |
36 | AliL3TrackArray *fTrack; //! | |
37 | Double_t fMaxDca; //cut value for momentum fit | |
38 | ||
39 | AliL3ConfMapContainer *fVolume; //! Segment volume | |
40 | AliL3ConfMapContainer *fRow; //! Row volume | |
41 | ||
42 | //Number of cells (segments) | |
43 | Int_t fNumRowSegment; // Total number of padrows | |
44 | Int_t fNumPhiSegment; // number of phi segments | |
45 | Int_t fNumEtaSegment; // number of eta segments | |
d5cdf5cf | 46 | Int_t fNumRowSegmentPlusOne; // row+1 |
47 | Int_t fNumPhiSegmentPlusOne; // phi+1 | |
48 | Int_t fNumEtaSegmentPlusOne; // eta+1 | |
49 | Int_t fNumPhiEtaSegmentPlusOne;// phieta+1 | |
50 | Int_t fBounds; // bounds | |
51 | Int_t fPhiHitsOutOfRange; // phi hits out of range | |
52 | Int_t fEtaHitsOutOfRange; // eta hits out of range | |
108615fc | 53 | |
54 | //tracking range: | |
55 | Float_t fPhiMin; //MinPhi angle to consider | |
56 | Float_t fPhiMax; //MaxPhi angle to consider | |
57 | Float_t fEtaMin; //MinEta to consider | |
58 | Float_t fEtaMax; //MaxEta to consider | |
59 | Int_t fRowMin; //Minimum row to consider | |
60 | Int_t fRowMax; //Maximum row to consider | |
61 | ||
62 | Bool_t fVertexConstraint; //vertex constraint (true or false) | |
63 | Int_t fTrackletLength[2]; //minimal length of tracks | |
64 | Int_t fRowScopeTracklet[2]; //number of row segments to look for the next point of a tracklet | |
65 | Int_t fRowScopeTrack[2]; //number of row segments to look for the next point of a track | |
66 | Int_t fMinPoints[2]; //minimum number of points on one track | |
67 | ||
68 | // Cuts | |
69 | Double_t fMaxAngleTracklet[2]; //limit of angle between to pieces of a tracklet | |
02f030e3 | 70 | Int_t fMaxDist[2]; //maximum distance between two hits |
71 | Double_t fHitChi2Cut[2]; //Maximum hit chi2 | |
72 | Double_t fGoodHitChi2[2]; //Chi2 to stop looking for next hit | |
73 | Double_t fTrackChi2Cut[2]; //Maximum track chi2 | |
108615fc | 74 | Double_t fGoodDist; //In segment building, distance consider good enough |
d5cdf5cf | 75 | Double_t fMaxPhi; //Maximum phi |
76 | Double_t fMaxEta; //Maximum eta | |
108615fc | 77 | |
78 | // Tracking informtion | |
79 | Int_t fMainVertexTracks; //number of tracks coming from the main vertex | |
80 | Int_t fClustersUnused; //number of unused clusters | |
81 | ||
108615fc | 82 | //setter: |
d5cdf5cf | 83 | void SetMinPoints(Int_t f,Bool_t vconstraint) {fMinPoints[(Int_t)vconstraint] = f; } |
108615fc | 84 | void SetVertexConstraint(Bool_t f) {fVertexConstraint =f;} |
85 | ||
266829be | 86 | void SetHitChi2Cut(Double_t f,Bool_t vert) {fHitChi2Cut[(Int_t)vert]=f;} |
87 | void SetGoodHitChi2(Double_t f,Bool_t vert) {fGoodHitChi2[(Int_t)vert]=f;} | |
88 | void SetTrackChi2Cut(Double_t f,Bool_t vert) {fTrackChi2Cut[(Int_t)vert]=f;} | |
89 | void SetMaxDist(Int_t f,Bool_t vert) {fMaxDist[(Int_t)vert]=f;} | |
108615fc | 90 | void SetTrackletLength(Int_t f,Bool_t vert) {fTrackletLength[(Int_t)vert]=f;} |
d5cdf5cf | 91 | void SetRowScopeTrack(Int_t f, Bool_t vc){fRowScopeTrack[(Int_t)vc] = f;} // sets one row scope for tracks |
92 | void SetRowScopeTracklet(Int_t f, Bool_t vc){fRowScopeTracklet[(Int_t)vc] = f;} // sets one row scope for tracklets | |
93 | void SetMaxAngleTracklet(Double_t f, Bool_t vc){fMaxAngleTracklet[(Int_t)vc] = f;} // sets one angle cut | |
108615fc | 94 | |
95 | void SetPointers(); | |
96 | Double_t CpuTime(); | |
d5cdf5cf | 97 | void SetParamDone(Bool_t vconstraint) {fParamSet[(Int_t)vconstraint] = kTRUE;} |
0a86fbb7 | 98 | |
108615fc | 99 | public: |
100 | ||
101 | AliL3ConfMapper(); | |
102 | // AliL3ConfMapper(AliTPCParam *param,AliL3Vertex *vertex,Bool_t bench=(Bool_t)false); | |
103 | virtual ~AliL3ConfMapper(); | |
104 | ||
aee46a8c | 105 | void InitVolumes(); |
108615fc | 106 | void InitSector(Int_t sector,Int_t *rowrange=0,Float_t *etarange=0); |
107 | void SetVertex(AliL3Vertex *vertex){fVertex = vertex;} | |
108 | void MainVertexTracking_a(); | |
109 | void MainVertexTracking_b(); | |
110 | void MainVertexTracking(); | |
111 | void NonVertexTracking(); | |
112 | void MainVertexSettings(Int_t trackletlength, Int_t tracklength, | |
113 | Int_t rowscopetracklet, Int_t rowscopetrack,Double_t maxphi=0.1,Double_t maxeta=0.1); | |
114 | void NonVertexSettings(Int_t trackletlength, Int_t tracklength, | |
115 | Int_t rowscopetracklet, Int_t rowscopetrack); | |
116 | Bool_t ReadHits(UInt_t count, AliL3SpacePointData* hits ); | |
117 | void ClusterLoop(); | |
118 | void CreateTrack(AliL3ConfMapPoint *hit); | |
119 | AliL3ConfMapPoint *GetNextNeighbor(AliL3ConfMapPoint *start_hit,AliL3ConfMapTrack *track=NULL); | |
120 | Int_t EvaluateHit(AliL3ConfMapPoint *start_hit,AliL3ConfMapPoint *hit,AliL3ConfMapTrack *track); | |
121 | ||
122 | Double_t CalcDistance(const AliL3ConfMapPoint *hit1,const AliL3ConfMapPoint *hit2) const; | |
3e87ef69 | 123 | Double_t TrackletAngle(AliL3ConfMapTrack *track,Int_t n=3) const; |
108615fc | 124 | Bool_t VerifyRange(const AliL3ConfMapPoint *hit1,const AliL3ConfMapPoint *hit2) const; |
125 | Int_t FillTracks(); | |
126 | ||
127 | //getters | |
d5cdf5cf | 128 | Int_t GetNumberOfTracks() const {return fNTracks;} |
129 | AliL3TrackArray *GetTracks() const {return fTrack;} | |
130 | Double_t GetMaxDca() const {return fMaxDca;} | |
131 | AliL3Vertex* GetVertex() const {return fVertex;} | |
108615fc | 132 | |
133 | //setters | |
266829be | 134 | void SetTrackCuts(Double_t hitChi2Cut, Double_t goodHitChi2, Double_t trackChi2Cut, Int_t maxdist,Bool_t vertexconstraint); |
d5cdf5cf | 135 | void SetTrackletCuts(Double_t maxangle,Double_t goodDist,Bool_t vc); //Set cut of tracklet for the given vertex_constraint |
108615fc | 136 | void SetNSegments(Int_t f,Int_t g) {fNumPhiSegment=f,fNumEtaSegment=g;} //Set number of subvolumes (#segments in (phi,eta) |
108615fc | 137 | void SetMaxDca(Double_t f) {fMaxDca = f;} |
138 | ||
139 | ClassDef(AliL3ConfMapper,1) //Base class for conformal mapping tracking | |
140 | }; | |
141 | ||
142 | #endif |