How to run on multiple root files

Hi developers,

I want to open 15 root files in a script and recreate 15 output files having same histograms. I pass a string but when I run my script it gives me the error and program stops.

SysError in <TFile::TFile>: file nvMergedMiniEvents_0.root can not be opened (Too many open files)
Error in <TROOT::WriteTObject>: The current directory (Rint) is not associated with a file. The object (Z_Inv_mass) has not been written.
Error in <TROOT::WriteTObject>: The current directory (Rint) is not associated with a file. The object (W_Tran_mass) has not been written.

Kindly help me to resolve this.

Cheers,
Nab

Dear nab,

You should post the essential parts of your macro (script) producing the error.

G Ganis

Solved here - SysError in <TFile::TFile>: file 0jet.root can not be opened (Too many open files)

@nab - in the future, please don’t create multiple topics on the same topic, but simply reply to the one you already created. Thanks!