]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Method RewindEvent() added. (N. Carrer)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 26 Apr 2002 10:37:23 +0000 (10:37 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 26 Apr 2002 10:37:23 +0000 (10:37 +0000)
EVGEN/AliGenReader.cxx
EVGEN/AliGenReader.h
EVGEN/AliGenReaderTreeK.cxx
EVGEN/AliGenReaderTreeK.h

index dee0eb0b14be6929eae0739b79e58cad2b06717d..970bb782035e87c5306aa2897563140ca0b296d9 100644 (file)
 
 /*
 $Log$
+Revision 1.1  2001/11/09 09:09:59  morsch
+Base class with responsibility to read events and particles from a file. To be used
+with AliGenExtFile.
+
 */
 #include "AliGenReader.h"
 ClassImp(AliGenReader)
@@ -26,9 +30,9 @@ AliGenReader& AliGenReader::operator=(const  AliGenReader& rhs)
     return *this;
 }
 
-
-
-
-
-
-
+void AliGenReader::RewindEvent()
+{
+  // Go back to the first particle of the event.
+  // Need to be implemented in the implementation classes. Interface dies.
+  Fatal("AliGenReader::RewindEvent","\nMethod RewindEvent not present in the implementation class.\n");
+}
index dbfdbb372c71a9629a9aa40f06b57abb6ee7b7b7..14130ab6cfc3753c3199ab796ebf31f39718cb60 100644 (file)
@@ -25,7 +25,8 @@ class AliGenReader : public TObject
     enum Code_t {kPDG, kGEANT3};
     void SetParticleCode(Code_t code) {fCode = code;}
     virtual TParticle* NextParticle(){return NULL;}
-    
+    virtual void RewindEvent();
+        
     AliGenReader & operator=(const AliGenReader & rhs);
  protected:
     const Text_t *fFileName;      // Name of file to read from
index b269972d9ccdba4ee4a00b342210036f31b63c31..4b7a5119e1238744a3266f38c1471035cd0650ed 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.4  2002/03/22 08:25:33  morsch
+TreeE connected correctly.
+
 Revision 1.3  2001/12/12 11:21:37  morsch
 Dummy copy constructor added.
 
@@ -112,6 +115,11 @@ TParticle* AliGenReaderTreeK::NextParticle()
     return part;
 }
 
+void AliGenReaderTreeK::RewindEvent()
+{
+  // Go back to the first particle of the event
+  fNparticle = 0;
+}
 
 
 AliGenReaderTreeK& AliGenReaderTreeK::operator=(const  AliGenReaderTreeK& rhs)
index f91a7c47a35f27e89080c95cfaa709d72e8ccc1f..1d78d301b207e7c55bd59bea5b419213acd673f9 100644 (file)
@@ -22,6 +22,7 @@ class AliGenReaderTreeK : public AliGenReader
     // Read
     virtual Int_t NextEvent();
     virtual TParticle*  NextParticle();
+    virtual void RewindEvent();
     AliGenReaderTreeK & operator=(const AliGenReaderTreeK & rhs);
     
  protected: