]>
Commit | Line | Data |
---|---|---|
ab846928 | 1 | AliAnalysisTaskITSTrackingCheck *AddTaskPerformanceITS(Bool_t readMC=kTRUE, |
2 | Bool_t readRP=kFALSE) | |
8d63376d | 3 | { |
4 | // | |
5 | // Task for check of ITS tracking | |
6 | // | |
7 | // andrea.dainese@pd.infn.it | |
8 | // | |
9 | ||
10 | ||
11 | // Get the pointer to the existing analysis manager via the static access method. | |
12 | //============================================================================== | |
13 | AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); | |
14 | if (!mgr) { | |
15 | ::Error("AddTask", "No analysis manager to connect to."); | |
16 | return NULL; | |
17 | } | |
18 | ||
19 | // Create the task | |
20 | AliAnalysisTaskITSTrackingCheck *taskITS = new AliAnalysisTaskITSTrackingCheck("ITStracking"); | |
21 | taskITS->SetReadMC(readMC); | |
ab846928 | 22 | taskITS->SetReadRPLabels(readRP); |
8d63376d | 23 | AliLog::SetClassDebugLevel("AliAnalysisTaskITSTrackingCheck",10); |
24 | // Add to the manager | |
25 | mgr->AddTask(taskITS); | |
26 | ||
27 | // | |
28 | // Create containers for input/output | |
29 | AliAnalysisDataContainer *cInputITS = mgr->CreateContainer("cInputITS",TChain::Class(),AliAnalysisManager::kInputContainer); | |
30 | ||
31 | AliAnalysisDataContainer *cOutputITS = mgr->CreateContainer("cOutputITS",TList::Class(),AliAnalysisManager::kOutputContainer,"ITS.Performance.root"); | |
32 | ||
33 | ||
34 | // Attach input | |
35 | mgr->ConnectInput(taskITS,0,mgr->GetCommonInputContainer()); | |
36 | // Attach output | |
37 | mgr->ConnectOutput(taskITS,0,cOutputITS); | |
38 | ||
39 | return taskITS; | |
40 | } |