1 #ifndef ALIITSVERTEXER_H
2 #define ALIITSVERTEXER_H
4 #include<AliVertexer.h>
6 ///////////////////////////////////////////////////////////////////
8 // Base class for primary vertex reconstruction for ITS //
10 ///////////////////////////////////////////////////////////////////
16 class AliITSVertexer : public AliVertexer {
19 // default constructor
21 virtual ~AliITSVertexer();
22 virtual AliESDVertex *FindVertexForCurrentEvent(TTree *itsClusterTree)=0;
23 virtual void PrintStatus() const = 0;
25 void FindMultiplicity(TTree *itsClusterTree);
26 void SetFirstEvent(Int_t ev){fFirstEvent = ev;}
27 void SetLastEvent(Int_t ev){fLastEvent = ev;}
28 const Float_t GetPipeRadius()const {return fgkPipeRadius;}
29 void SetLaddersOnLayer2(Int_t ladwid=4);
30 virtual void SetUseModule(Int_t imod, Bool_t optUse){
31 if(imod>=0 && imod<kNSPDMod) fUseModule[imod]=optUse;
33 virtual Bool_t IsModuleUsed(Int_t imod) const {
34 if(imod>=0 && imod<kNSPDMod) return fUseModule[imod];
39 // Methods containing run-loaders, should be moved to some other class
40 void Init(TString filename);
41 void WriteCurrentVertex();
45 static const Float_t fgkPipeRadius; // beam pipe radius (cm)
46 UShort_t *fLadders; // array with layer1-layer2 ladders correspondances
47 Int_t fLadOnLay2; // (2*fLadOnLay2+1)=number of layer2 ladders
48 // associated to a layer1 ladder
49 Bool_t fUseModule[kNSPDMod]; // flag for enabling/disabling SPD modules
52 // copy constructor (NO copy allowed: the constructor is protected
54 AliITSVertexer(const AliITSVertexer& vtxr);
55 // assignment operator (NO assignment allowed)
56 AliITSVertexer& operator=(const AliITSVertexer& /* vtxr */);
58 Int_t fFirstEvent; // First event to be processed by FindVertices
59 Int_t fLastEvent; // Last event to be processed by FindVertices
61 ClassDef(AliITSVertexer,6);