New classes to handle the vertex in simulation (T.Kuhr)
[u/mrichter/AliRoot.git] / EVGEN / AliVertexGenFile.h
CommitLineData
14248849 1#ifndef ALIVERTEXGENFILE_H
2#define ALIVERTEXGENFILE_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8#include "AliVertexGenerator.h"
9
10class TFile;
11class TTree;
12class AliHeader;
13
14
15class AliVertexGenFile: public AliVertexGenerator {
16 public:
17 AliVertexGenFile();
18 AliVertexGenFile(const char* fileName, Int_t eventsPerEntry = 1);
19 virtual ~AliVertexGenFile();
20
21 virtual TVector3 GetVertex();
22
23 private:
24 TFile* fFile; //! galice file with vertices
25 TTree* fTree; //! tree with headers
26 AliHeader* fHeader; //! event header
27 Int_t fEventsPerEntry; // number of events with same vertex
28 Int_t fEvent; //! current event number
29
30 ClassDef(AliVertexGenFile, 1) // generator for vertices taken from a file
31};
32
33#endif
34
35
36
37
38
39
40
41
42
43
44
45
46
47