]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVGEN/AliGenReader.h
Adaption to new fluka common blocks (E. Futo)
[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;}
d1d1da57 28 virtual void RewindEvent();
29
e20ef457 30 AliGenReader & operator=(const AliGenReader & rhs);
31 protected:
32 const Text_t *fFileName; // Name of file to read from
33 Code_t fCode; // Particle code type
34
35 ClassDef(AliGenReader,1) //Generate particles from external file
36};
37#endif
38
39
40
41
42
43