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