AliAnalysisTaskMuonAODCreation *AddTaskMuonAODCreation()
{
// Creates a filter task to copy muon tracks from the Standard AOD to the Muon AOD
// R. Arnaldi - 6/10/09
// Get the pointer to the existing analysis manager via the static access method.
//==============================================================================
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
::Error("AddTaskMuonAODCreation", "No analysis manager to connect to.");
return NULL;
}
// Get input handler
TString type = mgr->GetInputEventHandler()->GetDataType();
// Define output
AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("chist0",TList::Class(),AliAnalysisManager::kOutputContainer,"MuonPlots.root");
// Create the task, add it to the manager and configure it.
//===========================================================================
AliAnalysisTaskMuonAODCreation *muonAODtask = new AliAnalysisTaskMuonAODCreation("Muon AOD creation");
mgr->AddTask(muonAODtask);
// 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 (muonAODtask, 0, mgr->GetCommonInputContainer());
mgr->ConnectOutput (muonAODtask, 0, mgr->GetCommonOutputContainer());
mgr->ConnectOutput (muonAODtask, 1, coutput1);
return muonAODtask;
}
AddTaskMuonAODCreation.C:1 AddTaskMuonAODCreation.C:2 AddTaskMuonAODCreation.C:3 AddTaskMuonAODCreation.C:4 AddTaskMuonAODCreation.C:5 AddTaskMuonAODCreation.C:6 AddTaskMuonAODCreation.C:7 AddTaskMuonAODCreation.C:8 AddTaskMuonAODCreation.C:9 AddTaskMuonAODCreation.C:10 AddTaskMuonAODCreation.C:11 AddTaskMuonAODCreation.C:12 AddTaskMuonAODCreation.C:13 AddTaskMuonAODCreation.C:14 AddTaskMuonAODCreation.C:15 AddTaskMuonAODCreation.C:16 AddTaskMuonAODCreation.C:17 AddTaskMuonAODCreation.C:18 AddTaskMuonAODCreation.C:19 AddTaskMuonAODCreation.C:20 AddTaskMuonAODCreation.C:21 AddTaskMuonAODCreation.C:22 AddTaskMuonAODCreation.C:23 AddTaskMuonAODCreation.C:24 AddTaskMuonAODCreation.C:25 AddTaskMuonAODCreation.C:26 AddTaskMuonAODCreation.C:27 AddTaskMuonAODCreation.C:28 AddTaskMuonAODCreation.C:29 AddTaskMuonAODCreation.C:30 AddTaskMuonAODCreation.C:31 AddTaskMuonAODCreation.C:32 AddTaskMuonAODCreation.C:33