**************************************************************************/
/* $Id$ */
-
+//
+// Realisation of AliGenReader to be used with AliGenExtFile
+// It reads Hijing events from a ntuple like event structure.
+// The event format is defined in Init()
+// NextEvent() is used to loop over events and NextParticle() to loop over particles.
+// Author: andreas.morsch@cern.ch
+//
#include <TFile.h>
#include <TParticle.h>
#include <TTree.h>
TParticle* AliGenReaderEcalHijing::NextParticle()
{
- Float_t p[4];
// Read the next particle
+
+ Float_t p[4];
Int_t ipart = fKhij[fNparticle];
p[0] = fPxhij[fNparticle];
p[1] = fPyhij[fNparticle];
/* $Id$ */
+//
+// Realisation of AliGenReader to be used with AliGenExtFile
+// It reads Hijing events from a ntuple like event structure.
+// Author: andreas.morsch@cern.ch
+//
#include "AliGenReader.h"
virtual Int_t NextEvent();
virtual TParticle* NextParticle();
AliGenReaderEcalHijing & operator=(const AliGenReaderEcalHijing & rhs);
- private:
- void Copy(AliGenReaderEcalHijing&) const;
+
protected:
Int_t fNcurrent; // points to the next entry
- Int_t fNparticle; //
+ Int_t fNparticle; // number of particles
TTree *fTreeNtuple; // pointer to the TTree
//Declaration of leaves types
Float_t fPyhij[10000]; // py
Float_t fPzhij[10000]; // pz
Float_t fEhij[10000]; // energy
+ private:
+ void Copy(AliGenReaderEcalHijing&) const;
+
ClassDef(AliGenReaderEcalHijing,1) // Read particles from cwn-ntuple
};
#endif
**************************************************************************/
/* $Id$ */
-
+//
+// Realisation of AliGenReader to be used with AliGenExtFile
+// It reads Pythia Jet events from a ntuple like event structure.
+// The event format is defined in Init()
+// NextEvent() is used to loop over events and NextParticle() to loop over particles.
+// Author: andreas.morsch@cern.ch
+//
#include <TFile.h>
#include <TParticle.h>
#include <TTree.h>
TParticle* AliGenReaderEcalJets::NextParticle()
{
- Float_t p[4];
// Read the next particle
+
+ Float_t p[4];
Int_t ipart = fXid[fNparticle];
Float_t pt = fXpt[fNparticle];
Float_t eta = fXeta[fNparticle];
* See cxx source for full Copyright notice */
/* $Id$ */
-
+//
+// Realisation of AliGenReader to be used with AliGenExtFile
+// It reads Hijing events from a ntuple like event structure.
+// Author: andreas.morsch@cern.ch
+//
#include "AliGenReader.h"
virtual Int_t NextEvent();
virtual TParticle* NextParticle();
AliGenReaderEcalJets & operator=(const AliGenReaderEcalJets & rhs);
- private:
- void Copy(AliGenReaderEcalJets&) const;
+
protected:
Int_t fNcurrent; // points to the next event
Int_t fNparticle; // points to the next particle
Int_t fNev; // event number
- Float_t fX[2]; //
+ Float_t fX[2]; // vertex ?
Int_t fXtyp[2]; // parton type
Int_t fNpart; // number of particles
Float_t fXpt[200]; // pt of particle
Float_t fJset[10]; // E_t of cluster
Float_t fJseta[10]; // eta of cluster
Float_t fJsphi[10]; // phi of cluster
- Int_t fNpjet; // ?
- Float_t fJpet[10]; // ?
- Float_t fJpeta[10]; // ?
- Float_t fJpphi[10]; // ?
+ Int_t fNpjet; // Jet p
+ Float_t fJpet[10]; // Jet Et
+ Float_t fJpeta[10]; // Jet eta
+ Float_t fJpphi[10]; // Jet phi
+ TTree *fTreeNtuple; // pointer to the TTree
- TTree *fTreeNtuple; // pointer to the TTree
- //Declaration of leaves types
+ private:
+ void Copy(AliGenReaderEcalJets&) const;
ClassDef(AliGenReaderEcalJets,1) // Read particles from cwn-ntuple
};
#endif