* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.1 2002/01/08 09:59:34 morsch
-Readers for EMCAL primary particle input.
-
-*/
-
+/* $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 <TTree.h>
#include <TParticle.h>
+#include <TTree.h>
#include "AliGenReaderEcalHijing.h"
-#include "AliMC.h"
+
ClassImp(AliGenReaderEcalHijing)
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];
AliGenReaderEcalHijing& AliGenReaderEcalHijing::operator=(const AliGenReaderEcalHijing& rhs)
{
// Assignment operator
- return *this;
+ rhs.Copy(*this);
+ return (*this);
+}
+
+void AliGenReaderEcalHijing::Copy(TObject&) const
+{
+ //
+ // Copy
+ //
+ Fatal("Copy","Not implemented!\n");
}