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){
4 TString appendixx("HFEQA");
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());
12 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
13 AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer();
14 AliAnalysisTaskHFEQA *task = ConfigHFEQA(useMC,isAOD,icollisionsystem,icent,tpconlydo,trdonlydo,toftpcdo,tpctrddo,tpcemcaldo);
17 mgr->AddClassDebug("AliAnalysisTaskHFEQA",debuglevel);
18 //mgr->AddClassDebug("AliHFEpid",debuglevel);
19 //mgr->AddClassDebug("AliHFEpidTPC",debuglevel);
20 //mgr->AddClassDebug("AliHFEpidTOF",debuglevel);
21 mgr->AddClassDebug("AliHFEpidTRD",debuglevel);
22 mgr->AddClassDebug("AliHFEtrdPIDqaV1",debuglevel);
23 mgr->AddClassDebug("AliPIDResponse",debuglevel);
24 mgr->AddClassDebug("AliTRDPIDResponse",debuglevel);
25 mgr->AddClassDebug("AliTRDPIDReference",debuglevel);
26 mgr->AddClassDebug("AliTRDPIDResponseObject",debuglevel);
28 TString containerName = mgr->GetCommonFileName();
30 containerName += appendixx.Data();
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 );