Add a constant with the position of the anode wire place
[u/mrichter/AliRoot.git] / ITS / AliITSVertexer3D.h
CommitLineData
70c95f95 1#ifndef ALIITSVERTEXER3D_H
2#define ALIITSVERTEXER3D_H
3
27167524 4#include<AliITSVertexer.h>
70c95f95 5
6///////////////////////////////////////////////////////////////////
7// //
8// Class for primary vertex finding (3D reconstruction) //
9// //
10///////////////////////////////////////////////////////////////////
11
6a0d56b8 12/* $Id$ */
13
f5f6da22 14#include <TClonesArray.h>
6a0d56b8 15#include <AliESDVertex.h>
7340864d 16#include <TH3F.h>
70c95f95 17
18class AliITSVertexer3D : public AliITSVertexer {
19
20 public:
21
22 AliITSVertexer3D();
70c95f95 23 virtual ~AliITSVertexer3D();
308c2f7c 24 virtual AliESDVertex* FindVertexForCurrentEvent(TTree *itsClusterTree);
6a0d56b8 25 AliESDVertex GetVertex3D() const {return fVert3D;}
70c95f95 26 virtual void PrintStatus() const;
d8ba9ddf 27 void SetWideFiducialRegion(Float_t dz = 20.0, Float_t dr=2.5){
7203e11a 28 SetCoarseMaxRCut(dr);
29 SetZCutDiamond(dz);
30 }
31 void SetNarrowFiducialRegion(Float_t dz = 0.5, Float_t dr=0.5){
32 SetMaxRCut(dr);
33 SetMaxZCut(dz);
34 }
35 void SetDeltaPhiCuts(Float_t dphiloose=0.5, Float_t dphitight=0.01){
36 SetCoarseDiffPhiCut(dphiloose);
37 SetDiffPhiMax(dphitight);
38 }
70c95f95 39 void SetCoarseDiffPhiCut(Float_t dphi = 0.5){fCoarseDiffPhiCut=dphi;}
05d1294c 40 void SetCoarseMaxRCut(Float_t rad = 2.5){fCoarseMaxRCut=rad;}
41 void SetMaxRCut(Float_t rad = 0.5){fMaxRCut=rad;}
d8ba9ddf 42 void SetZCutDiamond(Float_t zcut = 20.0){fZCutDiamond=zcut;}
05d1294c 43 void SetMaxZCut(Float_t dz = 0.5){fMaxZCut=dz;}
7203e11a 44 void SetDCACut(Float_t dca=0.1){fDCAcut=dca;}
70c95f95 45 void SetDiffPhiMax(Float_t pm = 0.01){fDiffPhiMax = pm;}
6a0d56b8 46 void SetMeanPSelTracks(Float_t pGeV=0.875){fMeanPSelTrk = pGeV;}
47 void SetMeanPtSelTracks(Float_t ptGeV=0.630){fMeanPtSelTrk = ptGeV;}
48 void SetMeanPPtSelTracks(Float_t fieldTesla);
70c95f95 49
50protected:
51 AliITSVertexer3D(const AliITSVertexer3D& vtxr);
52 AliITSVertexer3D& operator=(const AliITSVertexer3D& /* vtxr */);
308c2f7c 53 Int_t FindTracklets(TTree *itsClusterTree, Int_t optCuts);
05d1294c 54 Int_t Prepare3DVertex(Int_t optCuts);
27167524 55 void ResetVert3D();
7340864d 56 void FindPeaks(TH3F* histo, Double_t *peak, Int_t &nOfTracklets, Int_t &nOfTimes);
70c95f95 57
6a0d56b8 58
f5f6da22 59 TClonesArray fLines; //! array of tracklets
6a0d56b8 60 AliESDVertex fVert3D; // 3D Vertex
70c95f95 61 Float_t fCoarseDiffPhiCut; // loose cut on DeltaPhi for RecPoint matching
05d1294c 62 Float_t fCoarseMaxRCut; // cut on tracklet DCA to Z axis
63 Float_t fMaxRCut; // cut on tracklet DCA to beam axis
70c95f95 64 Float_t fZCutDiamond; // cut on +-Z of the diamond
05d1294c 65 Float_t fMaxZCut; // cut on Z distance from estimated vertex
70c95f95 66 Float_t fDCAcut; // cut on tracklet to tracklet and tracklet to vertex DCA
67 Float_t fDiffPhiMax; // Maximum delta phi allowed among corr. pixels
6a0d56b8 68 Float_t fMeanPSelTrk; // GeV, mean P for tracks with dphi<0.01 rad
69 Float_t fMeanPtSelTrk; // GeV, mean Pt for tracks with dphi<0.01 rad
70
308c2f7c 71 ClassDef(AliITSVertexer3D,6);
70c95f95 72
73};
74
75#endif