]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/global/fladevMacros/rawToFlat/createHistos.C
added conversion shell scripts
[u/mrichter/AliRoot.git] / HLT / global / fladevMacros / rawToFlat / createHistos.C
1 void createHistos(){
2   
3         TString outputFilename = "$PWD/histosBenchmark.root";
4         
5         static const Int_t n=8;
6         
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.};
11         
12         THnSparseD * s = new THnSparseD("benchmarkInformation", "Benchmark information", n, bins, mins, maxs);
13         
14         for(int i=0; i<n;++i){
15                 s->GetAxis(i)->SetName(axes[i]);
16                 s->GetAxis(i)->SetTitle(axes[i]);
17         }
18         
19         
20         TTimeStamp ts;
21         Int_t t = (Int_t) ts.GetSec() ;
22         TNamed *time = new TNamed("time",Form("%d",t));
23         
24         
25         TList histosList;
26         histosList.Add(s);
27         histosList.Add(time);
28         
29  // TH2F* hCpuTimeVsSize;
30  // TH2F* hRealTimeVsSize;
31  // TH2F* hCpuTimeVsTracks;
32  // TH2F* hRealTimeVsTracks;
33   
34   
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);
39
40 //      histosList.Add(hCpuTimeVsSize);
41 //      histosList.Add(hRealTimeVsSize);
42 //      histosList.Add(hCpuTimeVsTracks);
43 //      histosList.Add(hRealTimeVsTracks);
44         histosList.SaveAs(outputFilename);
45         
46         
47         
48         
49         
50 }