#ifndef ALIITSVERTEXERPPZ_H
#define ALIITSVERTEXERPPZ_H
+/* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
#include <AliITSVertexer.h>
// //
/////////////////////////////////////////////////////////////////////
-class AliITS;
class TH1F;
class TArrayF;
public:
AliITSVertexerPPZ();
- AliITSVertexerPPZ(TFile *infile, TFile *outfile, Float_t x0=0., Float_t y0=0.); // standard constructor
+ AliITSVertexerPPZ(TString fn, Float_t x0=0., Float_t y0=0.); // standard constructor
virtual ~AliITSVertexerPPZ(); // destructor
- virtual AliITSVertex* FindVertexForCurrentEvent(Int_t event);
+ virtual AliESDVertex* FindVertexForCurrentEvent(Int_t event);
virtual void FindVertices();
virtual Float_t GetZFound() const {return fZFound;}
virtual Float_t GetZsig() const {return fZsig;}
virtual void PrintStatus() const;
- virtual void SetDiffPhiMax(Float_t pm = 0.01){fDiffPhiMax = pm;}
+ virtual void SetDiffPhiMax(Float_t pm = 0.05){fDiffPhiMax = pm;}
virtual void SetFirstLayerModules(Int_t m1 = 0, Int_t m2 = 79){fFirstL1 = m1; fLastL1 = m2;}
virtual void SetSecondLayerModules(Int_t m1 = 80, Int_t m2 = 239){fFirstL2 = m1; fLastL2 = m2;}
+ virtual void SetWindow(Float_t w=3.){fWindow = w;}
+ static Float_t Curv(Double_t x1,Double_t y1, Double_t x2,Double_t y2,
+ Double_t x3,Double_t y3);
- private:
- void EvalZ(TH1F *hist,Int_t sepa, Int_t ncoinc, TArrayF *zval);
protected:
Int_t fFirstL1; // first module of the first pixel layer
Float_t fDiffPhiMax; // Maximum delta phi allowed among corr. pixels
Float_t fX0; // Nominal x coordinate of the vertex
Float_t fY0; // Nominal y coordinate of the vertex
- AliITS *fITS; //! pointer to the AliITS object
+ //AliITS *fITS; //! pointer to the AliITS object
Float_t fZFound; //! found value for the current event
Float_t fZsig; //! RMS of Z
+ Float_t fWindow; // window width for Z search in mm (3 mm by def.)
+ private:
+ void EvalZ(TH1F *hist,Int_t sepa, Int_t ncoinc, TArrayF *zval);
- ClassDef(AliITSVertexerPPZ,1);
+ ClassDef(AliITSVertexerPPZ,3);
};
#endif