1 #ifndef ALIGENREADERECALHIJING_H
2 #define ALIGENREADERECALHIJING_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
9 // Realisation of AliGenReader to be used with AliGenExtFile
10 // It reads Hijing events from a ntuple like event structure.
11 // Author: andreas.morsch@cern.ch
13 #include "AliGenReader.h"
16 class AliGenReaderEcalHijing : public AliGenReader
19 AliGenReaderEcalHijing();
21 AliGenReaderEcalHijing(const AliGenReaderEcalHijing &reader);
22 virtual ~AliGenReaderEcalHijing(){;}
26 virtual Int_t NextEvent();
27 virtual TParticle* NextParticle();
28 virtual void RewindEvent(){;}
29 AliGenReaderEcalHijing & operator=(const AliGenReaderEcalHijing & rhs);
32 Int_t fNcurrent; // points to the next entry
33 Int_t fNparticle; // number of particles
35 TTree *fTreeNtuple; // pointer to the TTree
36 //Declaration of leaves types
37 Int_t fNjatt; // Number of particles
38 Int_t fNahij; // Number of particles in alice accept.
40 Int_t fKhij[10000]; // particle code
41 Float_t fPxhij[10000]; // px
42 Float_t fPyhij[10000]; // py
43 Float_t fPzhij[10000]; // pz
44 Float_t fEhij[10000]; // energy
46 void Copy(TObject&) const;
48 ClassDef(AliGenReaderEcalHijing,1) // Read particles from cwn-ntuple