Possibility to collect the test statistics
[u/mrichter/AliRoot.git] / test / ppbench / monsim.C
CommitLineData
43664a84 1void monsim(Int_t nev=20){
2 // MonaLisa monitoring
3 gSystem->Load("libNet.so");
4 gSystem->Load("libMonaLisa.so");
5
e4e752b6 6 new TMonaLisaWriter("aliendb3.cern.ch", "Simulation pp", gSystem->Getenv("TEST_PLATFORMID"), gSystem->Getenv("TEST_PLATFORMID"), "global");
43664a84 7
8 gROOT->LoadMacro("sim.C");
9 sim(nev);
31cd34c9 10 if (gMonitoringWriter) gMonitoringWriter->SendProcessingProgress(1,1,kTRUE);
43664a84 11
12 // Send the size of the raw.root file
13
14 FileStat_t buf;
15 gSystem->GetPathInfo("./raw.root",buf);
16
17 TList *valuelist = new TList();
18 valuelist->SetOwner(kTRUE);
19
20 TMonaLisaValue* valdouble = new TMonaLisaValue("raw.root size",buf.fSize);
21 valuelist->Add(valdouble);
22
31cd34c9 23 if (gMonitoringWriter) gMonitoringWriter->SendParameters(valuelist);
43664a84 24 delete valuelist;
25
0541097a 26 printf("#Test finished successfully#\n");
27}