]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSVertexer.h
TEveJetCone moved to root/eve (piggyback on sync with ROOT trunk).
[u/mrichter/AliRoot.git] / ITS / AliITSVertexer.h
CommitLineData
c5f0f3c1 1#ifndef ALIITSVERTEXER_H
2#define ALIITSVERTEXER_H
3
2257f27e 4#include<AliVertexer.h>
ff44c37c 5#include "AliITSDetTypeRec.h"
c5f0f3c1 6
7///////////////////////////////////////////////////////////////////
8// //
2257f27e 9// Base class for primary vertex reconstruction for ITS //
c5f0f3c1 10// //
11///////////////////////////////////////////////////////////////////
12
8c42830a 13/* $Id$ */
14
41b19549 15class TString;
c5f0f3c1 16
2257f27e 17class AliITSVertexer : public AliVertexer {
c5f0f3c1 18
19 public:
20 // default constructor
21 AliITSVertexer();
27167524 22 virtual ~AliITSVertexer();
308c2f7c 23 virtual AliESDVertex *FindVertexForCurrentEvent(TTree *itsClusterTree)=0;
24 virtual void PrintStatus() const = 0;
25
26 void FindMultiplicity(TTree *itsClusterTree);
27 void SetFirstEvent(Int_t ev){fFirstEvent = ev;}
28 void SetLastEvent(Int_t ev){fLastEvent = ev;}
5af4a2d0 29 static Float_t GetPipeRadius() {return fgkPipeRadius;}
308c2f7c 30 void SetLaddersOnLayer2(Int_t ladwid=4);
8c42830a 31 virtual void SetUseModule(Int_t imod, Bool_t optUse){
32 if(imod>=0 && imod<kNSPDMod) fUseModule[imod]=optUse;
33 }
34 virtual Bool_t IsModuleUsed(Int_t imod) const {
35 if(imod>=0 && imod<kNSPDMod) return fUseModule[imod];
36 else return 0;
37 }
b96ee725 38
b93ef955 39 const AliITSDetTypeRec *GetDetTypeRec() const {return fDetTypeRec;}
ff44c37c 40 virtual void SetDetTypeRec(const AliITSDetTypeRec *ptr){fDetTypeRec = ptr;}
8c42830a 41 enum{kNSPDMod=240};
308c2f7c 42
43 // Methods containing run-loaders, should be moved to some other class
44 void Init(TString filename);
45 void WriteCurrentVertex();
46 void FindVertices();
c5f0f3c1 47
c5f0f3c1 48 protected:
308c2f7c 49 static const Float_t fgkPipeRadius; // beam pipe radius (cm)
50 UShort_t *fLadders; // array with layer1-layer2 ladders correspondances
51 Int_t fLadOnLay2; // (2*fLadOnLay2+1)=number of layer2 ladders
52 // associated to a layer1 ladder
8c42830a 53 Bool_t fUseModule[kNSPDMod]; // flag for enabling/disabling SPD modules
308c2f7c 54
55 private:
41b19549 56 // copy constructor (NO copy allowed: the constructor is protected
57 // to avoid misuse)
58 AliITSVertexer(const AliITSVertexer& vtxr);
59 // assignment operator (NO assignment allowed)
60 AliITSVertexer& operator=(const AliITSVertexer& /* vtxr */);
61
308c2f7c 62 Int_t fFirstEvent; // First event to be processed by FindVertices
ff44c37c 63 Int_t fLastEvent; // Last event to be processed by FindVertices
64 const AliITSDetTypeRec *fDetTypeRec; //! pointer to DetTypeRec
27167524 65
ff44c37c 66 ClassDef(AliITSVertexer,7);
c5f0f3c1 67};
68
69#endif