Subversion Repositories f9daq

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
326 f9daq 1
FNAME=arichmoduletest.xml
2
rm $FNAME
3
echo "<moduletest>" >> $FNAME
4
for x in ../modules/[0-9][0-9][0-9][0-9]/*_1_Treshold_Waveform.root ; do
5
if [ -e $x ]
6
then
7
     root -b -q $x getsn.cxx\(\"${FNAME}\"\)
8
RDIR=`dirname $x`
9
echo "<hapdgain>" >> $FNAME
10
echo $RDIR
11
for y in $RDIR/[0-9][0-9][0-9][0-9]_??????.root ; do
12
if [ -e "$y" ]
13
then
14
 
15
     echo root -b -q $y printgain.c\(\"${FNAME}\"\)
16
     root -b -q $y printgain.c\(\"${FNAME}\"\)
17
fi
18
 
19
done
20
echo "</hapdgain>" >> $FNAME
21
echo "</run>" >> $FNAME
22
fi
23
done
24
echo "</moduletest>" >> $FNAME
25
#cat $FNAME
26