]>
Commit | Line | Data |
---|---|---|
f87cfe57 | 1 | #ifndef ALIGENEXTFILE_H |
2 | #define ALIGENEXTFILE_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
f87cfe57 | 8 | |
4f23c932 | 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. | |
675e9664 | 11 | // Author: andreas.morsch@cern.ch |
f87cfe57 | 12 | |
380956c5 | 13 | #include "AliGenMC.h" |
4a33c50d | 14 | class AliGenReader; |
15 | ||
a48e3376 | 16 | |
675e9664 | 17 | class TTree; |
693caace | 18 | |
380956c5 | 19 | class AliGenExtFile : public AliGenMC |
693caace | 20 | { |
f87cfe57 | 21 | public: |
22 | AliGenExtFile(); | |
23 | AliGenExtFile(Int_t npart); | |
93a2041b | 24 | virtual ~AliGenExtFile(); |
f87cfe57 | 25 | // Initialise |
a48e3376 | 26 | virtual void Init(); |
f87cfe57 | 27 | // generate event |
28 | virtual void Generate(); | |
a48e3376 | 29 | void SetReader(AliGenReader* reader) {fReader = reader;} |
2c354237 | 30 | protected: |
31 | void CdEventFile(); | |
a48e3376 | 32 | const Text_t *fFileName; //! File to read from |
33 | AliGenReader *fReader; //! Reader to read the file | |
93a2041b | 34 | |
35 | private: | |
36 | AliGenExtFile(const AliGenExtFile &ext); | |
37 | AliGenExtFile & operator=(const AliGenExtFile & rhs); | |
f87cfe57 | 38 | |
39 | ClassDef(AliGenExtFile,1) //Generate particles from external file | |
693caace | 40 | }; |
41 | #endif | |
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 |