]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/STEER/AliVertexGenFile.h
Update master to aliroot
[u/mrichter/AliRoot.git] / STEER / STEER / AliVertexGenFile.h
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 // Generator for vertices taken from a file
9 // The file name of the galice file is passed as argument
10 // to the constructor.
11
12 #include "AliVertexGenerator.h"
13
14 class TFile;
15 class TTree;
16 class AliHeader;
17
18
19 class AliVertexGenFile: public AliVertexGenerator {
20  public:
21   AliVertexGenFile();
22   AliVertexGenFile(const char* fileName, Int_t eventsPerEntry = 1);
23   virtual ~AliVertexGenFile();
24
25   virtual TVector3 GetVertex();
26
27  private:
28   AliVertexGenFile(const AliVertexGenFile &vgf);
29   //:     AliVertexGenerator(vgf)    {Fatal("copy ctor","Not implemented\n");}
30   AliVertexGenFile & operator=(const AliVertexGenFile &);
31   //    {Fatal("= operator","Not implemented\n"); return *this;}
32   TFile*           fFile;           //! galice file with vertices
33   TTree*           fTree;           //! tree with headers
34   AliHeader*       fHeader;         //! event header
35   Int_t            fEventsPerEntry; // number of events with same vertex
36   Int_t            fEvent;          //! current event number
37
38   ClassDef(AliVertexGenFile, 1)     // generator for vertices taken from a file
39 };
40
41 #endif
42
43
44
45
46
47
48
49
50
51
52
53
54
55