1 #ifndef ALIITSVERTEXERCOSMICS_H
2 #define ALIITSVERTEXERCOSMICS_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 #include "AliITSVertexer.h"
8 //-----------------------------------------------------------------------
10 // Class for constructing a fake primary vertex for cosmics events
12 // Origin: A.Dainese andrea.dainese@lnl.infn.it
13 //-----------------------------------------------------------------------
17 class AliITSVertexerCosmics : public AliITSVertexer {
21 AliITSVertexerCosmics();
22 virtual ~AliITSVertexerCosmics() {}
23 virtual AliESDVertex* FindVertexForCurrentEvent(TTree *itsClusterTree);
24 virtual void PrintStatus() const;
25 void SetFirstLastModules(Int_t ilayer=0,Int_t m1=0,Int_t m2=79)
26 {fFirst[ilayer] = m1; fLast[ilayer] = m2;}
27 void SetMaxDistOnOuterLayer(Double_t max=1.0) {fMaxDistOnOuterLayer=max;}
28 Double_t GetMaxDistOnOuterLayer() const {return fMaxDistOnOuterLayer;}
29 void SetMaxVtxRadius(Int_t ilayer=0,Double_t maxr=3.5) {fMaxVtxRadius[ilayer]=maxr;}
30 Double_t GetMaVtxRadius(Int_t ilayer=0) const {return fMaxVtxRadius[ilayer];}
31 void SetMinDist2Vtxs(Double_t mind=0.1) {fMinDist2Vtxs=mind;}
32 Double_t GetMinDist2Vtxs() const {return fMinDist2Vtxs;}
36 Int_t fFirst[6]; // first module of each layer
37 Int_t fLast[6]; // last module of each layer
38 Double_t fMaxDistOnOuterLayer; // max dca between tracklet & outer layer cls
39 Double_t fMaxVtxRadius[6]; // maximum radial pos of vertex
40 Double_t fMinDist2Vtxs; // minimum distance between two vertices
42 ClassDef(AliITSVertexerCosmics,4); // vertexer for cosmics