]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGPP/VZERO/AddTaskVZEROPbPb.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGPP / VZERO / AddTaskVZEROPbPb.C
CommitLineData
aea8bf4d 1AliAnalysisTaskSE* AddTaskVZEROPbPb(Int_t runNumber)
2{
3 // Creates a PbPb QA task for VZERO
4
5 // Get the pointer to the existing analysis manager via the static access method.
6 //==============================================================================
7 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
8 if (!mgr) {
9 ::Error("AddTaskQAsym", "No analysis manager to connect to.");
10 return NULL;
11 }
12
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");
17 return NULL;
18 }
19 TString inputDataType = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD"
20
21 // Configure analysis
22 //===========================================================================
23
24
25
26 AliAnaVZEROPbPb* task = new AliAnaVZEROPbPb("AliAnaVZEROPbPb");
c5c72a22 27 task->SetEquaMultRange(800,800.);
28 task->SetSumEquaMultRange(100,15000.,20000.);
1c8bbd7f 29
93ad9b32 30 if(runNumber>194683)
31 task->SetClassesNames("CTRUE-,CINT7-,CINT7WU-,CVGO-,CVLN-,CVLNWU-,CMUP3-");
32 else if(runNumber>166532)
a6d6c8ca 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-");
1c8bbd7f 34 else
a6d6c8ca 35 task->SetClassesNames("CTRUE-,CVLN-,CVHN-,CPBI1-,CPBI2-,C0HWU-");
1c8bbd7f 36
a6d6c8ca 37 mgr->AddTask(task);
aea8bf4d 38
39 AliAnalysisDataContainer *cout = mgr->CreateContainer("PbPbVZEROHists",TList::Class(),
40 AliAnalysisManager::kOutputContainer, Form("%s:VZERO_PbPb_Performance",
41 mgr->GetCommonFileName()));
42
43 mgr->ConnectInput (task, 0, mgr->GetCommonInputContainer());
44 mgr->ConnectOutput (task, 1, cout);
45
46 return task;
47
48
49}
50
51