File indexing completed on 2025-08-06 08:13:16
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 require 'fileutils'
0012
0013
0014 in_path = "./condor/intermediate_merge/pp200py8jet10run6_trksAndChargPars_2023may7"
0015 in_pref = "correlatorJetTree.pp200py8jet10run6_trksAndChrgPars_"
0016 in_suff = ".d7m5y2023.root"
0017
0018
0019 out_list = "correlatorJetTree.pp200py8jet10run6_trksAndChrgPars.d7m5y2023.list"
0020 out_file = "correlatorJetTree.pp200py8jet10run6_trksAndChrgPars.d7m5y2023.root"
0021
0022
0023 in_pattern = in_path + "/" + in_pref + "*" + in_suff
0024 in_pattern.gsub!("//", "/")
0025 in_pattern.gsub!("..", ".")
0026
0027
0028 File.open(out_list, "w") { |out|
0029 Dir[in_pattern].each do |file|
0030 out.puts file
0031 end
0032 }
0033
0034
0035 num_files = Dir[in_pattern].size
0036
0037
0038 exec("root -b -q \'MergeFiles.C(#{num_files}, \"#{out_list}\", \"#{out_file}\")\'")
0039
0040