]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/scripts/OCDBscan/makeChain.C
composition of the Alluminum alloy that constitutes the ITS-TPC support rings updated...
[u/mrichter/AliRoot.git] / TPC / scripts / OCDBscan / makeChain.C
CommitLineData
77485ab6 1// Make a summary tree
2// Use guiTime with summary file - it is faster as with chain
3// guiTime calibTimeSummary.root
4
5
6void MakeChain(const char *prefix){
7 gSystem->Exec(Form("find %s |grep calibTree | grep root > calib.list",prefix));
8 AliXRDPROOFtoolkit::FilterList("calib.list","* dcs",1);
9 AliXRDPROOFtoolkit toolkit;
10 TChain * chain = toolkit.MakeChain("calib.list.Good","dcs",0,2000);
11 chain->Lookup();
12 TTree * tree = chain->CopyTree("1");
13 TFile f("calibTimeSummary.root","recreate");
14 tree->Write("dcs");
15 f.Close();
16}