Fix for the case of non-existent calibration files
[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() {}
308c2f7c 23 virtual AliESDVertex* FindVertexForCurrentEvent(TTree *itsClusterTree);
24 virtual void PrintStatus() const;
b8ed1a92 25 void SetFirstLastModules(Int_t ilayer=0,Int_t m1=0,Int_t m2=79)
26 {fFirst[ilayer] = m1; fLast[ilayer] = m2;}
fb329096 27 void SetMaxDistOnOuterLayer(Double_t max=1.0) {fMaxDistOnOuterLayer=max;}
b8ed1a92 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];}
3acc14d5 31 void SetMinDist2Vtxs(Double_t mind=0.1) {fMinDist2Vtxs=mind;}
32 Double_t GetMinDist2Vtxs() const {return fMinDist2Vtxs;}
33
34 private:
35
b8ed1a92 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
3acc14d5 40 Double_t fMinDist2Vtxs; // minimum distance between two vertices
41
308c2f7c 42 ClassDef(AliITSVertexerCosmics,4); // vertexer for cosmics
3acc14d5 43};
44
45#endif