ROOT logo
AliAnalysisTaskVZEROEqFactorTask *AddTaskVZEROEqFactorTask( const TString lMasterJobSessionFlag = "")
{
// Creates, configures and attaches to the train a cascades check task.
   // Get the pointer to the existing analysis manager via the static access method.
   //==============================================================================
   AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
   if (!mgr) {
      ::Error("AddTaskExtractPerformanceV0", "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("AddTaskExtractPerformanceV0", "This task requires an input event handler");
      return NULL;
   }   
   TString type = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD"

  // Create and configure the task
  AliAnalysisTaskVZEROEqFactorTask *taskVZEROAuxiliary = new AliAnalysisTaskVZEROEqFactorTask("taskVZEROAuxiliary");

  mgr->AddTask(taskVZEROAuxiliary);
  TString outputFileName = AliAnalysisManager::GetCommonFileName();
   
  outputFileName += ":PWGLF_VZEROEqFactorTask";
  if (mgr->GetMCtruthEventHandler()) outputFileName += "_MC";
   
  Printf("Set OutputFileName : \n %s\n", outputFileName.Data() );

  AliAnalysisDataContainer *coutputList = mgr->CreateContainer("cList_VZERO",
							     TList::Class(),
							     AliAnalysisManager::kOutputContainer,
							     outputFileName );

  //Recommendation: Tree as a single output slot
  mgr->ConnectInput( taskVZEROAuxiliary, 0, mgr->GetCommonInputContainer());
  mgr->ConnectOutput(taskVZEROAuxiliary, 1, coutputList);
  
  return taskVZEROAuxiliary;
}   
 AddTaskVZEROEqFactorTask.C:1
 AddTaskVZEROEqFactorTask.C:2
 AddTaskVZEROEqFactorTask.C:3
 AddTaskVZEROEqFactorTask.C:4
 AddTaskVZEROEqFactorTask.C:5
 AddTaskVZEROEqFactorTask.C:6
 AddTaskVZEROEqFactorTask.C:7
 AddTaskVZEROEqFactorTask.C:8
 AddTaskVZEROEqFactorTask.C:9
 AddTaskVZEROEqFactorTask.C:10
 AddTaskVZEROEqFactorTask.C:11
 AddTaskVZEROEqFactorTask.C:12
 AddTaskVZEROEqFactorTask.C:13
 AddTaskVZEROEqFactorTask.C:14
 AddTaskVZEROEqFactorTask.C:15
 AddTaskVZEROEqFactorTask.C:16
 AddTaskVZEROEqFactorTask.C:17
 AddTaskVZEROEqFactorTask.C:18
 AddTaskVZEROEqFactorTask.C:19
 AddTaskVZEROEqFactorTask.C:20
 AddTaskVZEROEqFactorTask.C:21
 AddTaskVZEROEqFactorTask.C:22
 AddTaskVZEROEqFactorTask.C:23
 AddTaskVZEROEqFactorTask.C:24
 AddTaskVZEROEqFactorTask.C:25
 AddTaskVZEROEqFactorTask.C:26
 AddTaskVZEROEqFactorTask.C:27
 AddTaskVZEROEqFactorTask.C:28
 AddTaskVZEROEqFactorTask.C:29
 AddTaskVZEROEqFactorTask.C:30
 AddTaskVZEROEqFactorTask.C:31
 AddTaskVZEROEqFactorTask.C:32
 AddTaskVZEROEqFactorTask.C:33
 AddTaskVZEROEqFactorTask.C:34
 AddTaskVZEROEqFactorTask.C:35
 AddTaskVZEROEqFactorTask.C:36
 AddTaskVZEROEqFactorTask.C:37
 AddTaskVZEROEqFactorTask.C:38
 AddTaskVZEROEqFactorTask.C:39
 AddTaskVZEROEqFactorTask.C:40
 AddTaskVZEROEqFactorTask.C:41
 AddTaskVZEROEqFactorTask.C:42