]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGPP/VZERO/AddTaskVZEROPbPb.C
Reading PMT gains from an external file
[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
30 if(runNumber>166532)
a6d6c8ca 31 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 32 else
a6d6c8ca 33 task->SetClassesNames("CTRUE-,CVLN-,CVHN-,CPBI1-,CPBI2-,C0HWU-");
1c8bbd7f 34
a6d6c8ca 35 mgr->AddTask(task);
aea8bf4d 36
37 AliAnalysisDataContainer *cout = mgr->CreateContainer("PbPbVZEROHists",TList::Class(),
38 AliAnalysisManager::kOutputContainer, Form("%s:VZERO_PbPb_Performance",
39 mgr->GetCommonFileName()));
40
41 mgr->ConnectInput (task, 0, mgr->GetCommonInputContainer());
42 mgr->ConnectOutput (task, 1, cout);
43
44 return task;
45
46
47}
48
49