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