2 * @defgroup pwg2_forward_scripts Scripts used in the analysis
4 * @ingroup pwg2_forward
8 * @ingroup pwg2_forward_scripts
12 * This is the macro to include the Forward multiplicity in a train.
14 * @ingroup pwg2_forward_scripts
16 AliAnalysisTask* AddTaskCentral()
18 gSystem->Load("libPWG2forward2");
20 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
22 Error("AddTaskCentral", "No analysis manager to connect to.");
26 // --- Make the task and add it to the manager ---------------------
27 AliCentralMultiplicityTask* task = new AliCentralMultiplicityTask("Central");
28 task->InitManager(1,900,5);
31 // --- Make the output container and connect it --------------------
32 TString outputfile = AliAnalysisManager::GetCommonFileName();
34 AliAnalysisDataContainer* histOut =
35 mgr->CreateContainer("Central", TList::Class(),
36 AliAnalysisManager::kOutputContainer,outputfile);
37 mgr->ConnectInput(task, 0, mgr->GetCommonInputContainer());
38 mgr->ConnectOutput(task, 1, histOut);