Coding Rule violations corrected.
[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:
88cb7938 15 AliGenReader():fFileName(NULL),fCode(kPDG){;}
198bb1c7 16 AliGenReader(const AliGenReader &reader)
17 :TObject(reader), fFileName(NULL), fCode(kPDG){reader.Copy(*this);}
e20ef457 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();
e20ef457 29 AliGenReader & operator=(const AliGenReader & rhs);
198bb1c7 30 private:
31 void Copy(AliGenReader&) const;
e20ef457 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