]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSVertexer3D.h
for non-miscalibrated digits, set an ad-hoc conversion factor fAdC->fToT to have...
[u/mrichter/AliRoot.git] / ITS / AliITSVertexer3D.h
1 #ifndef ALIITSVERTEXER3D_H
2 #define ALIITSVERTEXER3D_H
3
4 #include<AliITSVertexer.h>
5
6 ///////////////////////////////////////////////////////////////////
7 //                                                               //
8 // Class for primary vertex finding  (3D reconstruction)         //
9 //                                                               //
10 ///////////////////////////////////////////////////////////////////
11
12 class AliVertex;
13 class TClonesArray;
14
15 class AliITSVertexer3D : public AliITSVertexer {
16
17  public:
18
19   AliITSVertexer3D();
20   AliITSVertexer3D(TString filename);
21   virtual ~AliITSVertexer3D();
22   virtual AliESDVertex* FindVertexForCurrentEvent(Int_t evnumb);
23   virtual void FindVertices();
24   AliVertex GetVertex3D() const {return fVert3D;}
25   virtual void MakeTracklet(Double_t *pA, Double_t *pB, Int_t &nolines);
26   virtual void MakeTracklet(Float_t *pA, Float_t *pB, Int_t &nolines);
27   virtual void PrintStatus() const;
28   void SetCoarseDiffPhiCut(Float_t dphi = 0.5){fCoarseDiffPhiCut=dphi;}
29   void SetCoarseMaxRCut(Float_t rad = 2.5){fCoarseMaxRCut=rad;}
30   void SetMaxRCut(Float_t rad = 0.5){fMaxRCut=rad;}
31   void SetZCutDiamond(Float_t zcut = 14.0){fZCutDiamond=zcut;}
32   void SetMaxZCut(Float_t dz = 0.5){fMaxZCut=dz;}
33   void SetDCAcut(Float_t dca=0.1){fDCAcut=dca;} 
34   void SetDiffPhiMax(Float_t pm = 0.01){fDiffPhiMax = pm;}
35
36 protected:
37   AliITSVertexer3D(const AliITSVertexer3D& vtxr);
38   AliITSVertexer3D& operator=(const AliITSVertexer3D& /* vtxr */);
39   Int_t FindTracklets(Int_t evnumber, Int_t optCuts);
40   Int_t Prepare3DVertex(Int_t optCuts);
41   void ResetVert3D();
42
43   TClonesArray *fLines;      //! array of tracklets
44   AliVertex fVert3D;        // 3D Vertex
45   Float_t fCoarseDiffPhiCut; // loose cut on DeltaPhi for RecPoint matching 
46   Float_t fCoarseMaxRCut; // cut on tracklet DCA to Z axis
47   Float_t fMaxRCut; // cut on tracklet DCA to beam axis
48   Float_t fZCutDiamond;   // cut on +-Z of the diamond
49   Float_t fMaxZCut;   // cut on Z distance from estimated vertex
50   Float_t fDCAcut; // cut on tracklet to tracklet and tracklet to vertex DCA
51   Float_t fDiffPhiMax;     // Maximum delta phi allowed among corr. pixels
52   ClassDef(AliITSVertexer3D,2);
53
54 };
55
56 #endif