]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVGEN/AliGenReaderCwn.h
Don't delete data member from AliGenCocktail. (G. Martinez)
[u/mrichter/AliRoot.git] / EVGEN / AliGenReaderCwn.h
1 #ifndef ALIGENREADERCWN_H
2 #define ALIGENREADERCWN_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 //
9 // Realisation of AliGenReader to be used with AliGenExtFile
10 // It reads events from a ntuple like event structure.
11 // Author: andreas.morsch@cern.ch
12 //
13 #include "AliGenReader.h"
14
15
16 class AliGenReaderCwn : public AliGenReader
17 {
18  public:
19     AliGenReaderCwn();
20     
21     AliGenReaderCwn(const AliGenReaderCwn &reader):AliGenReader(reader)
22         {reader.Copy(*this);}
23     virtual ~AliGenReaderCwn();
24         // Initialise 
25     virtual void Init();
26     // Read
27     virtual Int_t NextEvent();
28     virtual TParticle*  NextParticle();
29     virtual void RewindEvent(){;}
30     AliGenReaderCwn & operator=(const AliGenReaderCwn & rhs);
31     
32  protected:
33     Int_t             fNcurrent;      // points to the next entry
34     Int_t             fNparticle;     // particle number in event
35     Int_t             fNparticleMax;  // number of particles in event    
36     TTree            *fTreeNtuple;    // pointer to the TTree
37     //Declaration of leaves types
38     Int_t           fNihead;          // Number of entries in integer header  
39     Int_t           fIhead[12];       // Integer header
40     Int_t           fNrhead;          // Number of entries in float header
41     Float_t         fRhead[6];        // Float header
42     UInt_t          fIdpart;          // Particle type
43     Float_t         fTheta;           // Theta 
44     Float_t         fPhi;             // Phi
45     Float_t         fP;               // Total momentum
46     Float_t         fE;               // Total energy
47  private:
48     void Copy(TObject&) const;
49     ClassDef(AliGenReaderCwn,1) // Read particles from cwn-ntuple
50 };
51 #endif
52
53
54
55
56
57