]>
Commit | Line | Data |
---|---|---|
b152a071 | 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 */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
93de1f83 | 8 | // |
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 | |
12 | // | |
b152a071 | 13 | #include "AliGenReader.h" |
14 | ||
15 | ||
16 | class AliGenReaderEcalHijing : public AliGenReader | |
17 | { | |
18 | public: | |
19 | AliGenReaderEcalHijing(); | |
20 | ||
198bb1c7 | 21 | AliGenReaderEcalHijing(const AliGenReaderEcalHijing &reader):AliGenReader(reader) |
22 | {reader.Copy(*this);} | |
b152a071 | 23 | virtual ~AliGenReaderEcalHijing(){;} |
24 | // Initialise | |
25 | virtual void Init(); | |
26 | // Read | |
27 | virtual Int_t NextEvent(); | |
28 | virtual TParticle* NextParticle(); | |
e033748b | 29 | virtual void RewindEvent(){;} |
b152a071 | 30 | AliGenReaderEcalHijing & operator=(const AliGenReaderEcalHijing & rhs); |
93de1f83 | 31 | |
b152a071 | 32 | protected: |
33 | Int_t fNcurrent; // points to the next entry | |
93de1f83 | 34 | Int_t fNparticle; // number of particles |
b152a071 | 35 | |
36 | TTree *fTreeNtuple; // pointer to the TTree | |
37 | //Declaration of leaves types | |
38 | Int_t fNjatt; // Number of particles | |
39 | Int_t fNahij; // Number of particles in alice accept. | |
40 | Int_t fNphij; // ? | |
41 | Int_t fKhij[10000]; // particle code | |
42 | Float_t fPxhij[10000]; // px | |
43 | Float_t fPyhij[10000]; // py | |
44 | Float_t fPzhij[10000]; // pz | |
45 | Float_t fEhij[10000]; // energy | |
93de1f83 | 46 | private: |
dc1d768c | 47 | void Copy(TObject&) const; |
93de1f83 | 48 | |
b152a071 | 49 | ClassDef(AliGenReaderEcalHijing,1) // Read particles from cwn-ntuple |
50 | }; | |
51 | #endif | |
52 | ||
53 | ||
54 | ||
55 | ||
56 | ||
57 |