1 AliAnalysisTaskSE* AddTaskVZEROPbPb(Int_t runNumber)
3 // Creates a PbPb QA task for VZERO
5 // Get the pointer to the existing analysis manager via the static access method.
6 //==============================================================================
7 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
9 ::Error("AddTaskQAsym", "No analysis manager to connect to.");
13 // Check the analysis type using the event handlers connected to the analysis manager.
14 //==============================================================================
15 if (!mgr->GetInputEventHandler()) {
16 ::Error("AddTasQAsym", "This task requires an input event handler");
19 TString inputDataType = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD"
22 //===========================================================================
26 AliAnaVZEROPbPb* task = new AliAnaVZEROPbPb("AliAnaVZEROPbPb");
27 task->SetEquaMultRange(800,800.);
28 task->SetSumEquaMultRange(100,15000.,20000.);
31 task->SetClassesNames("CTRUE-,CINT7-,CINT7WU-,CVGO-,CVLN-,CVLNWU-,CMUP3-");
32 else if(runNumber>166532)
33 task->SetClassesNames("CTRUE-,C0HWU-,CPBI2WU-,CPBI2-,CPBI2WU_B1-,CPBI2_B1-,CPBI1WU-,CPBI1-,CVHNWU-,CVHN-,CVHN_R2-,CVHNWU_R2-,CVLNWU-,CVLN-,CVLN_R1-,CVLN_B2-,CVLNWU_R1-,CVLNWU_B2-");
35 task->SetClassesNames("CTRUE-,CVLN-,CVHN-,CPBI1-,CPBI2-,C0HWU-");
39 AliAnalysisDataContainer *cout = mgr->CreateContainer("PbPbVZEROHists",TList::Class(),
40 AliAnalysisManager::kOutputContainer, Form("%s:VZERO_PbPb_Performance",
41 mgr->GetCommonFileName()));
43 mgr->ConnectInput (task, 0, mgr->GetCommonInputContainer());
44 mgr->ConnectOutput (task, 1, cout);