some more updates
[u/mrichter/AliRoot.git] / PWGPP / macros / AddTaskIntSpotESD.C
CommitLineData
5b09c01f 1AliAnalysisTaskIPInfo* AddTaskIntSpotESD()
2{
3 //
4 // Task to extract the Int.Spot position and sigma as well as the vertex and track
5 // DCA resolutions. Performs estimates both with TPC and TPC+ITS tracks.
6 //
7
8 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
9 if (!mgr) {
10 Error("AddTaskIntSpotESD", "No analysis manager to connect to.");
11 return 0;
12 }
13 //
14
15 // Create the task
16 AliAnalysisTaskIPInfo *taskIP = new AliAnalysisTaskIPInfo("IPInfo");
d631e5e7 17 taskIP->SetOptions(AliAnalysisTaskIPInfo::kITSTPC, kFALSE, 1e-4, 2, 12,1000,
18 -4e-2,8e-2, 10,2,32, 14,0.2,3., kFALSE);
19 taskIP->SetIPCenIni(AliAnalysisTaskIPInfo::kITSTPC, -0.0764,0.2481,0);
20 //
21 //
22 taskIP->SetOptions(AliAnalysisTaskIPInfo::kTPC, kFALSE, 1e-4, 2, 12,1000,
23 -4e-2,8e-2, 10,2,32, 14,0.2,3., kFALSE);
24 taskIP->SetIPCenIni(AliAnalysisTaskIPInfo::kTPC, -0.0764,0.2481,0);
25 //
26 //
27 taskIP->SetOptions(AliAnalysisTaskIPInfo::kSPD, kFALSE, 1e-4, 2, 12,1000,
28 -4e-2,8e-2, 10,2,32, 14,0.2,3., kTRUE);
29 taskIP->SetIPCenIni(AliAnalysisTaskIPInfo::kSPD, -0.0764,0.2481,0);
30 //
5b09c01f 31 mgr->AddTask(taskIP);
32
33 // Create containers for input/output
34 AliAnalysisDataContainer *cInputIPesd = mgr->CreateContainer
35 ("cInputIPesd",TChain::Class(),AliAnalysisManager::kInputContainer);
36
37 AliAnalysisDataContainer *cOutputIPesd = mgr->CreateContainer
38 ("cOutputIPesd",TList::Class(),AliAnalysisManager::kOutputContainer,"IPInfo.root");
39
40 // Attach input
41 mgr->ConnectInput(taskIP,0,mgr->GetCommonInputContainer());
42 // Attach output
43 mgr->ConnectOutput(taskIP,0,cOutputIPesd);
44
45 return taskIP;
46}