]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
add protection in reader against missing output event when the non standard cluster...
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 May 2011 05:59:05 +0000 (05:59 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 May 2011 05:59:05 +0000 (05:59 +0000)
PWG4/PartCorrBase/AliCaloTrackReader.cxx

index cf53e23bb63f49a3a535d0830d7d93a3b46449d8..75a7d5b417abe67ccea4687d5af47bb1fa947d51 100755 (executable)
@@ -884,7 +884,8 @@ void AliCaloTrackReader::FillInputEMCAL() {
     
   }//Get the clusters from the input event
   else {
-    TClonesArray * clusterList = dynamic_cast<TClonesArray*> (fOutputEvent->FindListObject(fEMCALClustersListName));
+    TClonesArray * clusterList = 0x0; 
+    if(fOutputEvent) clusterList = dynamic_cast<TClonesArray*> (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