message: Modofication on event selection for phi analysis in pp at 13 TeV
diff: @@ -48,8 +48,7 @@ AliRsnMiniAnalysisTask * AddTaskPhiPP13TeV_PID
  Bool_t useMixLS=0,
  Bool_t checkReflex=0,
  AliRsnMiniValue::EType yaxisvar=AliRsnMiniValue::kPt,
  - TString polarizationOpt="" /* J - Jackson,T - Transversity */,
  - Bool_t saveRsnTreeInFile = kFALSE
  + TString polarizationOpt="" /* J - Jackson,T - Transversity */
  )
  {
  //-------------------------------------------
  @@ -109,9 +108,10 @@ AliRsnMiniAnalysisTask * AddTaskPhiPP13TeV_PID
  // create the task and configure
  TString taskName=Form("phi%s%s_%i%i",(isPP? "pp" : "PbPb"),(isMC ? "MC" : "Data"),(Int_t)cutKaCandidate);
  - AliRsnMiniAnalysisTask* task=new AliRsnMiniAnalysisTask(taskName.Data(),isMC,saveRsnTreeInFile);
  - if(evtCutSetID==eventCutSet::kSpecial4 || evtCutSetID==eventCutSet::kSpecial5) task->UseESDTriggerMask(triggerMask); //ESD ****** check this *****
  - if(evtCutSetID!=eventCutSet::kNoEvtSel && evtCutSetID!=eventCutSet::kSpecial3 && evtCutSetID!=eventCutSet::kSpecial4) task->SelectCollisionCandidates(triggerMask); //AOD
  + AliRsnMiniAnalysisTask* task=new AliRsnMiniAnalysisTask(taskName.Data(),isMC);
  + //if(evtCutSetID==eventCutSet::kSpecial4 || evtCutSetID==eventCutSet::kSpecial5) task->UseESDTriggerMask(triggerMask); //ESD ****** check this *****
  + //if(evtCutSetID!=eventCutSet::kNoEvtSel && evtCutSetID!=eventCutSet::kSpecial3 && evtCutSetID!=eventCutSet::kSpecial4) task->SelectCollisionCandidates(triggerMask); //AOD
  + if(evtCutSetID!=eventCutSet::kNoEvtSel && evtCutSetID!=eventCutSet::kSpecial3) task->UseESDTriggerMask(triggerMask);
  if(isPP){
  if(MultBins==1) task->UseMultiplicity("AliMultSelection_V0M");
  @@ -126,6 +126,7 @@ AliRsnMiniAnalysisTask * AddTaskPhiPP13TeV_PID
  task->SetMaxDiffVz(maxDiffVzMix);
  task->SetMaxDiffMult(maxDiffMultMix);
  ::Info("AddTaskPhiPP13TeV_PID", Form("Event mixing configuration: \n events to mix = %i \n max diff. vtxZ = cm %5.3f \n max diff multi = %5.3f", nmix, maxDiffVzMix, maxDiffMultMix));
  + task->SaveRsnTreeInFile(kTRUE);
  mgr->AddTask(task);
  @@ -243,14 +244,8 @@ AliRsnMiniAnalysisTask * AddTaskPhiPP13TeV_PID
  TList::Class(),
  AliAnalysisManager::kOutputContainer,
  outputFileName);
  - AliAnalysisDataContainer* outputTree=0;
  - if (saveRsnTreeInFile) {
  - outputTree=mgr->CreateContainer("rsnTree", TTree::Class(),
  - AliAnalysisManager::kOutputContainer, Form("RsnTree_%s_%s.root",task->GetName(), outNameSuffix.Data()));
  - }
  mgr->ConnectInput(task, 0, mgr->GetCommonInputContainer());
  mgr->ConnectOutput(task, 1, output);
  - Printf("%p %d", outputTree,saveRsnTreeInFile);
  - if (outputTree) mgr->ConnectOutput(task, 2, outputTree);
  +
  return task;
  }
  