From 98359a675ce755bfb725d9022c4a5fc5e814bb61 Mon Sep 17 00:00:00 2001 From: morsch Date: Thu, 11 Dec 2008 08:37:45 +0000 Subject: [PATCH] Bug fix for GetLatestEvent() --- STEER/AliMultiAODInputHandler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/STEER/AliMultiAODInputHandler.h b/STEER/AliMultiAODInputHandler.h index 3b922879d92..0e4e1e3fa35 100644 --- a/STEER/AliMultiAODInputHandler.h +++ b/STEER/AliMultiAODInputHandler.h @@ -26,12 +26,12 @@ class AliMultiAODInputHandler : public AliInputEventHandler { void SetEventPool(AliVEventPool* pool) {fEventPool = pool;} Int_t GetBufferSize() const {return fBufferSize;} Int_t GetNBuffered() const {return fNBuffered;} - Bool_t IsBufferReady() const {return (fNBuffered >= fBufferSize);} + Bool_t IsBufferReady() const {return (fNBuffered >= (fBufferSize -1));} Bool_t IsFreshBuffer() const {return (fIndex == (fBufferSize - 1));} AliVEventPool *GetEventPool() const {return fEventPool;} virtual AliVEvent *GetEvent() const {return 0;} virtual AliAODEvent *GetEvent(Int_t iev) const; - AliAODEvent *GetLatestEvent() const {return GetEvent(fIndex);} + AliAODEvent *GetLatestEvent() const {return fEventBuffer[fIndex];} // From the interface virtual Bool_t Init(Option_t* /*opt*/) {return kTRUE;} virtual Bool_t Init(TTree* tree, Option_t* /*opt*/); -- 2.43.0