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