]>
Commit | Line | Data |
---|---|---|
e0331fd9 | 1 | AliAnalysisTaskPhiCorrelations *AddTaskPhiCorrelations(Int_t analysisMode = 0)\r |
2 | {\r | |
3 | // Get the pointer to the existing analysis manager via the static access method.\r | |
4 | //==============================================================================\r | |
5 | AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();\r | |
6 | if (!mgr) {\r | |
7 | ::Error("AddTaskPhiCorrelations", "No analysis manager to connect to.");\r | |
8 | return NULL;\r | |
9 | } \r | |
10 | \r | |
e0331fd9 | 11 | // Create the task and configure it.\r |
12 | //===========================================================================\r | |
13 | AliAnalysisTaskPhiCorrelations* ana = new AliAnalysisTaskPhiCorrelations("PhiCorrelations");\r | |
14 | ana->SetMode(analysisMode);// data or corrections mode\r | |
2a910c25 | 15 | \r |
16 | // if (analysisMode == 0) // data\r | |
17 | // ana->SelectCollisionCandidates(AliVEvent::kMB);\r | |
18 | \r | |
e0331fd9 | 19 | // common config,\r |
20 | ana->SetDebugLevel(0); \r | |
21 | // ana->SetFilterBit(16); \r | |
22 | //ana->SetFilterBit(64+32); \r | |
23 | ana->SetFilterBit(1); \r | |
24 | ana->SetTrackEtaCut(0.8);\r | |
2a910c25 | 25 | ana->SetPtMin(0.15);\r |
e0331fd9 | 26 | //ana->SetEventSelectionBit(AliAnalysisHelperJetTasks::kIsPileUp);\r |
27 | ana->SetReduceMemoryFootprint(kTRUE);\r | |
2a910c25 | 28 | //ana->SetSelectCharge(2);\r |
29 | \r | |
30 | if (1)\r | |
31 | {\r | |
32 | Printf("\n\n\n+++++++++++++++ Configuring for p+p! +++++++++++++++++\n\n\n");\r | |
33 | ana->SetCentralityMethod(""); // only for pp\r | |
34 | } \r | |
e0331fd9 | 35 | \r |
36 | if (0)\r | |
37 | {\r | |
2a910c25 | 38 | Printf("\n\n\n++++++++++ Using SPD centrality selection ++++++++++++\n\n\n");\r |
39 | ana->SetCentralityMethod("CL1");\r | |
40 | } \r | |
e0331fd9 | 41 | \r |
42 | mgr->AddTask(ana);\r | |
43 | \r | |
44 | // Create ONLY the output containers for the data produced by the task.\r | |
45 | // Get and connect other common input/output containers via the manager as below\r | |
46 | //==============================================================================\r | |
47 | AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("histosPhiCorrelations", TList::Class(),AliAnalysisManager::kOutputContainer,Form("%s:PWG4_PhiCorrelations", AliAnalysisManager::GetCommonFileName()));\r | |
48 | \r | |
49 | mgr->ConnectInput (ana, 0, mgr->GetCommonInputContainer());\r | |
50 | mgr->ConnectOutput (ana, 0, coutput1 );\r | |
51 | \r | |
52 | return ana;\r | |
53 | }\r |