]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenReaderTreeK.h
doxy: MUON macros, refs, src links, no coll graph
[u/mrichter/AliRoot.git] / EVGEN / AliGenReaderTreeK.h
index 9445417fe9e3434bd64db07415338d6d0edd0e16..5404698789be944392c5a28977cae95fa1c4c1da 100644 (file)
@@ -1,4 +1,4 @@
-#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                               */
@@ -10,7 +10,6 @@
 // Author: andreas.morsch@cern.ch
 //
 #include "AliGenReader.h"
-#include "AliStack.h"
 
 class TFile;
 class AliRunLoader;
@@ -30,10 +29,12 @@ class AliGenReaderTreeK : public AliGenReader
     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
@@ -54,12 +55,7 @@ class AliGenReaderTreeK : public AliGenReader
     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