3 # Run this script after reduce_all_icarus.sh is complete
5 # Flattening is about 5sec per file, for 20mins total
7 TOPDIR=/
pnfs/sbn/persistent/analysis/CAF/202106PAC/workshop_SBNWorkshop0421_prodoverlay_corsika_cosmics_cosmics_proton_genie_nu_spill_gsimple-config_caf_icarus/
9 INDIR=$TOPDIR/reduced_cafs/
11 OUTDIR=$TOPDIR/reduced_flatcafs/
13 for i
in `seq 0 9`
a b c d
e f
15 for j
in `seq 0 9`
a b c d
e f
17 flatten_caf $INDIR/${i}_${j}_x.caf.root $OUTDIR/${i}_${j}_x.flat.caf.root
18 # Protect against accidents
19 chmod -
w $OUTDIR/${i}_${j}_x.flat.caf.root
20 # Actually, let's do the input too. The parallel way they were made
21 # makes it harder to do at that step.
22 chmod -
w $INDIR/${i}_${j}_x.caf.root
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in