Event Mixing for Triggered BF analysis
[u/mrichter/AliRoot.git] / PWGCF / EBYE / macros / AddTaskBalanceTriggered.C
index 5ba46a0eb71021193406d70cf3142677a6c0ace4..5d2070d5583f90d22a9b8cedb5b2fbbbe64381d6 100644 (file)
@@ -8,7 +8,7 @@ Double_t gMinAcceptedProbability = 0.7;
 \r
 //_________________________________________________________//\r
 AliAnalysisTaskTriggeredBF *AddTaskBalanceTriggered(Double_t centrMin=0.,\r
-                                                Double_t centrMax=100.,\r
+                                                Double_t centrMax=80.,\r
                                                 Bool_t gRunShuffling=kFALSE,\r
                                                 Bool_t gRunMixing=kFALSE,\r
                                                 TString centralityEstimator="V0M",\r
@@ -97,7 +97,6 @@ AliAnalysisTaskTriggeredBF *AddTaskBalanceTriggered(Double_t centrMin=0.,
       bfm = new AliBalanceTriggered();\r
       bfm->SetAnalysisLevel(analysisType);\r
       bfm->InitHistograms();\r
-      bfm->SetMixingTracks(50000)\r
     }\r
   }\r
   else{\r
@@ -110,7 +109,10 @@ AliAnalysisTaskTriggeredBF *AddTaskBalanceTriggered(Double_t centrMin=0.,
   AliAnalysisTaskTriggeredBF *taskTriggeredBF = new AliAnalysisTaskTriggeredBF("TaskTriggeredBF");\r
   taskTriggeredBF->SetAnalysisObject(bf);\r
   if(gRunShuffling) taskTriggeredBF->SetShufflingObject(bfs);\r
-  if(gRunMixing) taskTriggeredBF->SetMixingObject(bfm);\r
+  if(gRunMixing){\r
+    taskTriggeredBF->SetMixingObject(bfm);\r
+    taskTriggeredBF->SetMixingTracks(50000);\r
+  }\r
 \r
   taskTriggeredBF->SetCentralityPercentileRange(centrMin,centrMax);\r
   if(analysisType == "AOD") {\r