AliAnalysisTaskDiJets *AddTaskDiJets()\r
{\r
-// Creates a jet fider task, configures it and adds it to the analysis manager.\r
+// Creates a dijet task, configures it and adds it to the analysis manager.\r
\r
// Get the pointer to the existing analysis manager via the static access method.\r
//==============================================================================\r
if (!mgr) {\r
::Error("AddTaskJets", "No analysis manager to connect to.");\r
return NULL;\r
- } \r
- \r
+ }\r
+\r
// Check the analysis type using the event handlers connected to the analysis manager.\r
//==============================================================================\r
if (!mgr->GetInputEventHandler()) {\r
\r
// Create the task and configure it.\r
//===========================================================================\r
- \r
+\r
AliAnalysisTaskDiJets *dijetana = new AliAnalysisTaskDiJets("DiJetAnalysis");\r
- \r
+ dijetana->SetDebugLevel(10);\r
mgr->AddTask(dijetana);\r
- \r
+\r
+ AliAnalysisDataContainer *cout_dijet = mgr->CreateContainer("DiJet", TList::Class(),AliAnalysisManager::kOutputContainer,\r
+ Form("%s:PWG4_DiJet",AliAnalysisManager::GetCommonFileName()));\r
+\r
// Create ONLY the output containers for the data produced by the task.\r
// Get and connect other common input/output containers via the manager as below\r
//==============================================================================\r
mgr->ConnectInput (dijetana, 0, mgr->GetCommonInputContainer());\r
mgr->ConnectOutput (dijetana, 0, mgr->GetCommonOutputContainer());\r
- \r
+ mgr->ConnectOutput (dijetana, 1, cout_dijet);\r
+\r
return dijetana;\r
}\r