Record changes.
[u/mrichter/AliRoot.git] / ITS / AliITSVertexerZ.h
CommitLineData
0c6af5c9 1#ifndef ALIITSVERTEXERZ_H
2#define ALIITSVERTEXERZ_H
3
4#include<AliITSVertexer.h>
5
6///////////////////////////////////////////////////////////////////
7// //
8// Class for primary vertex finding //
9// //
10///////////////////////////////////////////////////////////////////
11
12class TFile;
13class TString;
d681bb2d 14class AliESDVertex;
0c6af5c9 15class TH1F;
16
17class AliITSVertexerZ : public AliITSVertexer {
18
19 public:
20
21 AliITSVertexerZ();
22 AliITSVertexerZ(TString filename,Float_t x0=0., Float_t y0=0.);
23 virtual ~AliITSVertexerZ();
6fd990e3 24 // The number of contributors set in the AliESDVertex object is the
25 // number of tracklets used to determine the vertex position
26 // If this number is <1, the procedure could not find a vertex position
27 // and by default the Z coordinate is set to 0
28 // Number of contributors = -1 --> No tracklets
29 // Number of contributors = -2 --> No SPD recpoints
d681bb2d 30 virtual AliESDVertex* FindVertexForCurrentEvent(Int_t evnumb);
0c6af5c9 31 virtual void FindVertices();
32 virtual void PrintStatus() const;
33 void SetDiffPhiMax(Float_t pm = 0.01){fDiffPhiMax = pm;}
6fd990e3 34 void ConfigIterations(Int_t noiter=3,Float_t *ptr=0);
0c6af5c9 35 void SetFirstLayerModules(Int_t m1 = 0, Int_t m2 = 79){fFirstL1 = m1; fLastL1 = m2;}
36 void SetSecondLayerModules(Int_t m1 = 80, Int_t m2 = 239){fFirstL2 = m1; fLastL2 = m2;}
1fa72ea5 37 void SetLowLimit(Float_t lim=-20.){fLowLim = lim;}
38 void SetHighLimit(Float_t lim=20.){fHighLim = lim;}
0c6af5c9 39 Float_t GetLowLimit() const {return fLowLim;}
40 Float_t GetHighLimit() const {return fHighLim;}
41 void SetBinWidthCoarse(Float_t bw=0.01){fStepCoarse = bw;}
42 void SetBinWidthFine(Float_t bw=0.0005){fStepFine = bw;}
ecc64c3f 43 void SetPPsetting(Float_t cl2=250., Float_t coarsebin=0.02){fPPsetting[0]=cl2; fPPsetting[1]=coarsebin;}
0c6af5c9 44 Float_t GetBinWidthCoarse() const {return fStepCoarse;}
45 Float_t GetBinWidthFine() const {return fStepFine;}
46 void SetTolerance(Float_t tol = 20./10000.){fTolerance = tol;}
47 Float_t GetTolerance() const {return fTolerance;}
48
49 protected:
50 AliITSVertexerZ(const AliITSVertexerZ& vtxr);
51 AliITSVertexerZ& operator=(const AliITSVertexerZ& /* vtxr */);
52 void ResetHistograms();
6fd990e3 53 void VertexZFinder(Int_t evnumber);
54 Float_t GetPhiMaxIter(Int_t i) const {return fPhiDiffIter[i];}
0c6af5c9 55
56 Int_t fFirstL1; // first module of the first pixel layer used
57 Int_t fLastL1; // last module of the first pixel layer used
58 Int_t fFirstL2; // first module of the second pixel layer used
59 Int_t fLastL2; // last module of the second pixel layer used
60 Float_t fDiffPhiMax; // Maximum delta phi allowed among corr. pixels
61 Float_t fX0; // Nominal x coordinate of the vertex
62 Float_t fY0; // Nominal y coordinate of the vertex
0c6af5c9 63 Float_t fZFound; //! found value for the current event
64 Float_t fZsig; //! RMS of Z
65 TH1F *fZCombc; //! histogram with coarse z distribution
ecc64c3f 66 TH1F *fZCombv; //! histogram with very coarse z (step=3coarse)distribution
0c6af5c9 67 TH1F *fZCombf; //! histogram with fine z distribution
68 Float_t fLowLim; // low limit for fZComb histograms
69 Float_t fHighLim; // high limit for fZComb histograms
70 Float_t fStepCoarse; // bin width for fZCombc
71 Float_t fStepFine; // bin width for fZCombf
72 Float_t fTolerance; // tolerance on the symmetry of the Z interval
ecc64c3f 73 Float_t fPPsetting[2]; // [0] is the max. number of clusters on L2 to use [1] as fStepCoarse
6fd990e3 74 Int_t fMaxIter; // Maximum number of iterations (<=5)
75 Float_t fPhiDiffIter[5]; // Delta phi used in iterations
0c6af5c9 76
6fd990e3 77 ClassDef(AliITSVertexerZ,4);
0c6af5c9 78};
79
80#endif