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