1 AliAnalysisTaskIPInfo* AddTaskIntSpotESD()
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.
8 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
10 Error("AddTaskIntSpotESD", "No analysis manager to connect to.");
16 AliAnalysisTaskIPInfo *taskIP = new AliAnalysisTaskIPInfo("IPInfo");
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);
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);
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);
33 // Create containers for input/output
34 AliAnalysisDataContainer *cInputIPesd = mgr->CreateContainer
35 ("cInputIPesd",TChain::Class(),AliAnalysisManager::kInputContainer);
37 AliAnalysisDataContainer *cOutputIPesd = mgr->CreateContainer
38 ("cOutputIPesd",TList::Class(),AliAnalysisManager::kOutputContainer,"IPInfo.root");
41 mgr->ConnectInput(taskIP,0,mgr->GetCommonInputContainer());
43 mgr->ConnectOutput(taskIP,0,cOutputIPesd);