]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSVertexerPPZ.h
New primary vertex classes and macros (from A. Dainese and M. Masera)
[u/mrichter/AliRoot.git] / ITS / AliITSVertexerPPZ.h
CommitLineData
c5f0f3c1 1#ifndef ALIITSVERTEXERPPZ_H
2#define ALIITSVERTEXERPPZ_H
3
4#include <AliITSVertexer.h>
5
6/////////////////////////////////////////////////////////////////////
7// //
8// Class for primary vertex Z coordinate reconstruction //
9// Optimized for p-p events (in general: low multiplicity events) //
10// //
11/////////////////////////////////////////////////////////////////////
12
13class AliITS;
14class TH1F;
15class TArrayF;
16
17class AliITSVertexerPPZ : public AliITSVertexer {
18
19 public:
20 AliITSVertexerPPZ();
21 AliITSVertexerPPZ(TFile *infile, TFile *outfile, Float_t x0=0., Float_t y0=0.); // standard constructor
22 virtual ~AliITSVertexerPPZ(); // destructor
23 virtual AliITSVertex* FindVertexForCurrentEvent(Int_t event);
24 virtual void FindVertices();
25 virtual Float_t GetZFound() const {return fZFound;}
26 virtual Float_t GetZsig() const {return fZsig;}
27 virtual void PrintStatus() const;
28 virtual void SetDiffPhiMax(Float_t pm = 0.01){fDiffPhiMax = pm;}
29 virtual void SetFirstLayerModules(Int_t m1 = 0, Int_t m2 = 79){fFirstL1 = m1; fLastL1 = m2;}
30 virtual void SetSecondLayerModules(Int_t m1 = 80, Int_t m2 = 239){fFirstL2 = m1; fLastL2 = m2;}
31
32 private:
33 void EvalZ(TH1F *hist,Int_t sepa, Int_t ncoinc, TArrayF *zval);
34
35 protected:
36 Int_t fFirstL1; // first module of the first pixel layer
37 Int_t fLastL1; // last module of the first pixel layer
38 Int_t fFirstL2; // first module of the second pixel layer
39 Int_t fLastL2; // last module of the second pixel layer
40 Float_t fDiffPhiMax; // Maximum delta phi allowed among corr. pixels
41 Float_t fX0; // Nominal x coordinate of the vertex
42 Float_t fY0; // Nominal y coordinate of the vertex
43 AliITS *fITS; //! pointer to the AliITS object
44 Float_t fZFound; //! found value for the current event
45 Float_t fZsig; //! RMS of Z
46
47
48 ClassDef(AliITSVertexerPPZ,1);
49};
50
51#endif