Merge chain problem

From: er cuji <supericarus2_at_yahoo.it>
Date: Fri, 10 Nov 2006 15:30:21 +0100 (CET)


Hi all, I had a problem with TChain merge: in a macro I am using the following list of commands

TChain *chain_ncal = new TChain("Eventi"); for(int s=0;s<=run_max;s++)
{   

sprintf(fn_root,"Run_%s/run%s.root",namerun[s],namerun[s]);

   printf("%s\n",fn_root);
   chain_ncal->Add(fn_root);
 }
chain_ncal->Print();

This works properly adding to the chain 7 files 4.4MB large. As soon as I add a line like

chain_ncal->Merge("all.root");

it gives me the error

Why? How can I merge the chain into a single file. thx

Francesco



Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it Received on Fri Nov 10 2006 - 15:30:30 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET