DQM configure file
[u/mrichter/AliRoot.git] / PWGPP / comparison / runProofITSComparison.C
CommitLineData
f2247c19 1void runProofITSComparison(const char * dataset ="/PWG0/COMMON/run30000X_10TeV_0.5T",Long64_t nentries=1000, Long64_t firstentry=0)
31e081ed 2{
3 // Connect to Proof
4 TProof::Open("lxb6046");
5
6 // Upload and enable packages: please use the correct version!
f2247c19 7 gProof->UploadPackage("AF-v4-14");
8 gProof->EnablePackage("AF-v4-14");
31e081ed 9
10 // Create the analysis manager
f2247c19 11 AliAnalysisManager *mgr = new AliAnalysisManager("AliITSComparison");
31e081ed 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("AliMCComparisonTrack.cxx++g");
f2247c19 22 gProof->Load("AliITSComparisonTask.cxx++g");
23 AliAnalysisTask *task = new AliITSComparisonTask("AliITSComparisonTask");
31e081ed 24
25 // Add task
26 mgr->AddTask(task);
27
28 // Create containers for input/output
861795a8 29 AliAnalysisDataContainer* cinput = mgr->GetCommonInputContainer();
f2247c19 30 AliAnalysisDataContainer* coutput =
31 mgr->CreateContainer("coutput", TList::Class(),
32 AliAnalysisManager::kOutputContainer, "AliITSComparisonHist.root");
31e081ed 33
34 // Connect input/output
35 mgr->ConnectInput(task, 0, cinput);
36 mgr->ConnectOutput(task, 1, coutput);
37
38
39 // Enable debug printouts
40 mgr->SetDebugLevel(3);
41
42 if (!mgr->InitAnalysis())
43 return;
44
45 mgr->PrintStatus();
46
47 mgr->StartAnalysis("proof",dataset,nentries,firstentry);
48}
f2247c19 49