Skip to content

Commit

Permalink
Merge pull request #10 from rlcee/crv_22
Browse files Browse the repository at this point in the history
Crv 22
  • Loading branch information
rlcee authored Dec 4, 2024
2 parents 6a29c37 + 41538ef commit 466293d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions Campaigns/CRVWB/reco.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RCT=0
source /cvmfs/mu2e.opensciencegrid.org/setupmu2e-art.sh
printenv
muse setup ops
printenv
#printenv
spack load $MOO_CRVTESTSTAND

# modify CRV exe control to use local directory
Expand Down Expand Up @@ -100,16 +100,23 @@ do
RCT=$((RCT+$?))

FLAG=""
MAPFILE=""
FCF=$(echo $BNAME | awk -F. '{print $4}')
[[ "$FCF" =~ "crvled" ]] && FLAG="-p"
# if aging config >= 10, add a map file
if [[ "$FCF" =~ "crvaging" ]]; then
ADN=$(echo $FCF | awk -F- '{print $2}')
if [[ "$ADN" > "009" ]]; then
FLAG="$FLAG --channelMap $CRVTESTSTAND_FQ_DIR/eventdisplay/channelMapCrvAging${ADN}.txt"
MAPFILE="$CRVTESTSTAND_DIR/eventdisplay/channelMapCrvAging${ADN}.txt"
if [ ! -e $MAPFILE ]; then
tee_date "Warning - map file expected, but not found: $MAPFILE"
else
FLAG="$FLAG --channelMap $MAPFILE"
fi
fi
fi

# do not fail if map file not found - check removed on request
tee_date "Running recoCrv $SEQ $FLAG"
recoCrv $SEQ $FLAG
RCT=$((RCT+$?))
Expand Down
2 changes: 1 addition & 1 deletion Util/pushOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ def writeLog(dfile):
verbose = 1
retries = [0,10,30]
runTime = int( time.time() )
recoverDelay = 7200
recoverDelay = 3600

# samweb functions are methods of global objects
samweb = samweb_client.SAMWebClient()
Expand Down

0 comments on commit 466293d

Please sign in to comment.