]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSVertexer.h
Fix of parsing bug related to the reading of the calib header. Added consistency...
[u/mrichter/AliRoot.git] / ITS / AliITSVertexer.h
index 25a80e869396b2a71598b490796718d458d4cc11..dea1b0445b67dcc2062d98da1ae0d992eff1cbac 100644 (file)
@@ -1,38 +1,30 @@
 #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 AliITSVertex;
+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 AliITSVertex* 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 ~AliITSVertexer();
+    virtual void FindMultiplicity(Int_t evnumber);
     virtual void WriteCurrentVertex();
+    const Float_t GetPipeRadius()const {return fgkPipeRadius;}
+    virtual void SetLaddersOnLayer2(Int_t ladwid=4);
 
  
  protected:
@@ -42,13 +34,12 @@ class AliITSVertexer : public TObject {
     // assignment operator (NO assignment allowed)
     AliITSVertexer& operator=(const AliITSVertexer& /* vtxr */);
 
-    AliITSVertex *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
+    static const Float_t fgkPipeRadius;  // beam pipe radius (cm)
+    UShort_t *fLadders; // array with layer1-layer2 ladders correspondances  
+    Int_t fLadOnLay2;   // (2*fLadOnLay2+1)=number of layer2 ladders 
+                      // associated to a layer1 ladder
 
-  ClassDef(AliITSVertexer,1);
+  ClassDef(AliITSVertexer,4);
 };
 
 #endif