Updating TOF Pass0 class and macro (changing mane of output file and list).
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Apr 2011 13:11:44 +0000 (13:11 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Apr 2011 13:11:44 +0000 (13:11 +0000)
TOF/AddTOFAnalysisTaskCalibPass0.C
TOF/AliTOFAnalysisTaskCalibPass0.cxx

index 86bcaf5..a65604d 100644 (file)
@@ -30,7 +30,7 @@ AddTOFAnalysisTaskCalibPass0()
   }
   
   /* create output data container */
-  AliAnalysisDataContainer *outputc1 = mgr->CreateContainer("Histos", TList::Class(), AliAnalysisManager::kOutputContainer, "TOFCalibPass0.root");
+  AliAnalysisDataContainer *outputc1 = mgr->CreateContainer("TOFHistos", TList::Class(), AliAnalysisManager::kOutputContainer, "AliESDfriends_v1.root");
   if (!outputc1) {
     Error("AddAnalysisTaskEventTime", "cannot create output container \"Histos\"");
     return NULL;
@@ -38,6 +38,10 @@ AddTOFAnalysisTaskCalibPass0()
 
   /*  create task and connect input/output */
   AliTOFAnalysisTaskCalibPass0 *task = new AliTOFAnalysisTaskCalibPass0();
+
+  // adding the task
+  mgr->AddTask(task);
+
   mgr->ConnectInput(task, 0, inputc);
   mgr->ConnectOutput(task, 1, outputc1);
 
index 425b030..95c615b 100644 (file)
@@ -348,7 +348,7 @@ AliTOFAnalysisTaskCalibPass0::ProcessOutput(const Char_t *filename, const Char_t
     return kFALSE;
   }
   /* get histograms */
-  TList *list = (TList *)file->Get("Histos");
+  TList *list = (TList *)file->Get("TOFHistos");
   TH2F *histoVertexTimestamp = NULL;
   TH2F *histoDeltatTimestamp = NULL;
   TH2F *histoDeltazEta = NULL;