if(fDebug&&evBkg)Printf("%s:%d Backgroundbranch %s found",(char*)__FILE__,__LINE__,fBackgroundBranch.Data());
}
- if(!evBkg){
+ if(!evBkg&&(fSubtraction==kArea||fSubtraction==kRhoRecalc)){
if(fDebug){
Printf("%s:%d Backgroundbranch %s not found",(char*)__FILE__,__LINE__,fBackgroundBranch.Data());
PrintAODContents();
return;
}
- if(!bkgClusters){
+ if(!bkgClusters&&(fSubtraction==kRhoRecalc)){
if(fDebug){
Printf("%s:%d Background cluster branch %s not found",(char*)__FILE__,__LINE__,bkgClusterName.Data());
PrintAODContents();
return;
}
- if(!bkgClustersRC){
+ if(!bkgClustersRC&&(fSubtraction==kRhoRC)){
if(fDebug){
Printf("%s:%d Background cluster RC branch %s not found",(char*)__FILE__,__LINE__,bkgClusterRCName.Data());
PrintAODContents();
AliAODJetEventBackground* externalBackground = 0;
if(!externalBackground&&fBackgroundBranch.Length()){
externalBackground = (AliAODJetEventBackground*)(AODEvent()->FindListObject(fBackgroundBranch.Data()));
- Printf("%s:%d Background branch not found %s",(char*)__FILE__,__LINE__,fBackgroundBranch.Data());;
+ if(!externalBackground)Printf("%s:%d Background branch not found %s",(char*)__FILE__,__LINE__,fBackgroundBranch.Data());;
}
//
// Execute analysis for current event