]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSVertexer.h
Switch on QA, as it seems it is not run by default anymore
[u/mrichter/AliRoot.git] / ITS / AliITSVertexer.h
1 #ifndef ALIITSVERTEXER_H
2 #define ALIITSVERTEXER_H
3
4 #include<AliVertexer.h>
5
6 ///////////////////////////////////////////////////////////////////
7 //                                                               //
8 // Base class for primary vertex reconstruction  for ITS         //
9 //                                                               //
10 ///////////////////////////////////////////////////////////////////
11
12 class TString;
13
14 class AliITSVertexer : public AliVertexer {
15
16  public:
17     // default constructor
18     AliITSVertexer();   
19     virtual ~AliITSVertexer();
20     virtual AliESDVertex *FindVertexForCurrentEvent(TTree *itsClusterTree)=0;
21     virtual void PrintStatus() const = 0;
22
23     void FindMultiplicity(TTree *itsClusterTree);
24     void SetFirstEvent(Int_t ev){fFirstEvent = ev;}
25     void SetLastEvent(Int_t ev){fLastEvent = ev;}
26     const Float_t GetPipeRadius()const {return fgkPipeRadius;}
27     void SetLaddersOnLayer2(Int_t ladwid=4);
28
29     // Methods containing run-loaders, should be moved to some other class
30     void Init(TString filename);
31     void WriteCurrentVertex();
32     void FindVertices();
33
34  protected:
35     static const Float_t fgkPipeRadius;  // beam pipe radius (cm)
36     UShort_t *fLadders; // array with layer1-layer2 ladders correspondances  
37     Int_t fLadOnLay2;   // (2*fLadOnLay2+1)=number of layer2 ladders 
38                       // associated to a layer1 ladder
39  
40  private:
41     // copy constructor (NO copy allowed: the constructor is protected
42     // to avoid misuse)
43     AliITSVertexer(const AliITSVertexer& vtxr);
44     // assignment operator (NO assignment allowed)
45     AliITSVertexer& operator=(const AliITSVertexer& /* vtxr */);
46
47     Int_t fFirstEvent;          // First event to be processed by FindVertices
48     Int_t fLastEvent;           // Last event to be processed by FindVertices 
49
50   ClassDef(AliITSVertexer,5);
51 };
52
53 #endif