]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliGenReaderTreeK.h
Memory leaks fixed. (M. Bondila)
[u/mrichter/AliRoot.git] / EVGEN / AliGenReaderTreeK.h
1 #ifndef ALIGENREADERTreeK_H
2 #define ALIGENREADERTREEK_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 "AliGenReader.h"
9 class TFile;
10 class AliStack;
11 class AliHeader;
12
13
14 class AliGenReaderTreeK : public AliGenReader
15 {
16  public:
17     AliGenReaderTreeK();
18     AliGenReaderTreeK(const AliGenReaderTreeK &reader){;}
19     virtual ~AliGenReaderTreeK();
20     // Initialise 
21     virtual void Init();
22     // Read
23     virtual Int_t NextEvent();
24     virtual TParticle*  NextParticle();
25     AliGenReaderTreeK & operator=(const AliGenReader & rhs);
26     
27  protected:
28     Int_t             fNcurrent;          // points to the next entry
29     Int_t             fNparticle;         // Next particle in list
30     Int_t             fNp;                // number of particles
31     TFile            *fFile;              //! pointer to file
32     TFile            *fBaseFile;          //! pointer to base file
33     AliStack         *fStack;             //! Particle stack
34     AliHeader        *fHeader;            //! Pointer to event header
35     TTree            *fTreeE;             //! Pointer to header tree
36     ClassDef(AliGenReaderTreeK,1) // Read particles from TreeK
37 };
38 #endif
39
40
41
42
43
44