AliPhysics  b555aef (b555aef)
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 *period="LHC15o",
3  const char *systematic="central",
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  period,
14  systematic,
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 
int Int_t
Definition: External.C:63
AliAnalysisTaskSEImproveITS * AddTaskImproveITS(Bool_t isRunInVertexing=kFALSE, const char *period="LHC15o", const char *systematic="central", Int_t ndebug=0)
bool Bool_t
Definition: External.C:53