Int_t AODfilterBit = 128,\r
Bool_t bCentralTrigger = kFALSE,\r
TString fileNameBase="AnalysisResults",\r
- TString fArgEventClass="Centrality") {\r
+ TString fArgEventClass="Centrality",\r
+ TString analysisTypeUser="") {\r
// Creates a balance function analysis task and adds it to the analysis manager.\r
// Get the pointer to the existing analysis manager via the static access method.\r
TString outputFileName(fileNameBase);\r
TString analysisType = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD"\r
if(dynamic_cast<AliMCEventHandler*> (AliAnalysisManager::GetAnalysisManager()->GetMCtruthEventHandler())) analysisType = "MC";\r
\r
+ // to set the analysis type manually\r
+ if(analysisTypeUser != ""){\r
+ analysisType = analysisTypeUser;\r
+ ::Info("AddTaskBF",Form("Analysis Type manually set to %s",analysisType.Data()));\r
+ }\r
+\r
// for local changed BF configuration\r
//gROOT->LoadMacro("./configBalanceFunctionPsiAnalysis.C");\r
gROOT->LoadMacro("$ALICE_ROOT/PWGCF/EBYE/macros/configBalanceFunctionPsiAnalysis.C");\r