]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGJE/macros/AddTaskDiJets.C
end-of-line normalization
[u/mrichter/AliRoot.git] / PWGJE / macros / AddTaskDiJets.C
index f721be00141b2be93fd90def3d473de7d580e349..109a82931bd59b2dc7931e106c5cf7e181a74f5c 100644 (file)
@@ -1,44 +1,44 @@
-AliAnalysisTaskDiJets *AddTaskDiJets(Char_t *jb="jets")\r
-{\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
-   AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();\r
-   if (!mgr) {\r
-      ::Error("AddTaskDiJets", "No analysis manager to connect to.");\r
-      return NULL;\r
-   }\r
-\r
-   // Check the analysis type using the event handlers connected to the analysis manager.\r
-   //==============================================================================\r
-   if (!mgr->GetInputEventHandler()) {\r
-      ::Error("AddTaskDiJets", "This task requires an input event handler");\r
-      return NULL;\r
-   }\r
-\r
-   // Create the task and configure it.\r
-   //===========================================================================\r
-\r
-   AliAnalysisTaskDiJets *dijetana = new AliAnalysisTaskDiJets(Form("DiJetAnalysis_%s",jb));\r
-   dijetana->SetDebugLevel(0);\r
-//   dijetana->SetFillAOD(kTRUE);\r
-   dijetana->SetJetBranch(jb);\r
-   mgr->AddTask(dijetana);\r
-   \r
-   TString jbOut(jb);\r
-   jbOut = jbOut(4,jbOut.Sizeof());\r
-   jbOut.ToLower();\r
-\r
-   AliAnalysisDataContainer *cout_dijet = mgr->CreateContainer(Form("dijets_%s",jbOut.Data()), TList::Class(),AliAnalysisManager::kOutputContainer,\r
-     Form("%s:PWG4_DiJets_%s",AliAnalysisManager::GetCommonFileName(),jbOut.Data()));\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
-   mgr->ConnectOutput (dijetana, 1, cout_dijet);\r
-\r
-   return dijetana;\r
-}\r
+AliAnalysisTaskDiJets *AddTaskDiJets(Char_t *jb="jets")
+{
+// Creates a dijet task, configures it and adds it to the analysis manager.
+
+   // Get the pointer to the existing analysis manager via the static access method.
+   //==============================================================================
+   AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
+   if (!mgr) {
+      ::Error("AddTaskDiJets", "No analysis manager to connect to.");
+      return NULL;
+   }
+
+   // Check the analysis type using the event handlers connected to the analysis manager.
+   //==============================================================================
+   if (!mgr->GetInputEventHandler()) {
+      ::Error("AddTaskDiJets", "This task requires an input event handler");
+      return NULL;
+   }
+
+   // Create the task and configure it.
+   //===========================================================================
+
+   AliAnalysisTaskDiJets *dijetana = new AliAnalysisTaskDiJets(Form("DiJetAnalysis_%s",jb));
+   dijetana->SetDebugLevel(0);
+//   dijetana->SetFillAOD(kTRUE);
+   dijetana->SetJetBranch(jb);
+   mgr->AddTask(dijetana);
+   
+   TString jbOut(jb);
+   jbOut = jbOut(4,jbOut.Sizeof());
+   jbOut.ToLower();
+
+   AliAnalysisDataContainer *cout_dijet = mgr->CreateContainer(Form("dijets_%s",jbOut.Data()), TList::Class(),AliAnalysisManager::kOutputContainer,
+     Form("%s:PWG4_DiJets_%s",AliAnalysisManager::GetCommonFileName(),jbOut.Data()));
+
+   // Create ONLY the output containers for the data produced by the task.
+   // Get and connect other common input/output containers via the manager as below
+   //==============================================================================
+   mgr->ConnectInput  (dijetana, 0, mgr->GetCommonInputContainer());
+   mgr->ConnectOutput (dijetana, 0, mgr->GetCommonOutputContainer());
+   mgr->ConnectOutput (dijetana, 1, cout_dijet);
+
+   return dijetana;
+}