How to merge large number of Files?

I have a large set of input files I want to merge them into one file

there are about 1000 files I want to merge them but the ordinary way of using hadd as

hadd output.root input1.root input2.root input3.root .... etc

it is very time consuming so is there a method to do it simpler like option to merge all root files in the directory Folder

Note: all my 1000 are difference in name by a number like input1.root until input1000.root

How about the following?

hadd output.root input*.root
1 Like

yes it works fine with me

Thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.