From 77485ab666b2aed7398c32e008ed50ab02291a8d Mon Sep 17 00:00:00 2001 From: marian Date: Thu, 8 Jul 2010 14:33:53 +0000 Subject: [PATCH] Speedup of visualization. make summary file --- TPC/scripts/OCDBscan/makeChain.C | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 TPC/scripts/OCDBscan/makeChain.C diff --git a/TPC/scripts/OCDBscan/makeChain.C b/TPC/scripts/OCDBscan/makeChain.C new file mode 100644 index 00000000000..79028ed08bc --- /dev/null +++ b/TPC/scripts/OCDBscan/makeChain.C @@ -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(); +} -- 2.43.0