All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
flatten_all_icarus.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 # Run this script after reduce_all_icarus.sh is complete
4 #
5 # Flattening is about 5sec per file, for 20mins total
6 
7 TOPDIR=/pnfs/sbn/persistent/analysis/CAF/202106PAC/workshop_SBNWorkshop0421_prodoverlay_corsika_cosmics_cosmics_proton_genie_nu_spill_gsimple-config_caf_icarus/
8 
9 INDIR=$TOPDIR/reduced_cafs/
10 
11 OUTDIR=$TOPDIR/reduced_flatcafs/
12 
13 for i in `seq 0 9` a b c d e f
14 do
15  for j in `seq 0 9` a b c d e f
16  do
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
23  done
24 done
then OUTDIR
process_name gaushit a
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in
do i e
pnfs
Definition: file_to_url.sh:60