]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenReaderCwn.h
fix AliHLTGlobalEsdConverterComponent
[u/mrichter/AliRoot.git] / EVGEN / AliGenReaderCwn.h
index 25319262541b99e9c5d2d32c2b197eb44a2bab03..76939d8321f0a3fd0250d02dbb1130e2980d577e 100644 (file)
@@ -5,16 +5,20 @@
 
 /* $Id$ */
 
+//
+// Realisation of AliGenReader to be used with AliGenExtFile
+// It reads events from a ntuple like event structure.
+// Author: andreas.morsch@cern.ch
+//
 #include "AliGenReader.h"
+#include <Rtypes.h>
 
 
 class AliGenReaderCwn : public AliGenReader
 {
  public:
     AliGenReaderCwn();
-    
-    AliGenReaderCwn(const AliGenReaderCwn &reader):AliGenReader(reader)
-       {reader.Copy(*this);}
+    AliGenReaderCwn(const AliGenReaderCwn &reader);
     virtual ~AliGenReaderCwn();
         // Initialise 
     virtual void Init();
@@ -23,8 +27,6 @@ class AliGenReaderCwn : public AliGenReader
     virtual TParticle*  NextParticle();
     virtual void RewindEvent(){;}
     AliGenReaderCwn & operator=(const AliGenReaderCwn & rhs);
- private:
-    void Copy(AliGenReaderCwn&) const;
     
  protected:
     Int_t             fNcurrent;      // points to the next entry
@@ -41,6 +43,8 @@ class AliGenReaderCwn : public AliGenReader
     Float_t         fPhi;             // Phi
     Float_t         fP;               // Total momentum
     Float_t         fE;               // Total energy
+ private:
+    void Copy(TObject&) const;
     ClassDef(AliGenReaderCwn,1) // Read particles from cwn-ntuple
 };
 #endif