]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenReaderEcalHijing.cxx
Option to read gas pressure tables from LHC PR 674.
[u/mrichter/AliRoot.git] / EVGEN / AliGenReaderEcalHijing.cxx
index 7864818fb52f6077e6e7228d8276aa1dad8d2986..8483edd51e7976ebbeffd341debd09c9b9bf13b3 100644 (file)
  **************************************************************************/
 
 /* $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>
@@ -82,8 +88,9 @@ Int_t AliGenReaderEcalHijing::NextEvent()
 
 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];      
@@ -112,7 +119,7 @@ AliGenReaderEcalHijing& AliGenReaderEcalHijing::operator=(const  AliGenReaderEca
     return (*this);
 }
 
-void AliGenReaderEcalHijing::Copy(AliGenReaderEcalHijing&) const
+void AliGenReaderEcalHijing::Copy(TObject&) const
 {
     //
     // Copy