#!/bin/bash . ../pluto_table.sh beamenergy=25 ckt=cktA_T160 for pluto_reac in 2 3 4 5 11 12 13 14 15 16 17 18 19 #for pluto_reac in 0 20 21 do for beamenergy in 8 25 do type=${arr_dir[$pluto_reac]} decay=${arr_decay[$pluto_reac]} dimuon=${arr_dimuon[$pluto_reac]} energy=${beamenergy}gev plutodir=/hera/hades/user/ekrebs/cbm/pluto/${ckt}/${energy}/${type}/${decay} # Directory with Pluto qa files. qadir=${plutodir}/qa # Directory where the file with the added histograms will be written to. # Do not use qadir=outputdir outdir=./${ckt} if [ ! -d $outdir ] then echo "===> CREATING OUTPUTDIR : $outdir" mkdir -p $outdir fi outfile=qa.pluto.${energy}.${type}.${decay}.root echo "Generating $outfile" if [ -f $outfile ] ; then rm ${outdir}/${outfile} fi #hadd -k -f -v 0 ${outdir}/${outfile} ${qadir}/qa*root echo "Scaling histograms" #./pluto_qa_scale_hists "${outdir}/${outfile}" rm -r ${qadir} # remove the directory with individual histogram files done done