]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSVertexerPPZ.h
Now have consistant definition of slope and intersept in line fit and
[u/mrichter/AliRoot.git] / ITS / AliITSVertexerPPZ.h
index f6e31769e2a1bd85d239be93c8049fa33b4e13ee..d33dc8be5b8f3bca9892d55ef8ec6f4dcffa8692 100644 (file)
@@ -1,5 +1,8 @@
 #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>
 
@@ -10,7 +13,6 @@
 //                                                                 //
 /////////////////////////////////////////////////////////////////////
 
-class AliITS;
 class TH1F; 
 class TArrayF;
 
@@ -18,19 +20,20 @@ class AliITSVertexerPPZ : public AliITSVertexer {
 
  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
@@ -40,12 +43,15 @@ class AliITSVertexerPPZ : public AliITSVertexer {
   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