![]() |
|
|||
File indexing completed on 2025-08-05 08:10:58
0001 #!/usr/bin/env ruby 0002 # ----------------------------------------------------------------------------- 0003 # 'MergeFilesFromList.rb' 0004 # Derek Anderson 0005 # 05.08.2023 0006 # 0007 # For merging files from a specific list (e.g. you've 0008 # prepared a list of good files and want to merge only 0009 # those). 0010 # ----------------------------------------------------------------------------- 0011 0012 # modules to use 0013 require 'fileutils' 0014 0015 # i/o parameters 0016 in_list = "checkingTrackTuples.goodFiles_embedOnly0200s.run6n100pt2040pim.d8m5y2023.list" 0017 out_file = "sPhenixG4_forPtCheck_embedOnly0200s_goodFiles_g4svtxeval.run6n100pt2040pim.d8m5y2023.root" 0018 0019 # count how many files there are 0020 num_files = 0 0021 File.open(in_list) { |list| 0022 num_files = list.read.count("\n") 0023 } 0024 0025 # merge files 0026 exec("root -b -q \'MergeFiles.C(#{num_files}, \"#{in_list}\", \"#{out_file}\")\'") 0027 0028 # end -------------------------------------------------------------------------
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |