]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliGenExtFile.h
Adding comments (Laurent)
[u/mrichter/AliRoot.git] / EVGEN / AliGenExtFile.h
1 #ifndef ALIGENEXTFILE_H
2 #define ALIGENEXTFILE_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
9 // Event generator that can read events from a files.
10 // The reading is performed by a realisation of AliGenReader specific to the file format.
11 // Author: andreas.morsch@cern.ch
12
13 #include "AliGenMC.h"
14 #include "AliGenReader.h"
15
16 class TTree;
17
18 class AliGenExtFile : public AliGenMC
19 {
20  public:
21     AliGenExtFile();
22     AliGenExtFile(Int_t npart);
23      virtual ~AliGenExtFile();
24     // Initialise 
25     virtual void Init();
26     // generate event
27     virtual void Generate();
28     void SetReader(AliGenReader* reader) {fReader = reader;}
29  protected:
30     void CdEventFile();
31     const Text_t     *fFileName;      //! File to read from
32     AliGenReader     *fReader;        //! Reader to read the file
33
34  private:
35     AliGenExtFile(const AliGenExtFile &ext);
36     AliGenExtFile & operator=(const AliGenExtFile & rhs);
37     
38   ClassDef(AliGenExtFile,1) //Generate particles from external file
39 };
40 #endif
41
42
43
44
45
46