From a757b40bcce1a80c5aa0647ff5f7ccba32b10bf8 Mon Sep 17 00:00:00 2001 From: gconesab Date: Fri, 6 May 2011 05:59:05 +0000 Subject: [PATCH] add protection in reader against missing output event when the non standard cluster array is requested; remove debug prints from AliAnaPhoton --- PWG4/PartCorrBase/AliCaloTrackReader.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PWG4/PartCorrBase/AliCaloTrackReader.cxx b/PWG4/PartCorrBase/AliCaloTrackReader.cxx index cf53e23bb63..75a7d5b417a 100755 --- a/PWG4/PartCorrBase/AliCaloTrackReader.cxx +++ b/PWG4/PartCorrBase/AliCaloTrackReader.cxx @@ -884,7 +884,8 @@ void AliCaloTrackReader::FillInputEMCAL() { }//Get the clusters from the input event else { - TClonesArray * clusterList = dynamic_cast (fOutputEvent->FindListObject(fEMCALClustersListName)); + TClonesArray * clusterList = 0x0; + if(fOutputEvent) clusterList = dynamic_cast (fOutputEvent->FindListObject(fEMCALClustersListName)); if(!clusterList){ //printf("AliCaloTrackReader::FillInputEMCAL() - Wrong name of list with clusters? Try input event <%s>\n",fEMCALClustersListName.Data()); //List not in output event, try input event -- 2.39.3