AliPhysics  v5-06-40-01 (42bb456)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AddTaskImproveITS.C
Go to the documentation of this file.
1 AliAnalysisTaskSEImproveITS *AddTaskImproveITS(Bool_t isRunInVertexing=kFALSE, // set to kTRUE to run during AODvertexingHF creation
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",
4  Int_t ndebug=0) {
5  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
6  if (!mgr) {
7  ::Error("AddAliAnalysisTaskSEImproveITS", "No analysis manager to connect to.");
8  return 0;
9  }
10 
12  =new AliAnalysisTaskSEImproveITS("ITSImprover",
13  resfileCurURI,
14  resfileUpgURI,
15  isRunInVertexing,
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 
AliAnalysisTaskSEImproveITS * AddTaskImproveITS(Bool_t isRunInVertexing=kFALSE, const char *resfileCurURI="$ALICE_ROOT/PWGHF/vertexingHF/upgrade/ITSgraphs_Current.root", const char *resfileUpgURI="$ALICE_ROOT/PWGHF/vertexingHF/upgrade/ITSgraphs_NewAll-X0.3-Res4um.root", Int_t ndebug=0)