]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenReaderEcalHijing.h
Changes for #82873: Module debugging broken (Christian)
[u/mrichter/AliRoot.git] / EVGEN / AliGenReaderEcalHijing.h
index a4382a4a90af1296126deee90e587aaeb7ee04d7..b9af2ed60b8c498ba2a286bb4ff3f570b51bf954 100644 (file)
@@ -5,6 +5,11 @@
 
 /* $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"
 
 
@@ -13,20 +18,19 @@ class AliGenReaderEcalHijing : public AliGenReader
  public:
     AliGenReaderEcalHijing();
     
-    AliGenReaderEcalHijing(const AliGenReaderEcalHijing &reader):AliGenReader(reader)
-       {reader.Copy(*this);}
+    AliGenReaderEcalHijing(const AliGenReaderEcalHijing &reader);
     virtual ~AliGenReaderEcalHijing(){;}
     // Initialise 
     virtual void Init();
     // Read
     virtual Int_t NextEvent();
     virtual TParticle*  NextParticle();
+    virtual void RewindEvent(){;}
     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
@@ -38,6 +42,9 @@ class AliGenReaderEcalHijing : public AliGenReader
     Float_t         fPyhij[10000];    // py
     Float_t         fPzhij[10000];    // pz
     Float_t         fEhij[10000];     // energy
+ private:
+    void Copy(TObject&) const;
+    
     ClassDef(AliGenReaderEcalHijing,1) // Read particles from cwn-ntuple
 };
 #endif