Updated macro
[u/mrichter/AliRoot.git] / ITS / AliITSVertexerCosmics.h
CommitLineData
3acc14d5 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 */
5
3acc14d5 6#include "AliITSVertexer.h"
7
8//-----------------------------------------------------------------------
9//
10// Class for constructing a fake primary vertex for cosmics events
11//
12// Origin: A.Dainese andrea.dainese@lnl.infn.it
13//-----------------------------------------------------------------------
14
15class AliESDVertex;
16
17class AliITSVertexerCosmics : public AliITSVertexer {
18
19 public:
20
21 AliITSVertexerCosmics();
22 virtual ~AliITSVertexerCosmics() {}
23 AliESDVertex* FindVertexForCurrentEvent(Int_t evnumb);
24 void FindVertices();
25 void PrintStatus() const;
b8ed1a92 26 void SetFirstLastModules(Int_t ilayer=0,Int_t m1=0,Int_t m2=79)
27 {fFirst[ilayer] = m1; fLast[ilayer] = m2;}
28 void SetMaxDistOnOuterLayer(Double_t max=0.1) {fMaxDistOnOuterLayer=max;}
29 Double_t GetMaxDistOnOuterLayer() const {return fMaxDistOnOuterLayer;}
30 void SetMaxVtxRadius(Int_t ilayer=0,Double_t maxr=3.5) {fMaxVtxRadius[ilayer]=maxr;}
31 Double_t GetMaVtxRadius(Int_t ilayer=0) const {return fMaxVtxRadius[ilayer];}
3acc14d5 32 void SetMinDist2Vtxs(Double_t mind=0.1) {fMinDist2Vtxs=mind;}
33 Double_t GetMinDist2Vtxs() const {return fMinDist2Vtxs;}
34
35 private:
36
b8ed1a92 37 Int_t fFirst[6]; // first module of each layer
38 Int_t fLast[6]; // last module of each layer
39 Double_t fMaxDistOnOuterLayer; // max dca between tracklet & outer layer cls
40 Double_t fMaxVtxRadius[6]; // maximum radial pos of vertex
3acc14d5 41 Double_t fMinDist2Vtxs; // minimum distance between two vertices
42
b8ed1a92 43 ClassDef(AliITSVertexerCosmics,2); // vertexer for cosmics
3acc14d5 44};
45
46#endif