Skip to content
Snippets Groups Projects
Commit f996c693 authored by FaserMC's avatar FaserMC
Browse files

Merge remote-tracking branch 'upstream/master' into recotag

parents 5fa15838 5ba6ee28
Branches
No related tags found
No related merge requests found
...@@ -62,6 +62,9 @@ if len(dirlist) == 0: ...@@ -62,6 +62,9 @@ if len(dirlist) == 0:
print(f"No HITS file found in directory {args.dir_path}") print(f"No HITS file found in directory {args.dir_path}")
sys.exit(1) sys.exit(1)
print("HITS files available:")
[print(file) for file in dirlist]
for seg in seglist: for seg in seglist:
# Assume these are in numerical order from 0 # Assume these are in numerical order from 0
if seg >= len(dirlist): if seg >= len(dirlist):
...@@ -73,9 +76,12 @@ for seg in seglist: ...@@ -73,9 +76,12 @@ for seg in seglist:
# Check if segment number exists in hits file (this is not perfect) # Check if segment number exists in hits file (this is not perfect)
segstr = f"{seg:05d}" segstr = f"{seg:05d}"
if segstr not in dirlist[seg]: if segstr not in dirlist[seg].name:
print(f"Segment {segstr} not in file {dirlist[seg]}!") print(f"Segment {segstr} not in file {dirlist[seg].name}!")
if not args.partial: sys.exit(1) # abort if not args.partial: sys.exit(1) # abort
else:
print(f"Segment {segstr} found in file {dirlist[seg]}")
filelist.append(dirlist[seg]) filelist.append(dirlist[seg])
if len(filelist) == 0: if len(filelist) == 0:
......
...@@ -52,7 +52,7 @@ elif args.testBeam: ...@@ -52,7 +52,7 @@ elif args.testBeam:
runtype = "TestBeamData" runtype = "TestBeamData"
else: else:
print(f"Assuming TI12 geometry")
runtype = "TI12Data03" runtype = "TI12Data03"
# Try to pick correct geometry from run number # Try to pick correct geometry from run number
......
...@@ -123,8 +123,8 @@ cd "$release_directory" ...@@ -123,8 +123,8 @@ cd "$release_directory"
# #
# Do this by hand # Do this by hand
asetup --input=calypso/asetup.faser Athena,22.0.49 asetup --input=calypso/asetup.faser Athena,22.0.49
source build/x86*/setup.sh source run/setup.sh
# #source build/x86*/setup.sh
# #
# Try to find a release tag # Try to find a release tag
cd calypso cd calypso
...@@ -158,11 +158,13 @@ cd "$file_stem" ...@@ -158,11 +158,13 @@ cd "$file_stem"
# #
# Run job # Run job
if [[ -z "$tag" ]]; then if [[ -z "$tag" ]]; then
faserMDC_reco.py "--nevents=$nevents" "$file_path" tagstr=""
else else
faserMDC_reco.py "--nevents=$nevents" "--reco=$tag" "$file_path" tagstr="--reco=$tag"
fi fi
# #
faser_reco.py "--nevents=$nevents" $tagstr "$file_path"
#
# Print out ending time # Print out ending time
date date
echo "Job finished after $SECONDS seconds" echo "Job finished after $SECONDS seconds"
...@@ -172,26 +174,30 @@ export EOS_MGM_URL=root://eospublic.cern.ch ...@@ -172,26 +174,30 @@ export EOS_MGM_URL=root://eospublic.cern.ch
# #
if ! [ -z "$outdest" ] if ! [ -z "$outdest" ]
then then
echo "Output directory:"
ls -l ls -l
echo "copy *-RDO.root to $outdest" echo "copy *-xAOD.root to $outdest"
mkdir -p $outdest eos mkdir -p $outdest
# Keep this line from stopping script, so we might get a log file # Keep this line from stopping script, so we might get a log file
# || true ensures script continues even if copy fails
eos cp *-xAOD.root ${outdest}/ || true eos cp *-xAOD.root ${outdest}/ || true
fi fi
# #
# Also copy log file # Copy log file second
if ! [ -z "$logdest" ] if ! [ -z "$logdest" ]
then then
cd .. cd ..
echo "Working directory:"
ls -l ls -l
echo "copy $logfile to $logdest" echo "copy $logfile to $logdest"
mkdir -p $logdest eos mkdir -p $logdest
eos cp $logfile $logdest/$logfile eos cp $logfile $logdest/$logfile
elif ! [ -z "$outdest" ] elif ! [ -z "$outdest" ]
then then
cd .. cd ..
echo "Working directory:"
ls -l ls -l
echo "copy $logfile to $outdest" echo "copy $logfile to $outdest"
mkdir -p $outdest eos mkdir -p $outdest
eos cp $logfile $outdest/$logfile eos cp $logfile $outdest/$logfile
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment