X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EVGEN%2FAliGenReaderTreeK.h;h=8bb6cb004f2528d39df858f15074e9803dcd175b;hb=d8e3340cff237fb4a672db059e38bdd78b15c2ac;hp=9dda69c51ab87a1212ed05caec7f85e39b809897;hpb=198bb1c7ab5437cd36dc37692d7ad850220b43fd;p=u%2Fmrichter%2FAliRoot.git diff --git a/EVGEN/AliGenReaderTreeK.h b/EVGEN/AliGenReaderTreeK.h index 9dda69c51ab..8bb6cb004f2 100644 --- a/EVGEN/AliGenReaderTreeK.h +++ b/EVGEN/AliGenReaderTreeK.h @@ -4,13 +4,16 @@ * See cxx source for full Copyright notice */ /* $Id$ */ - +// +// Realisation of AliGenReader to be used with AliGenExtFile +// It reads events from a kinematics TreeK. +// Author: andreas.morsch@cern.ch +// #include "AliGenReader.h" -#include "AliStack.h" class TFile; -class AliHeader; class AliRunLoader; +class AliStack; class TString; class TObjArray; @@ -30,8 +33,8 @@ class AliGenReaderTreeK : public AliGenReader AliGenReaderTreeK & operator=(const AliGenReaderTreeK & rhs); void SetDirs(TObjArray* dirs){fDirs = dirs;} //sets array directories names void AddDir(const char* dirname); - private: - void Copy(AliGenReaderTreeK&) const; + AliRunLoader * GetRunLoader() const {return fInRunLoader;} + protected: Int_t fNcurrent; // points to the next entry Int_t fNparticle; // Next particle in list @@ -46,16 +49,12 @@ class AliGenReaderTreeK : public AliGenReader TString& GetDirName(Int_t entry); TParticle* GetParticle(Int_t i); - + private: + void Copy(TObject&) const; ClassDef(AliGenReaderTreeK,1) // Read particles from TreeK }; -inline -TParticle* AliGenReaderTreeK::GetParticle(Int_t i) - { - if (fStack && iParticle(i); - return 0x0; - } + #endif