]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliGenExtFile.h
fRefVolumeId for reference volume identification added.
[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 the old ALICE event format based on CW-ntuples
10 // http://consult.cern.ch/alice/Internal_Notes/1995/32/abstract
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     AliGenExtFile(const AliGenExtFile &ext);
24     virtual ~AliGenExtFile();
25     // Initialise 
26     virtual void Init();
27     // generate event
28     virtual void Generate();
29     AliGenExtFile & operator=(const AliGenExtFile & rhs);
30     void SetReader(AliGenReader* reader) {fReader = reader;}
31  protected:
32     void CdEventFile();
33  protected:    
34     const Text_t     *fFileName;      //! File to read from
35     AliGenReader     *fReader;        //! Reader to read the file
36     
37   ClassDef(AliGenExtFile,1) //Generate particles from external file
38 };
39 #endif
40
41
42
43
44
45