From: gconesab Date: Sat, 30 Jun 2012 11:38:35 +0000 (+0000) Subject: protection agains non initialized pool X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=50551817849bdd32c488b75999774effffac5f86 protection agains non initialized pool --- diff --git a/PWG/CaloTrackCorrBase/AliCaloTrackReader.h b/PWG/CaloTrackCorrBase/AliCaloTrackReader.h index 7d48481b2ad..5eab71e4e83 100755 --- a/PWG/CaloTrackCorrBase/AliCaloTrackReader.h +++ b/PWG/CaloTrackCorrBase/AliCaloTrackReader.h @@ -302,8 +302,8 @@ public: Int_t GetLastCaloMixedEvent() const { return fLastMixedCaloEvent ; } Int_t GetLastTracksMixedEvent () const { return fLastMixedTracksEvent ; } - TList * GetListWithMixedEventsForCalo (Int_t bi) const { return fListMixedCaloEvents[bi] ; } - TList * GetListWithMixedEventsForTracks(Int_t bi) const { return fListMixedTracksEvents [bi] ; } + TList * GetListWithMixedEventsForCalo (Int_t bi) const { if(fListMixedCaloEvents) return fListMixedCaloEvents[bi] ; else return 0 ; } + TList * GetListWithMixedEventsForTracks(Int_t bi) const { if(fListMixedTracksEvents) return fListMixedTracksEvents [bi] ; else return 0 ; } Bool_t ListWithMixedEventsForCaloExists() const { if(fListMixedCaloEvents) return kTRUE ; else return kFALSE ; }