5 for fbase in g3numi g4numi flugg g4lbne
8 if [ "$fbase" = "g3numi" ] ; then tname="h10" ; fi
9 if [ "$fbase" = "flugg" ] ; then tname="h10" ; fi
10 if [ "$fbase" = "g4numi" ] ; then tname="nudata" ; fi
11 if [ "$fbase" = "g4lbne" ] ; then tname="nudata" ; fi
13 if [ "yes" = "${do_mkclass}" ] ; then
14 cat > make_generic.C <<EOF
20 TFile* g3file = TFile::Open("generic_${fbase}.root","READONLY");
21 gROOT->ProcessLine("${tname}->MakeClass();");
24 if [ ! -f generic_${fbase}.root ]; then
25 echo "skip $fbase for lack of generic_${fbase}.root"
28 root -b -q make_generic.C
34 rm -f ${fnameh} ${fnameC}
35 touch ${fnameh} ${fnameC}
37 cat ${tname}.h | sed -e "s/${tname}/${fbase}/g" >> $fnameh
38 cat ${tname}.C | sed -e "s/${tname}/${fbase}/g" >> $fnameC