]>
Commit | Line | Data |
---|---|---|
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 | const Text_t *fFileName; //! File to read from | |
33 | AliGenReader *fReader; //! Reader to read the file | |
34 | ||
35 | ClassDef(AliGenExtFile,1) //Generate particles from external file | |
36 | }; | |
37 | #endif | |
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 |