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 */
8 #include "AliGenReader.h"
11 class AliGenReaderCwn : public AliGenReader
16 AliGenReaderCwn(const AliGenReaderCwn &reader):AliGenReader(reader)
18 virtual ~AliGenReaderCwn();
22 virtual Int_t NextEvent();
23 virtual TParticle* NextParticle();
24 virtual void RewindEvent(){;}
25 AliGenReaderCwn & operator=(const AliGenReaderCwn & rhs);
27 void Copy(AliGenReaderCwn&) const;
30 Int_t fNcurrent; // points to the next entry
31 Int_t fNparticle; // particle number in event
32 Int_t fNparticleMax; // number of particles in event
33 TTree *fTreeNtuple; // pointer to the TTree
34 //Declaration of leaves types
35 Int_t fNihead; // Number of entries in integer header
36 Int_t fIhead[12]; // Integer header
37 Int_t fNrhead; // Number of entries in float header
38 Float_t fRhead[6]; // Float header
39 UInt_t fIdpart; // Particle type
40 Float_t fTheta; // Theta
42 Float_t fP; // Total momentum
43 Float_t fE; // Total energy
44 ClassDef(AliGenReaderCwn,1) // Read particles from cwn-ntuple