Speedup of visualization.
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Jul 2010 14:33:53 +0000 (14:33 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Jul 2010 14:33:53 +0000 (14:33 +0000)
make summary file

TPC/scripts/OCDBscan/makeChain.C [new file with mode: 0644]

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();
+}