Commit 94756bee authored by Gernot Maier's avatar Gernot Maier
Browse files

prod5b La Palma

parent a0ab6947
Prod5b_LaPalma_AdvancedBaseline_NSB1x_gamma-diffuse_North_20deg_DL1
Prod5b_LaPalma_AdvancedBaseline_NSB1x_gamma-diffuse_South_20deg_DL1
Prod5b_LaPalma_AdvancedBaseline_NSB1x_proton_North_20deg_DL1
Prod5b_LaPalma_AdvancedBaseline_NSB1x_proton_South_20deg_DL1
Prod5b_LaPalma_AdvancedBaseline_NSB1x_gamma_North_20deg_DL1
Prod5b_LaPalma_AdvancedBaseline_NSB1x_gamma_South_20deg_DL1
Prod5b_LaPalma_AdvancedBaseline_NSB1x_electron_North_20deg_DL1
Prod5b_LaPalma_AdvancedBaseline_NSB1x_electron_South_20deg_DL1
#!/bin/bash
#
# copy DL1 files from tar in dCache (!!) files to target directory
#
# ./copy_DL1files.sh
#
if [ $# -eq 0 ]; then
echo "./copy_DL1files.sh <production>"
fi
FLIST=$(cat ${1}.list)
for P in $FLIST
do
if [[ ${P} == *"gamma-diffuse"* ]]; then
PP="gamma_cone"
elif [[ ${P} == *"gamma"* ]]; then
PP="gamma_onSource"
elif [[ ${P} == *"proton"* ]]; then
PP="proton"
elif [[ ${P} == *"electron"* ]]; then
PP="electron"
else
echo "unknown particle in $P"
continue
fi
# directory per particle type
mkdir -p ${1}/${PP}
FF=$(cat ${1}/${P}.dCache.list)
for F in $FF
do
FP=$(basename $F)
if [[ ! -e ${1}/${PP}/${FP} ]]; then
cp -v /pnfs/ifh.de/${F} ${1}/${PP}/
fi
done
done
......@@ -17,7 +17,7 @@ download using DIRAC tools
exit
fi
echo "RUNLSIT ${1}"
echo "RUNLIST ${1}"
echo "Target directory: ${2}"
echo "Max file: ${3}"
[[ "$4" ]] && SCT=$4 || SCT="FALSE"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment