]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSVertexer.h
Coding conventions
[u/mrichter/AliRoot.git] / ITS / AliITSVertexer.h
index 056f620d6923d279e60b1bfe3ca254380ea3b8e4..58a110b54474cf2bdd21ca69f9eec8ae96028b86 100644 (file)
@@ -1,52 +1,38 @@
 #ifndef ALIITSVERTEXER_H
 #define ALIITSVERTEXER_H
 
-#include <TTree.h>
-#include <TFile.h>
-#include <AliITSVertex.h>
-#include <AliRun.h>
-
+#include<AliVertexer.h>
 
 ///////////////////////////////////////////////////////////////////
 //                                                               //
-// Base class for primary vertex reconstruction                  //
+// Base class for primary vertex reconstruction  for ITS         //
 //                                                               //
 ///////////////////////////////////////////////////////////////////
 
+class TString;
+class TClonesArray;
 
 
-class AliITSVertexer : public TObject {
+class AliITSVertexer : public AliVertexer {
 
  public:
     // default constructor
     AliITSVertexer();   
     // standard constructor     
-    AliITSVertexer(TFile *infile, TFile *outfile); 
-    // 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 fOutFile
-    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 SetInputFile(TFile *infile){fInFile = infile;}
-    virtual void SetOutputFile(TFile *outfile){fOutFile = outfile;}
+    AliITSVertexer(TString filename); 
+    virtual ~AliITSVertexer(){;}
     virtual void WriteCurrentVertex();
 
  
  protected:
-    AliITSVertex *fCurrentVertex;  //! pointer to the vertex of the current
-                                   //  event
-    TFile *fInFile;             //! pointer to the input file
-    TFile *fOutFile;            //! pointer to the output file
-    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);
+    // copy constructor (NO copy allowed: the constructor is protected
+    // to avoid misuse)
+    AliITSVertexer(const AliITSVertexer& vtxr);
+    // assignment operator (NO assignment allowed)
+    AliITSVertexer& operator=(const AliITSVertexer& /* vtxr */);
+
+  ClassDef(AliITSVertexer,3);
 };
 
 #endif