]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGPP/macros/AddTaskTrackMatchingTPCITS.C
macro to run standalone ESD filtering
[u/mrichter/AliRoot.git] / PWGPP / macros / AddTaskTrackMatchingTPCITS.C
CommitLineData
dae0a357 1AliTrackMatchingTPCITSCosmics *AddTaskTrackMatchingTPCITS()
2{
3 //
4 // Task for the extraction of the ITS alignment data (AliTrackPoints)
5 //
6 // andrea.dainese@pd.infn.it
7 //
8
9
10 // Get the pointer to the existing analysis manager via the static access method.
11 //==============================================================================
12 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
13 if (!mgr) {
14 ::Error("AddTask", "No analysis manager to connect to.");
15 return NULL;
16 }
17
18 // Create the task
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");
23 // Add to the manager
dae0a357 24 mgr->AddTask(taskMatch);
25
26 //
27 // Create containers for input/output
28 AliAnalysisDataContainer *cInput = mgr->CreateContainer("cInput",TChain::Class(),AliAnalysisManager::kInputContainer);
29
30 AliAnalysisDataContainer *cOutput = mgr->CreateContainer("cOutput",TList::Class(),AliAnalysisManager::kOutputContainer,"TPCITSMatching.root");
31
32
33 // Attach input
34 mgr->ConnectInput(taskMatch,0,mgr->GetCommonInputContainer());
35 // Attach output
36 mgr->ConnectOutput(taskMatch,0,cOutput);
37
38 return taskMatch;
39}