]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
protection agains non initialized pool
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 30 Jun 2012 11:38:35 +0000 (11:38 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 30 Jun 2012 11:38:35 +0000 (11:38 +0000)
PWG/CaloTrackCorrBase/AliCaloTrackReader.h

index 7d48481b2ad96142d4e01a9598912a922c0934bd..5eab71e4e8375ed3cfc692d61331705e3cd91911 100755 (executable)
@@ -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 ; }