From 5277db3551842048fee024f96ac45c7e3dc17e8e Mon Sep 17 00:00:00 2001 From: Christopher Dilks Date: Fri, 28 Apr 2023 19:09:19 -0400 Subject: [PATCH] feat: add `epic.unstable` testing version to `s3tool.rb` (#268) --- s3tools/s3tool.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/s3tools/s3tool.rb b/s3tools/s3tool.rb index 0fbbe8e5..5421a9c8 100755 --- a/s3tools/s3tool.rb +++ b/s3tools/s3tool.rb @@ -46,6 +46,13 @@ def ecceQ2range(minQ2,maxQ2) # return file path suffix, for ECCE Q2 ranges # :fileExtension => File extension (optional, defaults to 'root') # } prodSettings = { + 'epic.unstable' => { + :comment => "Latest ePIC TEST sample production; update in #{$0} as needed", + :crossSectionID => Proc.new { |minQ2| "pythia8:#{options.energy}/minQ2=#{minQ2}" }, + :releaseSubDir => Proc.new { "S3/eictest/EPIC/RECO/main/epic_brycecanyon/DIS/NC" }, # FORCE brycecanyon only + :energySubDir => Proc.new { "#{options.energy}" }, + :dataSubDir => Proc.new { |minQ2| "minQ2=#{minQ2}" }, + }, 'epic.23.03.0_pythia8' => { :comment => 'Pythia 8, small sample, 10x100, minQ2=1000 only', :crossSectionID => Proc.new { |minQ2| "pythia8:#{options.energy}/minQ2=#{minQ2}" }, @@ -358,6 +365,7 @@ def mc_cp(srcfile,tgtdir) # pattern: "#{energy}/minQ2=#{minQ2}/" elsif [ + 'epic.unstable', 'epic.23.03.0_pythia8', 'epic.23.01.0', 'epic.22.11.2', @@ -421,6 +429,9 @@ def mc_cp(srcfile,tgtdir) .first(options.limit) end +else + $stderr.puts "\nERROR: production version '#{options.version}' is missing in RELEASE VERSION DEPENDENT part of #{$0}; add it!" + exit 1 end # END RELEASE VERSION DEPENDENT CODE ##################