Blame |
Last modification |
View Log
| RSS feed
FNAME=arichmoduletest.xml
rm $FNAME
echo "<moduletest>" >> $FNAME
for x in ../modules/[0-9][0-9][0-9][0-9]/*_1_Treshold_Waveform.root ; do
if [ -e $x ]
then
root -b -q $x getsn.cxx\(\"${FNAME}\"\)
RDIR=`dirname $x`
echo "<hapdgain>" >> $FNAME
echo $RDIR
for y in $RDIR/[0-9][0-9][0-9][0-9]_??????.root ; do
if [ -e "$y" ]
then
echo root -b -q $y printgain.c\(\"${FNAME}\"\)
root -b -q $y printgain.c\(\"${FNAME}\"\)
fi
done
echo "</hapdgain>" >> $FNAME
echo "</run>" >> $FNAME
fi
done
echo "</moduletest>" >> $FNAME
#cat $FNAME