]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliVertexer.h
Introduction of equipment id map. The map is taken from simple ascii formatted file...
[u/mrichter/AliRoot.git] / STEER / AliVertexer.h
1 #ifndef ALIVERTEXER_H
2 #define ALIVERTEXER_H
3
4 #include<TObject.h>
5
6 ///////////////////////////////////////////////////////////////////
7 //                                                               //
8 // Base class for primary vertex reconstruction                  //
9 //                                                               //
10 ///////////////////////////////////////////////////////////////////
11
12 class TFile;
13 class TString;
14 class TTRee;
15 class AliESDVertex;
16
17
18 class AliVertexer : public TObject {
19
20  public:
21     // default constructor
22     AliVertexer();  
23  
24     // destructor
25     virtual ~AliVertexer(); 
26     // computes the vertex for the current event
27     virtual AliESDVertex* FindVertexForCurrentEvent(Int_t evnumb)=0; 
28     // computes the vetex for each event and stores it on file
29     virtual void FindVertices()= 0;
30     virtual void PrintStatus() const = 0;
31     virtual void SetDebug(Int_t debug = 0);
32     virtual void SetFirstEvent(Int_t ev){fFirstEvent = ev;}
33     virtual void SetLastEvent(Int_t ev){fLastEvent = ev;}
34     virtual void WriteCurrentVertex() = 0;
35
36  
37  protected:
38     // copy constructor (NO copy allowed: the constructor is protected
39     // to avoid misuse)
40     AliVertexer(const AliVertexer& vtxr);
41     // assignment operator (NO assignment allowed)
42     AliVertexer& operator=(const AliVertexer& /* vtxr */);
43
44     AliESDVertex *fCurrentVertex;  //! pointer to the vertex of the current
45                                    //  event
46     Int_t fFirstEvent;          // First event to be processed by FindVertices
47     Int_t fLastEvent;           // Last event to be processed by FindVertices 
48     Int_t fDebug;               //! debug flag - verbose printing if >0
49
50   ClassDef(AliVertexer,1);
51 };
52
53 #endif