3 TString outputFilename = "$PWD/histosBenchmark.root";
5 static const Int_t n=8;
7 TString axes[n] = {"nEvents", "inputSize(kB)", "outputSize(kB)", "realTime(ms)", "cpuTime(ms)", "nTracks", "timestamp (s)", "nV0s" };
8 Int_t bins[n] = {100, 200, 1000, 600, 1000, 200, 1000, 10};
9 Double_t mins[n]= {0., 0., 0., 0., 0., 0., 0., 0.};
10 Double_t maxs[n]= {100., 200., 1000., 6., 10., 200., 10000, 10.};
12 THnSparseD * s = new THnSparseD("benchmarkInformation", "Benchmark information", n, bins, mins, maxs);
14 for(int i=0; i<n;++i){
15 s->GetAxis(i)->SetName(axes[i]);
16 s->GetAxis(i)->SetTitle(axes[i]);
21 Int_t t = (Int_t) ts.GetSec() ;
22 TNamed *time = new TNamed("time",Form("%d",t));
29 // TH2F* hCpuTimeVsSize;
30 // TH2F* hRealTimeVsSize;
31 // TH2F* hCpuTimeVsTracks;
32 // TH2F* hRealTimeVsTracks;
35 // hCpuTimeVsSize = new TH2F("cpuTimeVsSize","cpu time vs. size", 1000,0,200, 1100,0,11);
36 // hRealTimeVsSize = new TH2F("realTimeVsSize","real time vs. size", 1000,0,200, 1000,0,10);
37 // hCpuTimeVsTracks = new TH2F("cpuTimeVsTracks","cpu time vs. number of tracks", 200,0,200, 1100,0,11);
38 // hRealTimeVsTracks = new TH2F("realTimeVsTracks","real time vs. number of tracks", 200,0,200, 1000,0,10);
40 // histosList.Add(hCpuTimeVsSize);
41 // histosList.Add(hRealTimeVsSize);
42 // histosList.Add(hCpuTimeVsTracks);
43 // histosList.Add(hRealTimeVsTracks);
44 histosList.SaveAs(outputFilename);