1 AliTrackMatchingTPCITSCosmics *AddTaskTrackMatchingTPCITS()
4 // Task for the extraction of the ITS alignment data (AliTrackPoints)
6 // andrea.dainese@pd.infn.it
10 // Get the pointer to the existing analysis manager via the static access method.
11 //==============================================================================
12 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
14 ::Error("AddTask", "No analysis manager to connect to.");
19 AliTrackMatchingTPCITSCosmics *taskMatch = new AliTrackMatchingTPCITSCosmics("matching");
20 AliLog::SetClassDebugLevel("AliTrackMatchingTPCITSCosmics",10);
21 //taskMatch->SetOnlySPDFO();
22 taskMatch->SetGeometryFileName("alien:///alice/cern.ch/user/d/dainesea/geometry.root");
24 mgr->AddTask(taskMatch);
27 // Create containers for input/output
28 AliAnalysisDataContainer *cInput = mgr->CreateContainer("cInput",TChain::Class(),AliAnalysisManager::kInputContainer);
30 AliAnalysisDataContainer *cOutput = mgr->CreateContainer("cOutput",TList::Class(),AliAnalysisManager::kOutputContainer,"TPCITSMatching.root");
34 mgr->ConnectInput(taskMatch,0,mgr->GetCommonInputContainer());
36 mgr->ConnectOutput(taskMatch,0,cOutput);