]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenReaderCwn.h
Adding the full covariance matrix for the ITS space-points
[u/mrichter/AliRoot.git] / EVGEN / AliGenReaderCwn.h
index 9fb4ebb565e30c1de6f1c10975e857327ddcf3ed..95d4a60039d05cee5ef19f0b5a08bbf591bf2c00 100644 (file)
@@ -5,7 +5,13 @@
 
 /* $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
@@ -13,14 +19,17 @@ class AliGenReaderCwn : public AliGenReader
  public:
     AliGenReaderCwn();
     
-    AliGenReaderCwn(const AliGenReaderCwn &reader){;}
-    virtual ~AliGenReaderCwn(){;}
-    // Initialise 
+    AliGenReaderCwn(const AliGenReaderCwn &reader):AliGenReader(reader)
+       {reader.Copy(*this);}
+    virtual ~AliGenReaderCwn();
+        // Initialise 
     virtual void Init();
     // Read
     virtual Int_t NextEvent();
     virtual TParticle*  NextParticle();
-    AliGenReaderCwn & operator=(const AliGenReader & rhs){return *this;}
+    virtual void RewindEvent(){;}
+    AliGenReaderCwn & operator=(const AliGenReaderCwn & rhs);
+    
  protected:
     Int_t             fNcurrent;      // points to the next entry
     Int_t             fNparticle;     // particle number in event
@@ -36,6 +45,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