]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSVertexerZ.h
Replacing array of objects by array of pointers
[u/mrichter/AliRoot.git] / ITS / AliITSVertexerZ.h
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
12 class TFile;
13 class TString;
14 class AliESDVertex;
15 class TH1F;
16
17 class AliITSVertexerZ : public AliITSVertexer {
18
19  public:
20
21   AliITSVertexerZ();
22   AliITSVertexerZ(TString filename,Float_t x0=0., Float_t y0=0.);
23   virtual ~AliITSVertexerZ();
24   virtual AliESDVertex* FindVertexForCurrentEvent(Int_t evnumb);
25   virtual void FindVertices();
26   virtual void PrintStatus() const;
27   void SetDiffPhiMax(Float_t pm = 0.01){fDiffPhiMax = pm;}
28   void SetFirstLayerModules(Int_t m1 = 0, Int_t m2 = 79){fFirstL1 = m1; fLastL1 = m2;}
29   void SetSecondLayerModules(Int_t m1 = 80, Int_t m2 = 239){fFirstL2 = m1; fLastL2 = m2;}
30   void SetLowLimit(Float_t lim=-10.){fLowLim = lim;}
31   void SetHighLimit(Float_t lim=10.){fHighLim = lim;}
32   Float_t GetLowLimit() const {return fLowLim;}
33   Float_t GetHighLimit() const {return fHighLim;}
34   void SetBinWidthCoarse(Float_t bw=0.01){fStepCoarse = bw;}
35   void SetBinWidthFine(Float_t bw=0.0005){fStepFine = bw;}
36   Float_t GetBinWidthCoarse() const {return fStepCoarse;}
37   Float_t GetBinWidthFine() const {return fStepFine;}
38   void SetTolerance(Float_t tol = 20./10000.){fTolerance = tol;}
39   Float_t GetTolerance() const {return fTolerance;}
40
41  protected:
42   AliITSVertexerZ(const AliITSVertexerZ& vtxr);
43   AliITSVertexerZ& operator=(const AliITSVertexerZ& /* vtxr */);
44   void ResetHistograms();
45
46   Int_t fFirstL1;          // first module of the first pixel layer used
47   Int_t fLastL1;           // last module of the first pixel layer used
48   Int_t fFirstL2;          // first module of the second pixel layer used
49   Int_t fLastL2;           // last module of the second pixel layer used
50   Float_t fDiffPhiMax;     // Maximum delta phi allowed among corr. pixels
51   Float_t fX0;             // Nominal x coordinate of the vertex
52   Float_t fY0;             // Nominal y coordinate of the vertex
53   Float_t fZFound;         //! found value for the current event
54   Float_t fZsig;           //! RMS of Z
55   TH1F *fZCombc;           //! histogram with coarse z distribution
56   TH1F *fZCombf;           //! histogram with fine z distribution
57   Float_t fLowLim;         // low limit for fZComb histograms
58   Float_t fHighLim;        // high limit for fZComb histograms
59   Float_t fStepCoarse;     // bin width for fZCombc
60   Float_t fStepFine;       // bin width for fZCombf
61   Float_t fTolerance;      // tolerance on the symmetry of the Z interval 
62
63   ClassDef(AliITSVertexerZ,2);
64 };
65
66 #endif