make default plots for the scan
authormivanov <marian.ivanov@cern.ch>
Mon, 14 Jul 2014 14:01:09 +0000 (16:01 +0200)
committermivanov <marian.ivanov@cern.ch>
Mon, 14 Jul 2014 14:01:09 +0000 (16:01 +0200)
test/testdEdx/makeSummary.C [new file with mode: 0644]

diff --git a/test/testdEdx/makeSummary.C b/test/testdEdx/makeSummary.C
new file mode 100644 (file)
index 0000000..ff6e087
--- /dev/null
@@ -0,0 +1,22 @@
+void DrawSysWatchTime(){
+  TString prefix="/hera/alice/marsland/MAF/MAFbenchmark/mcmaker/workdir/test_6_375000_25_20140713_20/";
+  TString listSyswatch = gSystem->GetFromPipe(Form("ls %s/*/mult_10000/event_1/simwatch.log",prefix.Data()));  
+  TObjArray * arraySyswatch= listSyswatch.Tokenize("\n");
+  Int_t nfiles= arraySyswatch->GetEntries();
+  TTree * treeSyswatch[] = new TTree*[nfiles];
+
+  
+  for (Int_t ifile=0; ifile<nfiles; ifile++){
+    treeSyswatch[ifile] = AliSysInfo::MakeTree(arraySyswatch->At(ifile)->GetName());    
+    treeSyswatch[0]->AddFriend( treeSyswatch[ifile],Form("T%d",ifile));
+  }
+
+  treeSyswatch[0]->Draw("deltaT:sname","deltaT>1","");
+  for (Int_t ifile=1; ifile<nfiles; ifile++){
+    treeSyswatch[0]->SetMarkerStyle(25);
+    treeSyswatch[0]->SetMarkerColor(1+ifile);
+    treeSyswatch[0]->Draw(Form("T%d.stampSec-T%d.stampOldSec:sname",ifile,ifile),"deltaT>1","same");    
+  }  
+}
+