]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - EVGEN/AliGenReaderEcalJets.h
Allowing modularity of the MUON geometry during the generation (geant) phase with...
[u/mrichter/AliRoot.git] / EVGEN / AliGenReaderEcalJets.h
... / ...
CommitLineData
1#ifndef ALIGENREADERECALJETS_H
2#define ALIGENREADERECALJETS_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// Realisation of AliGenReader to be used with AliGenExtFile
9// It reads Hijing events from a ntuple like event structure.
10// Author: andreas.morsch@cern.ch
11//
12#include "AliGenReader.h"
13
14
15class AliGenReaderEcalJets : public AliGenReader
16{
17 public:
18 AliGenReaderEcalJets();
19
20 AliGenReaderEcalJets(const AliGenReaderEcalJets &reader):AliGenReader(reader)
21 {reader.Copy(*this);}
22 virtual ~AliGenReaderEcalJets(){;}
23 // Initialise
24 virtual void Init();
25 // Read
26 virtual Int_t NextEvent();
27 virtual TParticle* NextParticle();
28 virtual void RewindEvent(){;}
29 AliGenReaderEcalJets & operator=(const AliGenReaderEcalJets & rhs);
30
31 protected:
32 Int_t fNcurrent; // points to the next event
33 Int_t fNparticle; // points to the next particle
34 Int_t fNev; // event number
35 Float_t fX[2]; // vertex ?
36 Int_t fXtyp[2]; // parton type
37 Int_t fNpart; // number of particles
38 Float_t fXpt[200]; // pt of particle
39 Float_t fXeta[200]; // eta of particle
40 Float_t fXphi[200]; // phi of particle
41 Int_t fXid[200]; // id of particle
42 Int_t fNjet; // number of jets
43 Float_t fJet[10]; // E_t of jet
44 Float_t fJeta[10]; // eta of jet
45 Float_t fJphi[10]; // phi of jet
46 Int_t fNsjet; // number of clusters
47 Float_t fJset[10]; // E_t of cluster
48 Float_t fJseta[10]; // eta of cluster
49 Float_t fJsphi[10]; // phi of cluster
50 Int_t fNpjet; // Jet p
51 Float_t fJpet[10]; // Jet Et
52 Float_t fJpeta[10]; // Jet eta
53 Float_t fJpphi[10]; // Jet phi
54 TTree *fTreeNtuple; // pointer to the TTree
55
56 private:
57 void Copy(TObject&) const;
58 ClassDef(AliGenReaderEcalJets,1) // Read particles from cwn-ntuple
59};
60#endif
61
62
63
64
65
66