2 // This is the macro to start the task measuring the beam spot size.
4 void runTaskVtXY(Char_t *dataset="/COMMON/COMMON/LHC09a4_run8100X#esdTree") {
7 cerr<<"Proof session has not been open !"<<endl;
11 // Enable the needed packages
12 gProof->UploadPackage("STEERBase");
13 gProof->EnablePackage("STEERBase");
14 gProof->UploadPackage("ESD");
15 gProof->EnablePackage("ESD");
16 gProof->UploadPackage("AOD");
17 gProof->EnablePackage("AOD");
18 gProof->UploadPackage("ANALYSIS");
19 gProof->EnablePackage("ANALYSIS");
20 gProof->UploadPackage("ANALYSISalice");
21 gProof->EnablePackage("ANALYSISalice");
23 // Create the analysis manager
24 mgr = new AliAnalysisManager("testAnalysis");
26 gProof->Load("AliAnalysisTaskVtXY.cxx++g");
27 task = new AliAnalysisTaskVtXY;
30 AliESDInputHandler* esdHandler = new AliESDInputHandler;
31 mgr->SetInputEventHandler(esdHandler);
34 cInput = mgr->CreateContainer("cInput", TChain::Class(),
35 AliAnalysisManager::kInputContainer);
36 mgr->ConnectInput(task, 0, mgr->GetCommonInputContainer());
39 cOutput= mgr->CreateContainer("cOutput", TList::Class(),
40 AliAnalysisManager::kOutputContainer, "VtXY.root");
41 mgr->ConnectOutput(task, 0, cOutput);
43 // Enable debug printouts
44 mgr->SetDebugLevel(2);
49 mgr->StartAnalysis("proof",dataset);