]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/scripts/OCDBscan/makeChain.C
Speedup of visualization.
[u/mrichter/AliRoot.git] / TPC / scripts / OCDBscan / makeChain.C
diff --git a/TPC/scripts/OCDBscan/makeChain.C b/TPC/scripts/OCDBscan/makeChain.C
new file mode 100644 (file)
index 0000000..79028ed
--- /dev/null
@@ -0,0 +1,16 @@
+// Make a summary tree
+// Use guiTime with summary file  - it is faster as with chain
+// guiTime calibTimeSummary.root 
+
+
+void MakeChain(const char *prefix){
+  gSystem->Exec(Form("find %s |grep calibTree | grep root > calib.list",prefix));
+  AliXRDPROOFtoolkit::FilterList("calib.list","* dcs",1);
+  AliXRDPROOFtoolkit toolkit;
+  TChain * chain = toolkit.MakeChain("calib.list.Good","dcs",0,2000);
+  chain->Lookup();
+  TTree * tree = chain->CopyTree("1");
+  TFile f("calibTimeSummary.root","recreate");
+  tree->Write("dcs");
+  f.Close();
+}