]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSVertexer.h
Print removed
[u/mrichter/AliRoot.git] / ITS / AliITSVertexer.h
index 0d5fa1f95fe681141031c0362f22e41e3c38dc64..2a4fb7de49f41b959e862c77b117a02a2d963231 100644 (file)
@@ -1,38 +1,29 @@
 #ifndef ALIITSVERTEXER_H
 #define ALIITSVERTEXER_H
 
-#include<TObject.h>
+#include<AliVertexer.h>
 
 ///////////////////////////////////////////////////////////////////
 //                                                               //
-// Base class for primary vertex reconstruction                  //
+// Base class for primary vertex reconstruction  for ITS         //
 //                                                               //
 ///////////////////////////////////////////////////////////////////
 
-class TFile;
 class TString;
-class TTRee;
-class AliESDVertex;
+class TClonesArray;
 
 
-class AliITSVertexer : public TObject {
+class AliITSVertexer : public AliVertexer {
 
  public:
     // default constructor
     AliITSVertexer();   
     // standard constructor     
     AliITSVertexer(TString filename); 
-    // destructor
-    virtual ~AliITSVertexer(); 
-    // computes the vertex for the current event
-    virtual AliESDVertex* FindVertexForCurrentEvent(Int_t evnumb)=0; 
-    // computes the vetex for each event and stores it on file
-    virtual void FindVertices()= 0;
-    virtual void PrintStatus() const = 0;
-    virtual void SetDebug(Int_t debug = 0){fDebug = debug;}
-    virtual void SetFirstEvent(Int_t ev){fFirstEvent = ev;}
-    virtual void SetLastEvent(Int_t ev){fLastEvent = ev;}
+    virtual void SetUseV2Clusters(Bool_t v2c){fUseV2Clusters = v2c;}
     virtual void WriteCurrentVertex();
+    virtual void Clusters2RecPoints(const TClonesArray *clusters, Int_t idx, TClonesArray *points);
 
  
  protected:
@@ -41,14 +32,9 @@ class AliITSVertexer : public TObject {
     AliITSVertexer(const AliITSVertexer& vtxr);
     // assignment operator (NO assignment allowed)
     AliITSVertexer& operator=(const AliITSVertexer& /* vtxr */);
+    Bool_t fUseV2Clusters;   // true if V2 clusters are used
 
-    AliESDVertex *fCurrentVertex;  //! pointer to the vertex of the current
-                                   //  event
-    Int_t fFirstEvent;          // First event to be processed by FindVertices
-    Int_t fLastEvent;           // Last event to be processed by FindVertices 
-    Int_t fDebug;               //! debug flag - verbose printing if >0
-
-  ClassDef(AliITSVertexer,1);
+  ClassDef(AliITSVertexer,2);
 };
 
 #endif