]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSVertexer3DTapan.h
Update for running on 2010 data (S. Beole')
[u/mrichter/AliRoot.git] / ITS / AliITSVertexer3DTapan.h
index 3f0c2f8c4e2854bc83541006b2530ac4fe67c92b..14210e10a96c4adea5198063e2b001bf2bc6e73c 100644 (file)
 //////////////////////////////////////////////////////////////////////////
 
 #include <TArrayD.h>
+#include "AliITSVertexer.h"
 
 class TTree;
 class AliESDVertex;
-class AliITSgeom;
 
-class AliITSVertexer3DTapan : public TObject {
+class AliITSVertexer3DTapan : public AliITSVertexer {
 public:
-  AliITSVertexer3DTapan(Int_t n=10000):fITSgeom(0),
-    fX1(n),fY1(n),fZ1(n), fPhi1(n), ficlu1(0),
-    fX2(n),fY2(n),fZ2(n), fPhi2(n), ficlu2(0) {;}
-  AliITSVertexer3DTapan(const AliITSgeom *g, Int_t n=10000): fITSgeom(g),
+  AliITSVertexer3DTapan(Int_t n=10000):
     fX1(n),fY1(n),fZ1(n), fPhi1(n), ficlu1(0),
     fX2(n),fY2(n),fZ2(n), fPhi2(n), ficlu2(0) {;}
   virtual ~AliITSVertexer3DTapan(){}
-
-  Int_t LoadClusters(TTree *cf);
-  void FindVertexForCurrentEvent(AliESDVertex *vtx);
+  virtual AliESDVertex *FindVertexForCurrentEvent(TTree *cTree);
+  virtual void PrintStatus() const {}
 
 protected:
+  void LoadClusters(TTree *cTree);
   void CalculatePhi(Float_t fx, Float_t fy, Float_t & phi);
   void CalculateVertex3d1(Double_t pos[3], Float_t cuts[3], Int_t &ncontr);
   void CalculateVertex3d2(Double_t pos[3], Float_t cuts[3], Int_t &ncontr, Double_t sigpos[3]);
@@ -51,8 +48,6 @@ private:
   AliITSVertexer3DTapan(AliITSVertexer3DTapan &);
   AliITSVertexer3DTapan& operator=(const AliITSVertexer3DTapan &);
 
-  const AliITSgeom *fITSgeom;   //the ITS geometry  
-
   TArrayD fX1;     // X position of cluster on layer 1 of ITS
   TArrayD fY1;     // Y position of cluster on layer 1 of ITS
   TArrayD fZ1;     // Z position of cluster on layer 1 of ITS
@@ -65,7 +60,7 @@ private:
   TArrayD fPhi2;    // Phi position of cluster on layer 2 of ITS
   Int_t   ficlu2;    // Number of clusters on layer 2 of ITS
    
-  ClassDef(AliITSVertexer3DTapan,1);
+  ClassDef(AliITSVertexer3DTapan,3);
 };
 
 #endif