]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliGenReader.h
Coding Rule violations corrected.
[u/mrichter/AliRoot.git] / EVGEN / AliGenReader.h
1 #ifndef ALIGENREADER_H
2 #define ALIGENREADER_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 #include "TObject.h"
9
10 class TParticle;
11
12 class AliGenReader : public TObject
13 {
14  public:
15     AliGenReader():fFileName(NULL),fCode(kPDG){;}
16     AliGenReader(const AliGenReader &reader)
17         :TObject(reader), fFileName(NULL), fCode(kPDG){reader.Copy(*this);}
18     virtual ~AliGenReader(){;}
19     // Initialise 
20     virtual void Init() {}
21     // set file name of data file
22     virtual void SetFileName(const Text_t *filname) {fFileName=filname;}
23     // Read
24     virtual Int_t NextEvent(){return 0;}
25     enum Code_t {kPDG, kGEANT3};
26     void SetParticleCode(Code_t code) {fCode = code;}
27     virtual TParticle* NextParticle(){return NULL;}
28     virtual void RewindEvent();
29     AliGenReader & operator=(const AliGenReader & rhs);
30  private:
31     void Copy(AliGenReader&) const;
32  protected:
33     const Text_t *fFileName;      // Name of file to read from
34     Code_t        fCode;          // Particle code type
35     
36     ClassDef(AliGenReader,1) //Generate particles from external file
37 };
38 #endif
39
40
41
42
43
44