Line data Source code
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 : class AliGenReader;
15 :
16 :
17 : class TTree;
18 :
19 : class AliGenExtFile : public AliGenMC
20 : {
21 : public:
22 : AliGenExtFile();
23 : AliGenExtFile(Int_t npart);
24 : virtual ~AliGenExtFile();
25 : // Initialise
26 : virtual void Init();
27 : // generate event
28 : virtual void Generate();
29 0 : void SetReader(AliGenReader* reader) {fReader = reader;}
30 0 : void SetStartEvent(Int_t startEvent) {fStartEvent = startEvent;}
31 0 : AliGenReader* Reader() const {return fReader;}
32 : protected:
33 : void CdEventFile();
34 : const Text_t *fFileName; //! File to read from
35 : AliGenReader *fReader; //! Reader to read the file
36 : Int_t fStartEvent; //! Start event number
37 :
38 : private:
39 : AliGenExtFile(const AliGenExtFile &ext);
40 : AliGenExtFile & operator=(const AliGenExtFile & rhs);
41 :
42 6 : ClassDef(AliGenExtFile,2) //Generate particles from external file
43 : };
44 : #endif
45 :
46 :
47 :
48 :
49 :
50 :
|