Correcly handle centrality bins (Diego)
[u/mrichter/AliRoot.git] / PWGPP / comparison / runProofCheckESD.C
CommitLineData
8858ee12 1void runProofCheckESD(const char * dataset = "/PWG0/COMMON/run30000X_10TeV_0.5T",Long64_t nentries=1000, Long64_t firstentry=0)
2{
3 // Connect to Proof
4 TProof::Open("lxb6046");
5
6 // Upload and enable packages: please use the correct version!
7 gProof->UploadPackage("AF-v4-14");
8 gProof->EnablePackage("AF-v4-14");
9
10 // Create the analysis manager
11 AliAnalysisManager *mgr = new AliAnalysisManager("AliAnalysisTaskCheckESD");
12
13 AliVEventHandler* esdH = new AliESDInputHandler();
14 mgr->SetInputEventHandler(esdH);
15
16 // Enable MC event handler
17 AliVEventHandler* handler = new AliMCEventHandler;
18 mgr->SetMCtruthEventHandler(handler);
19
20 // Create task
21 gProof->Load("AliAnalysisTaskCheckESD.cxx++g");
22 AliAnalysisTask *task = new AliAnalysisTaskCheckESD("AliAnalysisTaskCheckESD");
23
24 // Add task
25 mgr->AddTask(task);
26
27 // Create containers for input/output
861795a8 28 AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer();
8858ee12 29 AliAnalysisDataContainer *coutput =
30 mgr->CreateContainer("coutput", TList::Class(),
31 AliAnalysisManager::kOutputContainer, "Hist.root");
32
33 // Connect input/output
34 mgr->ConnectInput(task, 0, cinput);
35 mgr->ConnectOutput(task, 1, coutput);
36
37
38 // Enable debug printouts
39 mgr->SetDebugLevel(3);
40
41 if (!mgr->InitAnalysis())
42 return;
43
44 mgr->PrintStatus();
45
46 mgr->StartAnalysis("proof",dataset,nentries,firstentry);
47}
48