-#ifndef ALIGENREADERTreeK_H
+#ifndef ALIGENREADERTREEK_H
#define ALIGENREADERTREEK_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
// Author: andreas.morsch@cern.ch
//
#include "AliGenReader.h"
-#include "AliStack.h"
class TFile;
class AliRunLoader;
virtual Int_t NextEvent();
virtual TParticle* NextParticle();
virtual void RewindEvent();
- virtual void SetOnlyPrimaries(Bool_t flag){fOnlyPrimaries = flag;}
+ virtual void SetFirstEvent(Int_t evt) {fNcurrent = evt;};
+ virtual void SetOnlyPrimaries(Bool_t flag) {fOnlyPrimaries = flag;}
AliGenReaderTreeK & operator=(const AliGenReaderTreeK & rhs);
void SetDirs(TObjArray* dirs){fDirs = dirs;} //sets array directories names
void AddDir(const char* dirname);
+ AliRunLoader * GetRunLoader() const {return fInRunLoader;}
protected:
Int_t fNcurrent; // points to the next entry
ClassDef(AliGenReaderTreeK,1) // Read particles from TreeK
};
-inline
-TParticle* AliGenReaderTreeK::GetParticle(Int_t i)
- {
- if (fStack && i<fNp) return fStack->Particle(i);
- return 0x0;
- }
+
#endif