diff --git a/InnerDetector/InDetExample/InDetBeamSpotExample/cmt/requirements b/InnerDetector/InDetExample/InDetBeamSpotExample/cmt/requirements deleted file mode 100644 index a161f45d9aac248a88c22328c1bcb732c049b7ae..0000000000000000000000000000000000000000 --- a/InnerDetector/InDetExample/InDetBeamSpotExample/cmt/requirements +++ /dev/null @@ -1,65 +0,0 @@ -package InDetBeamSpotExample - -author Juerg Beringer <juerg.beringer@cern.ch> - -use AtlasPolicy AtlasPolicy-* - -# The following is needed to use the fix for the sqlite3 integration into python -#use AtlasPython AtlasPython-* External - -# Get access to rfio.py -#use PyJobTransformsCore PyJobTransformsCore-* Tools - -apply_pattern declare_joboptions files="*.py" -apply_pattern declare_python_modules files="*.py" - -branches python share bin - -# trf in this package should probably not be declared as jobtransforms, since they're -# not based on PyJobTransforms classes -#apply_pattern declare_jobtransforms trfs='-s=$(InDetBeamSpotExample_root)/bin *_trf.py' - -apply_pattern declare_scripts files="-s=$(InDetBeamSpotExample_root)/bin \ - dumpBeamSpot.py \ - checkJobs.py \ - runJobs.py \ - beamSpotT0_ESDToDPD_trf.py \ - beamSpotT0_Vertex_tf.py \ - taskman.py \ - beamspotman.py \ - beamspotnt.py \ - pickleTool.py \ - plotBeamSpotMon.py \ - plotBeamSpotVert.py \ - plotBeamSpotVxVal.py \ - beamSpotT1_Vertex_trf.py \ - dumpLBFileMap.py \ - makeDatasetOnDiskList \ - makeDatasetOnDiskList2 \ - plotBeamSpotCompare.py \ - dqBeamSpot.py \ - periodInfo.py \ - resolveBeamSpotTag.py \ - bsCompare.py \ - getLatestRuns.py \ - updateCoolNtuple.py \ - extractScanInfo.py \ -" - -alias dumpBeamSpot dumpBeamSpot.py -alias checkJobs checkJobs.py -alias runJobs runJobs.py -alias taskman taskman.py -alias beamspotman beamspotman.py -alias beamspotnt beamspotnt.py -alias pickleTool pickleTool.py -alias plotBeamSpotMon plotBeamSpotMon.py -alias plotBeamSpotVert plotBeamSpotVert.py -alias plotBeamSpotVxVal plotBeamSpotVxVal.py -alias dumpLBFileMap dumpLBFileMap.py -alias plotBeamSpotCompare plotBeamSpotCompare.py -alias dqBeamSpot dqBeamSpot.py -alias periodInfo periodInfo.py -alias resolveBeamSpotTag resolveBeamSpotTag.py -alias bsCompare bsCompare.py -alias extractScanInfo extractScanInfo.py diff --git a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/acrontab b/InnerDetector/InDetExample/InDetBeamSpotExample/cron/acrontab deleted file mode 100644 index 96ab1d8c2748f08a472f24033f77b9b79a47e73b..0000000000000000000000000000000000000000 --- a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/acrontab +++ /dev/null @@ -1,17 +0,0 @@ -0 * * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/update-tasks -15 * * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/update-tasks -30 * * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/update-tasks -45 * * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/update-tasks -5 0 * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/update-mon -5 12 * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/update-mon -10 0 * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/update-bcid -10 12 * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/update-bcid -5 6 * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/update-coolntuple -55 5 * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/backup-taskdb -55 22 * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/backup-jobs-castor -59 23 * * 0 lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/backup-taskdb-rotate -5 8 * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/check-failed -5 20 * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/check-failed -6 8 * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/check-quota -6 20 * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/check-quota -30 7 * * * lxplus.cern.ch /afs/cern.ch/user/a/atlidbs/cron/make-periods diff --git a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/backup-jobs-castor b/InnerDetector/InDetExample/InDetBeamSpotExample/cron/backup-jobs-castor deleted file mode 100755 index 7dc01e8238bb80e270c80d33d894a2663cbb6500..0000000000000000000000000000000000000000 --- a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/backup-jobs-castor +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -logdir=/afs/cern.ch/user/a/atlidbs/cron/log/`date '+%Y-%m'` -mkdir -p $logdir -log=$logdir/`date '+backup-jobs-castor-%G-%m-%d-%H-%M.log'` -touch $log - -source /afs/cern.ch/user/a/atlidbs/cron/cronsetup.sh >> $log 2>&1 -cd /afs/cern.ch/user/a/atlidbs/jobs - -beamspotman.py -b --incremental backup data\* >> $log 2>&1 - -touch /afs/cern.ch/user/a/atlidbs/cron/LASTCASTORBACKUP diff --git a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/backup-taskdb b/InnerDetector/InDetExample/InDetBeamSpotExample/cron/backup-taskdb deleted file mode 100755 index 05dfbcab1d95b0e9d6cec3d718ddaab428dabbc1..0000000000000000000000000000000000000000 --- a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/backup-taskdb +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -logdir=/afs/cern.ch/user/a/atlidbs/cron/log/`date '+%Y-%m'` -mkdir -p $logdir -log=$logdir/`date '+backup-taskdb-%G-%m-%d-%H-%M.log'` -touch $log - -source /afs/cern.ch/user/a/atlidbs/cron/cronsetup.sh >> $log 2>&1 - -bakdir=/afs/cern.ch/user/a/atlidbs/bak/taskdb -bakfile="`date '+taskdata-%G-%m-%d-%H.db'`" -bakdb="sqlite_file:$bakdir/$bakfile" -mkdir -p $bakdir - -#cp -p /afs/cern.ch/user/a/atlidbs/jobs/taskdata.db $bakdir/$bakfile -echo "Dumping task database ..." >> $log 2>&1 -echo " from $TASKDB" >> $log 2>&1 -echo " into $bakdb" >> $log 2>&1 -echo "" >> $log 2>&1 - -taskman.py -b -d $bakdb init >> $log 2>&1 -taskman.py -d $bakdb import $TASKDB >> $log 2>&1 - -echo '' >> $log 2>&1 -ls -ltr $bakdir >> $log 2>&1 diff --git a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/backup-taskdb-rotate b/InnerDetector/InDetExample/InDetBeamSpotExample/cron/backup-taskdb-rotate deleted file mode 100755 index d38bf9bc7cda2d6b813c9b66dfe47a81df8e1d3e..0000000000000000000000000000000000000000 --- a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/backup-taskdb-rotate +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -bakdir=/afs/cern.ch/user/a/atlidbs/bak/taskdb - -rm -rf $bakdir.4 -mv $bakdir.3 $bakdir.4 -mv $bakdir.2 $bakdir.3 -mv $bakdir.1 $bakdir.2 -mv $bakdir $bakdir.1 -mkdir $bakdir diff --git a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/check-failed b/InnerDetector/InDetExample/InDetBeamSpotExample/cron/check-failed deleted file mode 100755 index 0957f7a92c71512593746263a0e8c36466dcdc15..0000000000000000000000000000000000000000 --- a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/check-failed +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -# Send an email reporting any failed jobs in last 24 hours - -logdir=/afs/cern.ch/user/a/atlidbs/cron/log/`date '+%Y-%m'` -mkdir -p $logdir -log=$logdir/`date '+check-failed-%G-%m-%d-%H-%M.log'` -touch $log - -source /afs/cern.ch/user/a/atlidbs/cron/cronsetup.sh >> $log 2>&1 -cd /afs/cern.ch/user/a/atlidbs/jobs - -taskman.py --runtaskname DB_BEAMSPOT notifyFailed 86400 diff --git a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/check-quota b/InnerDetector/InDetExample/InDetBeamSpotExample/cron/check-quota deleted file mode 100755 index 28b2054db3f8566863bef4e5056c371b20170c21..0000000000000000000000000000000000000000 --- a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/check-quota +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -# Check quota and send mail if above certain percent - -source /afs/cern.ch/user/a/atlidbs/cron/mailwrapper - -max=90 -space=$( fs lq ~atlidbs/jobs | awk -F ' ' '{print $4}' | tail -n 1 | tr -d '%<') - -[[ $space -gt $max ]] && mailwrapper "[atlidbs] Approaching Quota limit for jobs" "Quota for ~atlidbs/jobs is ${space}%, which exceds ${max}% threshold" diff --git a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/cronsetup.sh b/InnerDetector/InDetExample/InDetBeamSpotExample/cron/cronsetup.sh deleted file mode 100755 index 370a04a06c37c7571533ddabb6001b44375445c9..0000000000000000000000000000000000000000 --- a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/cronsetup.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -# General setup for cron jobs: -export AtlasSetup=/afs/cern.ch/atlas/software/dist/AtlasSetup -alias asetup='source $AtlasSetup/scripts/asetup.sh' -asetup="/afs/cern.ch/atlas/software/dist/AtlasSetup/scripts/asetup.sh" -asetup_cfg="/afs/cern.ch/user/a/atlidbs/cron/asetup.cron" -source "$asetup" --input "$asetup_cfg" -# We need the AtlasProject to get the platform: -project="$(eval "echo \$${AtlasProject}_PLATFORM")" -project="${project:-$CMTCONFIG}" -csetup="/afs/cern.ch/user/a/atlidbs/cron/build/${project}/setup.sh" -# The cmake setup.sh gives us the built version of the IBDS package: -source "$csetup" -# This variable is used in jobs submitted by JobRunner: -export CMDSETUP="source '$asetup' --input '$asetup_cfg' && source '$csetup'" -unset asetup asetup_cfg project csetup - -# Environment: -export TASKDB='auth_file:/afs/cern.ch/user/a/atlidbs/private/beamspotdbinfo_w.dat' - -# Debugging output (in case of network problems): -echo '------------------------------' -echo "Host name = ${HOSTNAME}" -echo '------------------------------' -echo '/usr/bin/klist:' -/usr/bin/klist -echo '------------------------------' -echo '/usr/bin/kvno host/lxadm10.cern.ch' -/usr/bin/kvno host/lxadm10.cern.ch -echo '------------------------------' -echo '/usr/bin/tokens' -/usr/bin/tokens -echo '------------------------------' -echo '/usr/bin/id' -/usr/bin/id -echo '------------------------------' -echo 'Executables:' -which beamspotman.py -which beamspotnt.py -which taskman.py -echo '------------------------------' diff --git a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/mailwrapper b/InnerDetector/InDetExample/InDetBeamSpotExample/cron/mailwrapper deleted file mode 100755 index 8c2ebf0dfb801c3779294a47767873bf658035fe..0000000000000000000000000000000000000000 --- a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/mailwrapper +++ /dev/null @@ -1,7 +0,0 @@ -mailwrapper() { -addresses=$(cat /afs/cern.ch/user/a/atlidbs/private/email_addresses | grep -Ev '^#' | tr '\n' ' ') - -mail -s "$1" $(echo $addresses) <<EOF -$2 -EOF -} diff --git a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/make-periods b/InnerDetector/InDetExample/InDetBeamSpotExample/cron/make-periods deleted file mode 100755 index 025cbcabcafdc9dc33029a61a375001db15e3985..0000000000000000000000000000000000000000 --- a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/make-periods +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env bash - -# Make lists of runs per period - -logdir=/afs/cern.ch/user/a/atlidbs/cron/log/`date '+%Y-%m'` -mkdir -p $logdir -log=$logdir/`date '+make-periods-%G-%m-%d-%H-%M.log'` -touch $log - -source /afs/cern.ch/user/a/atlidbs/cron/cronsetup.sh >> $log 2>&1 -cd /afs/cern.ch/user/a/atlidbs/jobs - -periodInfo.py -c /afs/cern.ch/user/a/atlidbs/private/atlidbs-only/ami.conf >> $log 2>&1 - -echo "" >> $log 2>&1 -echo "Running getLatestRuns.py ..." >> $log 2>&1 -getLatestRuns.py 2419200 LastMonth >> $log 2>&1 -getLatestRuns.py 604800 LastWeek >> $log 2>&1 - -echo "" >> $log 2>&1 -echo "Making plot for last week" >> $log 2>&1 -plotdir=/afs/cern.ch/user/a/atlidbs/nt/webplots/ -plotname=$plotdir/summary-weekly-tmp -echo "Running command:" >> $log -echo "beamspotnt.py -b -f /afs/cern.ch/user/a/atlidbs/nt/cool/beamspotnt-COOL-Current.root -o $plotname.eps,$plotname.pdf,$plotname.gif --perioddef /afs/cern.ch/user/a/atlidbs/nt/DataPeriods --period data_latest.LastWeek --timeaxis summary" >> $log -beamspotnt.py -b -f /afs/cern.ch/user/a/atlidbs/nt/cool/beamspotnt-COOL-Current.root -o $plotname.eps,$plotname.pdf,$plotname.gif --perioddef /afs/cern.ch/user/a/atlidbs/nt/DataPeriods --period data_latest.LastWeek --timeaxis summary >> $log 2>&1 -mv $plotname.eps $plotdir/summary-weekly.eps >> $log 2>&1 -mv $plotname.pdf $plotdir/summary-weekly.pdf >> $log 2>&1 -mv $plotname.gif $plotdir/summary-weekly.gif >> $log 2>&1 - -echo "" >> $log 2>&1 -echo "Making plot for last month" >> $log 2>&1 -plotnameW=$plotdir/summary-monthly-tmp -beamspotnt.py -b -f /afs/cern.ch/user/a/atlidbs/nt/cool/beamspotnt-COOL-Current.root -o $plotnameW.eps,$plotnameW.pdf,$plotnameW.gif --perioddef /afs/cern.ch/user/a/atlidbs/nt/DataPeriods --period data_latest.LastMonth --timeaxis summary >> $log 2>&1 -mv $plotnameW.eps $plotdir/summary-monthly.eps >> $log 2>&1 -mv $plotnameW.pdf $plotdir/summary-monthly.pdf >> $log 2>&1 -mv $plotnameW.gif $plotdir/summary-monthly.gif >> $log 2>&1 - diff --git a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/update-bcid b/InnerDetector/InDetExample/InDetBeamSpotExample/cron/update-bcid deleted file mode 100755 index 9f5bc09971c86fde172867232628d6a2116a03d0..0000000000000000000000000000000000000000 --- a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/update-bcid +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -logdir=/afs/cern.ch/user/a/atlidbs/cron/log/`date '+%Y-%m'` -mkdir -p $logdir -log=$logdir/`date '+update-bcid-%G-%m-%d-%H-%M.log'` -touch $log - -source /afs/cern.ch/user/a/atlidbs/cron/cronsetup.sh >> $log 2>&1 -cd /afs/cern.ch/user/a/atlidbs/jobs - -beamspotman.py -b -t IndetBeampos-ES1-UPD2 --runtaskname DB_BEAMSPOT runBCIDJobs 86400 >> $log 2>&1 diff --git a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/update-coolntuple b/InnerDetector/InDetExample/InDetBeamSpotExample/cron/update-coolntuple deleted file mode 100755 index 03c5eef20b2ed5e9316669ffd7eaf200a29b4452..0000000000000000000000000000000000000000 --- a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/update-coolntuple +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -# Update ntuple from COOL tag - -logdir=/afs/cern.ch/user/a/atlidbs/cron/log/`date '+%Y-%m'` -mkdir -p $logdir -log=$logdir/`date '+update-coolntuple-%G-%m-%d-%H-%M.log'` -touch $log - -source /afs/cern.ch/user/a/atlidbs/cron/cronsetup.sh >> $log 2>&1 -cd /afs/cern.ch/user/a/atlidbs/jobs - -updateCoolNtuple.py >> $log 2>&1 diff --git a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/update-mon b/InnerDetector/InDetExample/InDetBeamSpotExample/cron/update-mon deleted file mode 100755 index 59c3cfc3b14e98f04a420067e02519d48e305b8b..0000000000000000000000000000000000000000 --- a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/update-mon +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -logdir=/afs/cern.ch/user/a/atlidbs/cron/log/`date '+%Y-%m'` -mkdir -p $logdir -log=$logdir/`date '+update-mon-%G-%m-%d-%H-%M.log'` -touch $log - -source /afs/cern.ch/user/a/atlidbs/cron/cronsetup.sh >> $log 2>&1 -cd /afs/cern.ch/user/a/atlidbs/jobs - -beamspotman.py -b -t IndetBeampos-RUN2-ES1-UPD2 --runtaskname DB_BEAMSPOT runMonJobs 86400 >> $log 2>&1 diff --git a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/update-tasks b/InnerDetector/InDetExample/InDetBeamSpotExample/cron/update-tasks deleted file mode 100755 index 5cc1563c02055b08211f3ce720df3765ca6e7f86..0000000000000000000000000000000000000000 --- a/InnerDetector/InDetExample/InDetBeamSpotExample/cron/update-tasks +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -logdir=/afs/cern.ch/user/a/atlidbs/cron/log/`date '+%Y-%m'` -mkdir -p $logdir -log=$logdir/`date '+update-tasks-%G-%m-%d-%H-%M.log'` -touch $log - -source /afs/cern.ch/user/a/atlidbs/cron/cronsetup.sh >> $log 2>&1 -cd /afs/cern.ch/user/a/atlidbs/jobs - -taskman.py update >> $log 2>&1 -beamspotman.py postproc >> $log 2>&1 - -touch /afs/cern.ch/user/a/atlidbs/cron/LASTUPDATE