File indexing completed on 2026-07-16 08:12:44
0001
0002
0003 RUN=79516
0004 RUN8=$(printf "%08d" "$RUN")
0005
0006 RUN_ROUNDING=$(( RUN / 100 * 100 ))
0007 RUN_ROUNDING1=$(( ((RUN / 100)+1) * 100 ))
0008
0009
0010
0011
0012
0013 BASE_LISTOUT="/sphenix/user/hachiya/myrepo/analysis/SiCalo/dstmacro/data/list_run3pp"
0014 BASE_ANAOUT="/sphenix/tg/tg01/commissioning/INTT/work/hachiya/SiCaloTrack/data/run3pp"
0015
0016
0017 BASE_calo="/sphenix/lustre01/sphnxpro/production2/run3pp/physics/calofitting/new_newcdbtag_v008/run_000${RUN_ROUNDING}_000${RUN_ROUNDING1}/DST_CALOFITTING_run3pp_new_newcdbtag_v008-${RUN8}-"
0018 BASE_seed="/sphenix/lustre01/sphnxpro/production/run3pp/physics/ana538_2025p011_v001/DST_TRKR_SEED/run_000${RUN_ROUNDING}_000${RUN_ROUNDING1}/DST_TRKR_SEED_run3pp_ana538_2025p011_v001-${RUN8}-"
0019
0020
0021
0022
0023
0024
0025
0026 OUT_alllist="./joblist/dst_run${RUN}.list"
0027 : > "$OUT_alllist"
0028
0029 Nevt=100000
0030
0031
0032 NCALO=378
0033
0034
0035 i=0
0036 while [ $i -le $NCALO ]; do
0037 printf -v I '%05d' "$i"
0038 SUF="$I"
0039
0040 OUT_calo="${BASE_LISTOUT}/calo/run${RUN}_calo_${I}.list"
0041 OUT_seed="${BASE_LISTOUT}/seed/run${RUN}_seed_${I}.list"
0042
0043
0044 OUTDIR_condor="${BASE_ANAOUT}/${RUN}"
0045 OUT_condor="${OUTDIR_condor}/ana_${RUN}_${I}.root"
0046
0047 echo $OUT_calo
0048 echo $OUT_seed
0049
0050
0051
0052
0053 if [ ! -d "$(dirname $OUT_calo)" ]; then
0054 mkdir -p "$(dirname $OUT_calo)"
0055 fi
0056
0057 if [ ! -d "$(dirname $OUT_seed)" ]; then
0058 mkdir -p "$(dirname $OUT_seed)"
0059 fi
0060
0061 if [ ! -d "$OUTDIR_condor" ]; then
0062 mkdir -p "$OUTDIR_condor"
0063 fi
0064
0065 Sevt=$((Nevt*i))
0066
0067 CALO_file=$(printf "%s%s.root\n" "${BASE_calo}" "${SUF}")
0068
0069
0070
0071
0072 if [ -f "$CALO_file" ]; then
0073 printf "%s%s.root\n" "${BASE_calo}" "${SUF}" > "$OUT_calo"
0074 fi
0075
0076
0077 : > "$OUT_seed"
0078 l=0
0079 while [ $l -lt 100 ]; do
0080 j=$((100*i+l))
0081 printf -v J '%05d' "$j"
0082
0083 printf "%s%s.root\n" "${BASE_seed}" "${J}" >> "$OUT_seed"
0084 l=$((l+1))
0085 done
0086 printf "%s %s %s %s %s\n" "$Nevt" "$OUT_seed" "$OUT_calo" "$OUT_condor" "$Sevt">> "$OUT_alllist"
0087
0088 i=$((i+1))
0089 done
0090
0091 printf "$OUT_alllist "
0092
0093 echo "all done"