]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSVertexerPPZ.h
Adding MUON HLT code to the repository.
[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
16class AliITS;
17class TH1F;
18class TArrayF;
19
20class AliITSVertexerPPZ : public AliITSVertexer {
21
22 public:
23 AliITSVertexerPPZ();
88cb7938 24 AliITSVertexerPPZ(TString fn, Float_t x0=0., Float_t y0=0.); // standard constructor
c5f0f3c1 25 virtual ~AliITSVertexerPPZ(); // destructor
d681bb2d 26 virtual AliESDVertex* FindVertexForCurrentEvent(Int_t event);
c5f0f3c1 27 virtual void FindVertices();
28 virtual Float_t GetZFound() const {return fZFound;}
29 virtual Float_t GetZsig() const {return fZsig;}
30 virtual void PrintStatus() const;
c95d6417 31 virtual void SetDiffPhiMax(Float_t pm = 0.05){fDiffPhiMax = pm;}
c5f0f3c1 32 virtual void SetFirstLayerModules(Int_t m1 = 0, Int_t m2 = 79){fFirstL1 = m1; fLastL1 = m2;}
33 virtual void SetSecondLayerModules(Int_t m1 = 80, Int_t m2 = 239){fFirstL2 = m1; fLastL2 = m2;}
c95d6417 34 virtual void SetWindow(Float_t w=3.){fWindow = w;}
35 static Float_t Curv(Double_t x1,Double_t y1, Double_t x2,Double_t y2,
36 Double_t x3,Double_t y3);
c5f0f3c1 37
38 private:
39 void EvalZ(TH1F *hist,Int_t sepa, Int_t ncoinc, TArrayF *zval);
40
41 protected:
42 Int_t fFirstL1; // first module of the first pixel layer
43 Int_t fLastL1; // last module of the first pixel layer
44 Int_t fFirstL2; // first module of the second pixel layer
45 Int_t fLastL2; // last module of the second pixel layer
46 Float_t fDiffPhiMax; // Maximum delta phi allowed among corr. pixels
47 Float_t fX0; // Nominal x coordinate of the vertex
48 Float_t fY0; // Nominal y coordinate of the vertex
49 AliITS *fITS; //! pointer to the AliITS object
50 Float_t fZFound; //! found value for the current event
51 Float_t fZsig; //! RMS of Z
c95d6417 52 Float_t fWindow; // window width for Z search in mm (3 mm by def.)
c5f0f3c1 53
54
c95d6417 55 ClassDef(AliITSVertexerPPZ,2);
c5f0f3c1 56};
57
58#endif