Int_t minNClustersTPC = -1,\r
Bool_t kUsePID = kFALSE,\r
Int_t AODfilterBit = 128,\r
+ Bool_t bCentralTrigger = kFALSE,\r
TString fileNameBase="AnalysisResults") {\r
\r
// Creates a balance function analysis task and adds it to the analysis manager.\r
centralityName+=Form("%d",minNClustersTPC);\r
centralityName+="_Bit";\r
centralityName+=Form("%d",AODfilterBit);\r
+ if(bCentralTrigger) centralityName+="_withCentralTrigger";\r
+\r
\r
\r
\r
// taskBF->UseOfflineTrigger(); // NOT used (selection is done with the AliAnalysisTaskSE::SelectCollisionCandidates()) \r
// with this only selected events are analyzed (first 2 bins in event QA histogram are the same))\r
// documentation in https://twiki.cern.ch/twiki/bin/viewauth/ALICE/PWG1EvSelDocumentation\r
- taskBF->SelectCollisionCandidates(AliVEvent::kMB);\r
- \r
+ if(bCentralTrigger) taskBF->SelectCollisionCandidates(AliVEvent::kMB | AliVEvent::kCentral | AliVEvent::kSemiCentral);\r
+ else taskBF->SelectCollisionCandidates(AliVEvent::kMB);\r
+\r
// centrality estimator (default = V0M)\r
taskBF->SetCentralityEstimator(centralityEstimator);\r
\r
mgr->ConnectOutput(taskBF, 1, coutQA);\r
mgr->ConnectOutput(taskBF, 2, coutBF);\r
if(gRunShuffling) mgr->ConnectOutput(taskBF, 3, coutBFS);\r
- if(kUsePID) mgr->ConnectOutput(taskBF, 4, coutQAPID);\r
+ if(kUsePID && analysisType == "ESD") mgr->ConnectOutput(taskBF, 4, coutQAPID);\r
\r
return taskBF;\r
}\r