File indexing completed on 2025-08-06 08:13:23
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 require 'fileutils'
0013
0014
0015 copy_from = "/sphenix/user/danderson/eec/SLambdaJetHunter"
0016 copy_to = "/sphenix/user/danderson/sphenix/analysis/EnergyCorrelatorsJets/ColdQCDENC/SLambdaJetHunter"
0017
0018
0019 to_copy = [
0020 "README.md",
0021 "Fun4All_RunLambdaJetHunter.C",
0022 "LambdaJetHunterOptions.h",
0023 "RunLambdaJetHunter.rb",
0024 "scripts/copy-to-analysis.rb",
0025 "scripts/wipe-source.sh",
0026 "src/SLambdaJetHunter.cc",
0027 "src/SLambdaJetHunter.h",
0028 "src/SLambdaJetHunter.ana.h",
0029 "src/SLambdaJetHunter.sys.h",
0030 "src/SLambdaJetHunterConfig.h",
0031 "src/SLambdaJetHunterLinkDef.h",
0032 "src/autogen.sh",
0033 "src/configure.ac",
0034 "src/Makefile.am",
0035 "src/sphx-build"
0036 ]
0037
0038
0039 to_copy.each do |file|
0040
0041
0042 if file.include? "/"
0043
0044
0045 relative_path = file.clone
0046 relative_path.gsub!(copy_from, "")
0047
0048
0049 relative_path.gsub!("//", "/")
0050 relative_path.gsub!("/./", "/")
0051 relative_path.slice!(relative_path.rindex("/")..-1)
0052
0053
0054 to_make = copy_to + "/" + relative_path
0055 FileUtils.mkdir_p(to_make, :verbose => true) unless File.exists?(to_make)
0056 end
0057
0058
0059 source = copy_from + "/" + file
0060 target = copy_to + "/" + file
0061
0062
0063 source.gsub!("//", "/")
0064 target.gsub!("//", "/")
0065 source.gsub!("/./", "/")
0066 target.gsub!("/./", "/")
0067
0068
0069 FileUtils.cp_r(source, target, :verbose => true)
0070 end
0071
0072