]>
Commit | Line | Data |
---|---|---|
44af28f9 | 1 | AliAnalysisTaskPhiCorrelations *AddTaskPhiCorrelations(Int_t analysisMode = 0, Bool_t ppRun = kFALSE, const char* outputFileName = 0, Bool_t eventMixing = kTRUE, Bool_t zVtxAxis = kFALSE)\r |
e0331fd9 | 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 | |
85bfac17 | 23 | \r |
24 | // Int_t bit = 1;\r | |
25 | Int_t bit = 128;\r | |
1bba939a | 26 | // Int_t bit = 256;\r |
27 | // Int_t bit = 512;\r | |
28 | // Int_t bit = 1024;\r | |
85bfac17 | 29 | ana->SetFilterBit(bit); \r |
30 | \r | |
31 | Printf("AddTaskPhiCorrelations:\n\n\n++++++++++ Using bit %d ++++++++++++\n\n\n", bit);\r | |
32 | \r | |
33 | ana->SetTrackEtaCut(1.0);\r | |
714c8df5 | 34 | // ana->SetTrackEtaCut(0.8);\r |
a1c31636 | 35 | ana->SetPtMin(0.15);\r |
36 | // ana->SetPtMin(1.0);\r | |
e0331fd9 | 37 | //ana->SetEventSelectionBit(AliAnalysisHelperJetTasks::kIsPileUp);\r |
38 | ana->SetReduceMemoryFootprint(kTRUE);\r | |
2a910c25 | 39 | //ana->SetSelectCharge(2);\r |
40 | \r | |
9ff9fccc | 41 | ana->SetEventMixing(eventMixing);\r |
44af28f9 | 42 | ana->SetUseVtxAxis(zVtxAxis);\r |
eed401dc | 43 | \r |
c3294f09 | 44 | // ana->SetCompareCentralities(kTRUE);\r |
acc90d78 | 45 | // ana->SetTwoTrackEfficiencyStudy(kTRUE);\r |
c3294f09 | 46 | \r |
c5c840c5 | 47 | // ana->SetFillpT(kTRUE);\r |
48 | \r | |
85bfac17 | 49 | if (0)\r |
2a910c25 | 50 | {\r |
85bfac17 | 51 | Printf("AddTaskPhiCorrelations:\n\n\n++++++++++ Using SPD centrality selection ++++++++++++\n\n\n");\r |
52 | ana->SetCentralityMethod("CL1");\r | |
2a910c25 | 53 | } \r |
e0331fd9 | 54 | \r |
1bba939a | 55 | if (0)\r |
56 | {\r | |
57 | Printf("AddTaskPhiCorrelations:\n\n\n++++++++++ Using ZDC centrality selection ++++++++++++\n\n\n");\r | |
58 | ana->SetCentralityMethod("ZEMvsZDC");\r | |
59 | } \r | |
60 | \r | |
61 | \r | |
85bfac17 | 62 | if (ppRun)\r |
e0331fd9 | 63 | {\r |
85bfac17 | 64 | Printf("AddTaskPhiCorrelations:\n\n\n+++++++++++++++ Configuring for p+p! +++++++++++++++++\n\n\n");\r |
65 | ana->SetCentralityMethod(""); // only for pp\r | |
2a910c25 | 66 | } \r |
e0331fd9 | 67 | \r |
85bfac17 | 68 | // gSystem->Sleep(3000);\r |
69 | \r | |
e0331fd9 | 70 | mgr->AddTask(ana);\r |
71 | \r | |
72 | // Create ONLY the output containers for the data produced by the task.\r | |
73 | // Get and connect other common input/output containers via the manager as below\r | |
74 | //==============================================================================\r | |
714c8df5 | 75 | if (!outputFileName)\r |
76 | outputFileName = AliAnalysisManager::GetCommonFileName();\r | |
77 | \r | |
78 | AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("histosPhiCorrelations", TList::Class(),AliAnalysisManager::kOutputContainer,Form("%s:PWG4_PhiCorrelations", outputFileName));\r | |
e0331fd9 | 79 | \r |
80 | mgr->ConnectInput (ana, 0, mgr->GetCommonInputContainer());\r | |
81 | mgr->ConnectOutput (ana, 0, coutput1 );\r | |
82 | \r | |
83 | return ana;\r | |
84 | }\r |