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 */
8 // Generator for vertices taken from a file
9 // The file name of the galice file is passed as argument
10 // to the constructor.
12 #include "AliVertexGenerator.h"
19 class AliVertexGenFile: public AliVertexGenerator {
22 AliVertexGenFile(const char* fileName, Int_t eventsPerEntry = 1);
23 virtual ~AliVertexGenFile();
25 virtual TVector3 GetVertex();
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
38 ClassDef(AliVertexGenFile, 1) // generator for vertices taken from a file