]>
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 | |
11 | // Check the analysis type using the event handlers connected to the analysis manager.\r | |
12 | //==============================================================================\r | |
13 | if (!mgr->GetInputEventHandler()) {\r | |
14 | ::Error("AddTaskPhiCorrelations", "This task requires an input event handler");\r | |
15 | return NULL;\r | |
16 | }\r | |
17 | \r | |
18 | // Create the task and configure it.\r | |
19 | //===========================================================================\r | |
20 | AliAnalysisTaskPhiCorrelations* ana = new AliAnalysisTaskPhiCorrelations("PhiCorrelations");\r | |
21 | ana->SetMode(analysisMode);// data or corrections mode\r | |
22 | // common config,\r | |
23 | ana->SetDebugLevel(0); \r | |
24 | // ana->SetFilterBit(16); \r | |
25 | //ana->SetFilterBit(64+32); \r | |
26 | ana->SetFilterBit(1); \r | |
27 | ana->SetTrackEtaCut(0.8);\r | |
28 | ana->SetPtMin(2.0);\r | |
29 | //ana->SetEventSelectionBit(AliAnalysisHelperJetTasks::kIsPileUp);\r | |
30 | ana->SetReduceMemoryFootprint(kTRUE);\r | |
31 | \r | |
32 | if (0)\r | |
33 | {\r | |
34 | file = TFile::Open("$ALICE_ROOT/PWG4/JetTasks/inputFiles/ue_trackingefficiency.root");\r | |
35 | trackingEff = (TH1D*) file->Get("trackingefficiency");\r | |
36 | ana->SetTrackingEfficiency(trackingEff);\r | |
37 | }\r | |
38 | \r | |
39 | mgr->AddTask(ana);\r | |
40 | \r | |
41 | // Create ONLY the output containers for the data produced by the task.\r | |
42 | // Get and connect other common input/output containers via the manager as below\r | |
43 | //==============================================================================\r | |
44 | AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("histosPhiCorrelations", TList::Class(),AliAnalysisManager::kOutputContainer,Form("%s:PWG4_PhiCorrelations", AliAnalysisManager::GetCommonFileName()));\r | |
45 | \r | |
46 | mgr->ConnectInput (ana, 0, mgr->GetCommonInputContainer());\r | |
47 | mgr->ConnectOutput (ana, 0, coutput1 );\r | |
48 | \r | |
49 | return ana;\r | |
50 | }\r |