Base class with responsibility to read events and particles from a file. To be used
[u/mrichter/AliRoot.git] / EVGEN / AliGenReader.h
CommitLineData
e20ef457 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
10class TParticle;
11
12class AliGenReader : public TObject
13{
14 public:
15 AliGenReader(){;}
16 AliGenReader(const AliGenReader &reader){;}
17
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
29 AliGenReader & operator=(const AliGenReader & rhs);
30 protected:
31 const Text_t *fFileName; // Name of file to read from
32 Code_t fCode; // Particle code type
33
34 ClassDef(AliGenReader,1) //Generate particles from external file
35};
36#endif
37
38
39
40
41
42