1 AliAnalysisTaskPhiCorrelations *AddTaskPhiCorrelations(Int_t analysisMode = 0)
\r
3 // Get the pointer to the existing analysis manager via the static access method.
\r
4 //==============================================================================
\r
5 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
\r
7 ::Error("AddTaskPhiCorrelations", "No analysis manager to connect to.");
\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
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
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
29 //ana->SetEventSelectionBit(AliAnalysisHelperJetTasks::kIsPileUp);
\r
30 ana->SetReduceMemoryFootprint(kTRUE);
\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
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
46 mgr->ConnectInput (ana, 0, mgr->GetCommonInputContainer());
\r
47 mgr->ConnectOutput (ana, 0, coutput1 );
\r