18 |
|
# |
19 |
|
# prepare input sandbox |
20 |
|
# |
21 |
+ |
g++ sweepRoot.C -o sweepRoot `root-config --cflags --libs` |
22 |
|
cd ${DIR}/job_input |
23 |
|
rm input.* |
24 |
+ |
mv ../sweepRoot . |
25 |
|
tar -czf input.tgz --exclude='*CVS*' * |
26 |
|
cd ${DIR} |
27 |
|
|
51 |
|
error =${ERR} |
52 |
|
notification=Never |
53 |
|
x509userproxy=${PROXY} |
54 |
< |
" > condor_${COPYDIRBASE}.cmd |
54 |
> |
" > condor_${COPYDIRBASE##*/}.cmd |
55 |
|
|
56 |
|
# |
57 |
|
# now set the rest of the arguments |
58 |
|
# for each job |
59 |
|
# |
60 |
|
|
61 |
< |
for FILE in `ls ${DATADIR}/*.root`; do |
61 |
> |
if [ -d $DATADIR ]; then |
62 |
> |
DATADIR=${DATADIR}/*.root |
63 |
> |
fi |
64 |
> |
for FILE in `ls ${DATADIR}`; do |
65 |
|
echo " |
66 |
|
executable=${EXE} |
67 |
|
transfer_executable=True |
68 |
|
arguments=`echo ${FILE##*/} | sed 's/\.root//g'` ${DATATYPE} ${FILE} ${REALDATA} ${RUNLIST} ${COPYDIR} |
69 |
|
queue |
70 |
< |
" >> condor_${COPYDIRBASE}.cmd |
70 |
> |
" >> condor_${COPYDIRBASE##*/}.cmd |
71 |
|
done |
72 |
|
|
73 |
< |
echo "[writeConfig] wrote condor_${COPYDIRBASE}.cmd" |
73 |
> |
echo "[writeConfig] wrote condor_${COPYDIRBASE##*/}.cmd" |
74 |
|
|