Proper call for Ds systematics
authorzconesa <zconesa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Jul 2012 17:52:35 +0000 (17:52 +0000)
committerzconesa <zconesa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 18 Jul 2012 17:52:35 +0000 (17:52 +0000)
PWGHF/vertexingHF/macros/HFPtSpectrum.C
PWGHF/vertexingHF/macros/HFPtSpectrumRaa.C

index 361655b..aa040c2 100644 (file)
@@ -331,9 +331,7 @@ void HFPtSpectrum ( const char *mcfilename="FeedDownCorrectionMC.root",
       return;
     }
   } else { systematics->SetCollisionType(0); }
-  if(decay!=4)
-    systematics->Init(decay);
-  else systematics->Init(3);
+  systematics->Init(decay);
   spectra->ComputeSystUncertainties(systematics,combineFeedDown);
 
   //
index da16135..1ec4069 100644 (file)
@@ -218,9 +218,9 @@ void HFPtSpectrumRaa(const char *ppfile="HFPtSpectrum_D0Kpi_method2_rebinnedth_2
   else { 
     cout << " Systematics not yet implemented " << endl;
     return;
-  } 
-  if(decay!=4) systematicsAB->Init(decay);
-  else systematicsAB->Init(2);
+  }
+  systematicsAB->Init(decay);
+
   //
   Int_t entries = nSigmaAB->GetEntries();
   Float_t pt=0., signal=0., Rb=0., Rcb=0., fcAB=0., yieldAB=0., sigmaAB=0., statUncSigmaAB=0., sigmaABMin=0.,sigmaABMax=0.;