/*
$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)
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");
+}
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
/*
$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.
return part;
}
+void AliGenReaderTreeK::RewindEvent()
+{
+ // Go back to the first particle of the event
+ fNparticle = 0;
+}
AliGenReaderTreeK& AliGenReaderTreeK::operator=(const AliGenReaderTreeK& rhs)
// Read
virtual Int_t NextEvent();
virtual TParticle* NextParticle();
+ virtual void RewindEvent();
AliGenReaderTreeK & operator=(const AliGenReaderTreeK & rhs);
protected: