]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/TenderSupplies/AliEMCALTenderSupply.cxx
Updates Salvatore Aiola
[u/mrichter/AliRoot.git] / ANALYSIS / TenderSupplies / AliEMCALTenderSupply.cxx
index c6c53fa05b7fb13a6012e598bdb77b4e3501c700..9857e1324ba733bd2a3ca5e1fc68128461ef1a7c 100644 (file)
@@ -80,6 +80,7 @@ AliTenderSupply()
 ,fRecalShowerShape(kFALSE)
 ,fInputTree(0)
 ,fInputFile(0)
+,fGetPassFromFileName(kTRUE)
 ,fFilepass(0) 
 ,fMass(-1)
 ,fStep(-1)
@@ -1593,9 +1594,11 @@ void AliEMCALTenderSupply::RecPoints2Clusters(TClonesArray *clus)
     }
     else {
       AliAODCaloCluster *aodClus = dynamic_cast<AliAODCaloCluster*>(c);
-      Int_t  parentMult = 0;
-      Int_t *parentList = recpoint->GetParents(parentMult);
-      aodClus->SetLabel(parentList, parentMult); 
+      if (aodClus) {
+       Int_t  parentMult = 0;
+       Int_t *parentList = recpoint->GetParents(parentMult);
+       aodClus->SetLabel(parentList, parentMult); 
+      }
     }
   }
 }