corrected TRD/TOF MV position
[u/mrichter/AliRoot.git] / TOF / runTOFCalibTaskOnProof.C
CommitLineData
4db98a6a 1void runTOFCalibTaskOnProof() {
2 TStopwatch timer;
3 timer.Start();
4
5 printf("*** Open PROOF ***");
6
7 gEnv->SetValue("XSec.GSI.DelegProxy","2");
8 TProof::Open("alicecaf");
9
10 gProof->UploadPackage("STEERBase.par");
11 gProof->EnablePackage("STEERBase");
12 gProof->UploadPackage("ESD.par");
13 gProof->EnablePackage("ESD");
14 gProof->UploadPackage("AOD.par");
15 gProof->EnablePackage("AOD");
16 gProof->UploadPackage("ANALYSIS.par");
17 gProof->EnablePackage("ANALYSIS");
18 gProof->UploadPackage("ANALYSISalice.par");
19 gProof->EnablePackage("ANALYSISalice");
20
21 gProof->Load("AliTOFArray.cxx++g");
22 gProof->Load("AliTOFCalibTask.cxx++g");
23 gROOT->LoadMacro("AddTaskTOFCalib.C");
24 cout << "Loaded AddTaskTOFCalib macro "<< endl;
25
26 gProof->ShowEnabledPackages();
27
28 //ANALYSIS PART
29 //____________________________________________//
30 // Make the analysis manager
31
32 AliAnalysisManager *mgr = new AliAnalysisManager("TestManager");
33 AliESDInputHandler* esdH = new AliESDInputHandler;
34
35 esdH->SetInactiveBranches("FMD CaloCluster");
36 mgr->SetInputEventHandler(esdH);
37
38 Bool_t domc = kFALSE;
39 if (domc) {
40 AliMCEventHandler *mcH = new AliMCEventHandler;
41 mgr->SetMCtruthEventHandler(mcH);
42 }
43
44 //____________________________________________//
45 // 1st TOFCalib task
46
47 AliTOFCalibTask *taskTOFCalib = AddTaskTOFCalib();
48
49 if (!mgr->InitAnalysis()) return;
50 mgr->PrintStatus();
51 mgr->StartAnalysis("proof","/COMMON/COMMON/LHC08c11_10TeV_0.5T",1000);
52
53 timer.Stop();
54 timer.Print();
55}
56