cosmetics
[u/mrichter/AliRoot.git] / PWGCF / Correlations / DPhi / FourierDecomposition / AddTaskPicoTracksDhc.C
CommitLineData
86088042 1// $Id$\r
2\r
3void AddTaskPicoTracksDhc(\r
4 TString chNOutTracks = "PicoTracks"\r
5) \r
6{\r
38b0271a 7 TString chNIntermTracks = "HybridTracks";\r
8 \r
9 // Get the analysis manager\r
10 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();\r
11 if (!mgr) {\r
12 Error("AddTaskPicoTracksDhc", "No analysis manager found.");\r
13 return;\r
14 }\r
e47b8f11 15 gROOT->LoadMacro("$ALICE_ROOT/PWG/EMCAL/macros/AddTaskEmcalPicoTrackMaker.C");\r
38b0271a 16 \r
17 // ESD or AOD? Create track cuts with pico track maker\r
18 AliEmcalPicoTrackMaker *pTrackTask = 0x0;\r
19 TString chIsESD("ESD");\r
20 \r
21 if (chIsESD.EqualTo(mgr->GetInputEventHandler()->GetDataType())) {\r
22 Info("AddTaskPicoTracksDhc","adding ESD track selection tasks ...");\r
23 // ESD Track Cuts\r
24 gROOT->LoadMacro("$ALICE_ROOT/PWG/EMCAL/macros/AddTaskEmcalEsdTpcTrack.C");\r
25 AliEmcalEsdTpcTrackTask *hybTask = AddTaskEmcalEsdTpcTrack(chNIntermTracks.Data(),"Hybrid_LHC11h",kFALSE);\r
26 // Pico Tracks\r
38b0271a 27 pTrackTask = AddTaskEmcalPicoTrackMaker(chNOutTracks.Data(), chNIntermTracks.Data(), "LHC11h");\r
28 }\r
29 else {\r
30 Info("AddTaskPicoTracksDhc","AOD analysis, adding picotrackmaker ...");\r
31 pTrackTask = AddTaskEmcalPicoTrackMaker(chNOutTracks.Data(),"tracks","lhc11h",kFALSE);\r
32 }\r
e47b8f11 33}\r