]>
Commit | Line | Data |
---|---|---|
85358761 | 1 | AliAnalysisTask *AddTaskHFEQA(Bool_t useMC, Bool_t isAOD, Int_t icollisionsystem = 2, Int_t icent = 2,Int_t debuglevel = 4,Bool_t tpconlydo = kTRUE,Bool_t trdonlydo = kTRUE,Bool_t toftpcdo = kTRUE,Bool_t tpctrddo = kTRUE,Bool_t tpcemcaldo = kTRUE){ |
d1418f51 | 2 | |
3 | // Name | |
4 | TString appendixx("HFEQA"); | |
5 | ||
6 | //set config file name | |
7 | TString configFile("$ALICE_ROOT/PWGHF/hfe/macros/configs/PbPb/ConfigHFEQA.C"); | |
8 | TString checkconfig="ConfigHFEQA"; | |
9 | if (!gROOT->GetListOfGlobalFunctions()->FindObject(checkconfig.Data())) | |
10 | gROOT->LoadMacro(configFile.Data()); | |
11 | ||
12 | AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); | |
13 | AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer(); | |
85358761 | 14 | AliAnalysisTaskHFEQA *task = ConfigHFEQA(useMC,isAOD,icollisionsystem,icent,tpconlydo,trdonlydo,toftpcdo,tpctrddo,tpcemcaldo); |
d1418f51 | 15 | |
16 | mgr->AddTask(task); | |
3cd4d968 | 17 | mgr->AddClassDebug("AliAnalysisTaskHFEQA",debuglevel); |
85358761 | 18 | //mgr->AddClassDebug("AliHFEpid",debuglevel); |
19 | //mgr->AddClassDebug("AliHFEpidTPC",debuglevel); | |
20 | //mgr->AddClassDebug("AliHFEpidTOF",debuglevel); | |
890e8a53 | 21 | mgr->AddClassDebug("AliHFEpidTRD",debuglevel); |
85358761 | 22 | mgr->AddClassDebug("AliHFEtrdPIDqaV1",debuglevel); |
23 | mgr->AddClassDebug("AliPIDResponse",debuglevel); | |
24 | mgr->AddClassDebug("AliTRDPIDResponse",debuglevel); | |
274903eb | 25 | mgr->AddClassDebug("AliTRDPIDReference",debuglevel); |
26 | mgr->AddClassDebug("AliTRDPIDResponseObject",debuglevel); | |
d1418f51 | 27 | |
28 | TString containerName = mgr->GetCommonFileName(); | |
29 | containerName += ":"; | |
30 | containerName += appendixx.Data(); | |
31 | ||
32 | AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer(); | |
33 | mgr->ConnectOutput(task,1, mgr->CreateContainer(Form("list_%s",appendixx.Data()), TList::Class(),AliAnalysisManager::kOutputContainer,containerName.Data())); | |
34 | mgr->ConnectInput(task,0, cinput ); | |
35 | ||
36 | return NULL; | |
37 | ||
38 | ||
39 | } |