]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVGEN/AliGenReaderCwn.h
Changes needed on Sun with Root v4-03-04
[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
0af12c00 8//
9// Realisation of AliGenReader to be used with AliGenExtFile
10// It reads events from a ntuple like event structure.
11// Author: andreas.morsch@cern.ch
12//
f24650c5 13#include "AliGenReader.h"
2524c56f 14#include <Rtypes.h>
f24650c5 15
16
17class AliGenReaderCwn : public AliGenReader
18{
19 public:
20 AliGenReaderCwn();
21
198bb1c7 22 AliGenReaderCwn(const AliGenReaderCwn &reader):AliGenReader(reader)
23 {reader.Copy(*this);}
ae872676 24 virtual ~AliGenReaderCwn();
25 // Initialise
f24650c5 26 virtual void Init();
27 // Read
28 virtual Int_t NextEvent();
29 virtual TParticle* NextParticle();
e033748b 30 virtual void RewindEvent(){;}
ae872676 31 AliGenReaderCwn & operator=(const AliGenReaderCwn & rhs);
198bb1c7 32
f24650c5 33 protected:
34 Int_t fNcurrent; // points to the next entry
35 Int_t fNparticle; // particle number in event
36 Int_t fNparticleMax; // number of particles in event
37 TTree *fTreeNtuple; // pointer to the TTree
38 //Declaration of leaves types
39 Int_t fNihead; // Number of entries in integer header
40 Int_t fIhead[12]; // Integer header
41 Int_t fNrhead; // Number of entries in float header
42 Float_t fRhead[6]; // Float header
43 UInt_t fIdpart; // Particle type
44 Float_t fTheta; // Theta
45 Float_t fPhi; // Phi
46 Float_t fP; // Total momentum
47 Float_t fE; // Total energy
0af12c00 48 private:
dc1d768c 49 void Copy(TObject&) const;
f24650c5 50 ClassDef(AliGenReaderCwn,1) // Read particles from cwn-ntuple
51};
52#endif
53
54
55
56
57
58