]>
Commit | Line | Data |
---|---|---|
b6427aac | 1 | AliAnalysisTaskSEImproveITS *AddTaskImproveITS(Bool_t isRunInVertexing=kFALSE, // set to kTRUE to run during AODvertexingHF creation |
bdfb25de | 2 | const char *resfileCurURI="$ALICE_ROOT/PWGHF/vertexingHF/upgrade/ITSgraphs_Current.root", |
3 | const char *resfileUpgURI="$ALICE_ROOT/PWGHF/vertexingHF/upgrade/ITSgraphs_NewAll-X0.3-Res4um.root", | |
b6427aac | 4 | Int_t ndebug=0) { |
2d4517ec | 5 | AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); |
6 | if (!mgr) { | |
7 | ::Error("AddAliAnalysisTaskSEImproveITS", "No analysis manager to connect to."); | |
8 | return 0; | |
9 | } | |
10 | ||
11 | AliAnalysisTaskSEImproveITS *task | |
12 | =new AliAnalysisTaskSEImproveITS("ITSImprover", | |
13 | resfileCurURI, | |
14 | resfileUpgURI, | |
b6427aac | 15 | isRunInVertexing, |
2d4517ec | 16 | ndebug); |
17 | mgr->AddTask(task); | |
18 | ||
19 | TString outputFileName=AliAnalysisManager::GetCommonFileName(); | |
20 | outputFileName+=":ITSImprover"; | |
21 | AliAnalysisDataContainer *coutput | |
22 | =mgr->CreateContainer("debug", | |
23 | TNtuple::Class(), | |
24 | AliAnalysisManager::kOutputContainer, | |
25 | outputFileName); | |
26 | ||
27 | mgr->ConnectInput (task,0,mgr->GetCommonInputContainer()); | |
28 | mgr->ConnectOutput(task,1,coutput); | |
29 | ||
30 | return task; | |
31 | } | |
32 |