Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
calypso
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dave Casper
calypso
Commits
096efe86
Commit
096efe86
authored
3 years ago
by
Eric Torrence
Browse files
Options
Downloads
Plain Diff
Merge branch 'recodev' into 'master'
Reco scripts See merge request
faser/calypso!165
parents
f1a61422
66fb4072
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Control/CalypsoExample/Reconstruction/scripts/submit_faser_reco.sh
+22
-11
22 additions, 11 deletions
...alypsoExample/Reconstruction/scripts/submit_faser_reco.sh
with
22 additions
and
11 deletions
Control/CalypsoExample/Reconstruction/scripts/submit_faser_reco.sh
+
22
−
11
View file @
096efe86
...
...
@@ -2,11 +2,12 @@
# Used with a condor file to submit to vanilla universe
#
# Usage:
# submit_faser_reco.sh file_path [release_directory] [working_directory]
# submit_faser_reco.sh file_path [release_directory] [working_directory]
[nevents]
#
# file_path - full file name (with path)
# release_directory - optional path to release install directory (default pwd)
# working_directory - optional path to output directory location (default pwd)
# nevents - optional number of events to process (default: -1 - all)
#
# The release directory must already be set up
# (so an unqualified asetup can set up the release properly)
...
...
@@ -20,6 +21,7 @@
file_path
=
${
1
}
release_directory
=
${
2
}
working_directory
=
${
3
}
nevents
=
${
4
}
#
# Set defaults if arguments aren't provided
if
[
-z
"
$file_path
"
]
...
...
@@ -37,6 +39,12 @@ if [ -z "$working_directory" ]
then
working_directory
=
`
pwd
`
fi
#
if
[
-z
"
$nevents
"
]
then
nevents
=
"-1"
fi
#
starting_directory
=
`
pwd
`
#
# Now extract the run number and file stem
...
...
@@ -71,7 +79,7 @@ echo "Starting: $starting_directory"
#
# Set up the release (do this automatically)?
export
ATLAS_LOCAL_ROOT_BASE
=
/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
source
$ATLAS_LOCAL_ROOT_BASE
/user/atlasLocalSetup.sh
source
$
{
ATLAS_LOCAL_ROOT_BASE
}
/user/atlasLocalSetup.sh
#
# Try automatic
# Always go back to the starting directory in case paths are relative
...
...
@@ -98,21 +106,24 @@ cd "$starting_directory"
cd
"
$output_directory
"
#
# Remove any previous directory if it exists
if
[[
-e
"
$file_stem
"
]]
;
then
echo
"Remove previous directory
$file_stem
"
rm
-rf
"
$file_stem
"
fi
#
if [[ -e "$file_stem" ]]; then
#
echo "Remove previous directory $file_stem"
#
rm -rf "$file_stem"
#
fi
#
# Make run directory
mkdir
"
$file_stem
"
if
[[
-e
"
$file_stem
"
]]
;
then
echo
"Directory
$file_stem
already exists"
else
mkdir
"
$file_stem
"
fi
cd
"
$file_stem
"
#
# Run job
if
[
-z
"
$rtag
"
]
then
faser_reco.py
"
$file_path
"
if
[[
-z
"
$rtag
"
]]
;
then
faser_reco.py
"--nevents=
$nevents
"
"
$file_path
"
else
faser_reco.py
"--reco=
$rtag
"
"
$file_path
"
faser_reco.py
"--nevents=
$nevents
"
"--reco=
$rtag
"
"
$file_path
"
fi
#
# Print out ending time
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment