Skip to content

Commit

Permalink
feat: add epic.unstable testing version to s3tool.rb (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks authored Apr 28, 2023
1 parent d6ad35d commit 5277db3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions s3tools/s3tool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}" },
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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 ##################


Expand Down

0 comments on commit 5277db3

Please sign in to comment.