]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSVertexerPPZ.h
Replacing array of objects by array of pointers
[u/mrichter/AliRoot.git] / ITS / AliITSVertexerPPZ.h
CommitLineData
c5f0f3c1 1#ifndef ALIITSVERTEXERPPZ_H
2#define ALIITSVERTEXERPPZ_H
c95d6417 3/* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
c5f0f3c1 6
7#include <AliITSVertexer.h>
8
9/////////////////////////////////////////////////////////////////////
10// //
11// Class for primary vertex Z coordinate reconstruction //
12// Optimized for p-p events (in general: low multiplicity events) //
13// //
14/////////////////////////////////////////////////////////////////////
15
c5f0f3c1 16class TH1F;
17class TArrayF;
18
19class AliITSVertexerPPZ : public AliITSVertexer {
20
21 public:
22 AliITSVertexerPPZ();
88cb7938 23 AliITSVertexerPPZ(TString fn, Float_t x0=0., Float_t y0=0.); // standard constructor
c5f0f3c1 24 virtual ~AliITSVertexerPPZ(); // destructor
d681bb2d 25 virtual AliESDVertex* FindVertexForCurrentEvent(Int_t event);
c5f0f3c1 26 virtual void FindVertices();
27 virtual Float_t GetZFound() const {return fZFound;}
28 virtual Float_t GetZsig() const {return fZsig;}
29 virtual void PrintStatus() const;
c95d6417 30 virtual void SetDiffPhiMax(Float_t pm = 0.05){fDiffPhiMax = pm;}
c5f0f3c1 31 virtual void SetFirstLayerModules(Int_t m1 = 0, Int_t m2 = 79){fFirstL1 = m1; fLastL1 = m2;}
32 virtual void SetSecondLayerModules(Int_t m1 = 80, Int_t m2 = 239){fFirstL2 = m1; fLastL2 = m2;}
c95d6417 33 virtual void SetWindow(Float_t w=3.){fWindow = w;}
34 static Float_t Curv(Double_t x1,Double_t y1, Double_t x2,Double_t y2,
35 Double_t x3,Double_t y3);
c5f0f3c1 36
c5f0f3c1 37
38 protected:
39 Int_t fFirstL1; // first module of the first pixel layer
40 Int_t fLastL1; // last module of the first pixel layer
41 Int_t fFirstL2; // first module of the second pixel layer
42 Int_t fLastL2; // last module of the second pixel layer
43 Float_t fDiffPhiMax; // Maximum delta phi allowed among corr. pixels
44 Float_t fX0; // Nominal x coordinate of the vertex
45 Float_t fY0; // Nominal y coordinate of the vertex
7d62fb64 46 //AliITS *fITS; //! pointer to the AliITS object
c5f0f3c1 47 Float_t fZFound; //! found value for the current event
48 Float_t fZsig; //! RMS of Z
c95d6417 49 Float_t fWindow; // window width for Z search in mm (3 mm by def.)
c5f0f3c1 50
7d62fb64 51 private:
52 void EvalZ(TH1F *hist,Int_t sepa, Int_t ncoinc, TArrayF *zval);
c5f0f3c1 53
7d62fb64 54 ClassDef(AliITSVertexerPPZ,3);
c5f0f3c1 55};
56
57#endif