temporary patch for cases where the background only fit in the whole range is biased...
authorzconesa <zconesa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Sep 2013 08:41:33 +0000 (08:41 +0000)
committerzconesa <zconesa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Sep 2013 08:41:33 +0000 (08:41 +0000)
PWGHF/vertexingHF/AliHFMassFitter.cxx

index 74c5bf6..3d37f95 100644 (file)
@@ -955,7 +955,7 @@ Bool_t AliHFMassFitter::MassFitter(Bool_t draw){
     Double_t diffUnderBands=(intUnderHisto-intUnderFunc);
     Double_t relDiff=diffUnderPick/diffUnderBands;
     cout<<"Relative difference = "<<relDiff<<endl;
-    if(TMath::Abs(relDiff) < 1) isBkgOnly=kTRUE;
+    if(TMath::Abs(relDiff) < 0.25) isBkgOnly=kTRUE;
     else{
       cout<<"Relative difference = "<<relDiff<<": I suppose there is some signal, continue with total fit!"<<endl;
     }