]>
Commit | Line | Data |
---|---|---|
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 | ||
af7ba10c | 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 | ||
14248849 | 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: | |
af7ba10c | 28 | AliVertexGenFile(const AliVertexGenFile &vgf): |
29 | AliVertexGenerator(vgf) | |
30 | {Fatal("copy ctor","Not implemented\n");} | |
8364b0ef | 31 | AliVertexGenFile & operator=(const AliVertexGenFile &) |
af7ba10c | 32 | {Fatal("= operator","Not implemented\n"); return *this;} |
14248849 | 33 | TFile* fFile; //! galice file with vertices |
34 | TTree* fTree; //! tree with headers | |
35 | AliHeader* fHeader; //! event header | |
36 | Int_t fEventsPerEntry; // number of events with same vertex | |
37 | Int_t fEvent; //! current event number | |
38 | ||
39 | ClassDef(AliVertexGenFile, 1) // generator for vertices taken from a file | |
40 | }; | |
41 | ||
42 | #endif | |
43 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
49 | ||
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
55 | ||
56 |