Skip to content

Commit

Permalink
better output structure
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Britton committed Apr 21, 2017
1 parent 314d968 commit c54b5b7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
13 changes: 11 additions & 2 deletions MCwrapper/MakeMC.csh
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ endif
if ( ! -d "$OUTDIR/configurations/" ) then
mkdir $OUTDIR/configurations/
endif
if ( ! -d "$OUTDIR/configurations/generation/" ) then
mkdir $OUTDIR/configurations/generation/
endif
if ( ! -d "$OUTDIR/configurations/geant/" ) then
mkdir $OUTDIR/configurations/geant/
endif
if ( ! -d "$OUTDIR/hddm/" ) then
mkdir $OUTDIR/hddm/
endif
Expand Down Expand Up @@ -351,6 +357,8 @@ if ( "$GENR" != "0" ) then
sed -i 's/TEMPMINE/0.0012/' control'_'$formatted_runNumber'_'$formatted_fileNumber.in
endif

cp $PWD/control'_'$formatted_runNumber'_'$formatted_fileNumber.in $OUTDIR/configurations/geant/

mv $PWD/control'_'$formatted_runNumber'_'$formatted_fileNumber.in $PWD/control.in

if ( "$GEANTVER" == "3" ) then
Expand Down Expand Up @@ -401,6 +409,7 @@ if ( "$GENR" != "0" ) then
if ( "$recon_pre" == "file" ) then
echo "using config file: "$jana_config_file
hd_root ./$STANDARD_NAME'_geant'$GEANTVER'_smeared.hddm' --config=jana_config.cfg -PNTHREADS=$NUMTHREADS
rm jana_config.cfg
else
set pluginlist=("danarest" "monitoring_hists")

Expand Down Expand Up @@ -450,7 +459,7 @@ if ( "$GENR" != "0" ) then
set filename_root=`echo $rootfile | sed -r 's/.{5}$//'`
set filetomv="$rootfile"
set filecheck=`echo $current_files | grep -c $filetomv`

if ( "$filecheck" == "0" ) then
mv $filetomv $filename_root\_$STANDARD_NAME.root
mv $PWD/$filename_root\_$STANDARD_NAME.root $OUTDIR/root/
Expand All @@ -464,7 +473,7 @@ if ( "$GENR" != "0" ) then
endif

if ( "$gen_pre" != "file" ) then
mv $PWD/*.conf $OUTDIR/configurations/
mv $PWD/*.conf $OUTDIR/configurations/generation/
endif

set hddmfiles=`ls | grep .hddm`
Expand Down
10 changes: 9 additions & 1 deletion MCwrapper/MakeMC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ fi
if [[ ! -d "$OUTDIR/configurations/" ]]; then
mkdir $OUTDIR/configurations/
fi
if [[ ! -d "$OUTDIR/configurations/generation/" ]]; then
mkdir $OUTDIR/configurations/generation/
fi
if [[ ! -d "$OUTDIR/configurations/geant/" ]]; then
mkdir $OUTDIR/configurations/geant/
fi
if [[ ! -d "$OUTDIR/hddm/" ]]; then
mkdir $OUTDIR/hddm/
fi
Expand Down Expand Up @@ -354,6 +360,7 @@ if [[ "$GENR" != "0" ]]; then
sed -i 's/TEMPMINE/0.0012/' control'_'$formatted_runNumber'_'$formatted_fileNumber.in
fi

cp $PWD/control'_'$formatted_runNumber'_'$formatted_fileNumber.in $OUTDIR/configurations/geant/
mv $PWD/control'_'$formatted_runNumber'_'$formatted_fileNumber.in $PWD/control.in

if [[ "$GEANTVER" == "3" ]]; then
Expand Down Expand Up @@ -405,6 +412,7 @@ if [[ "$GENR" != "0" ]]; then
if [[ "$recon_pre" == "file" ]]; then
echo "using config file: "$jana_config_file
hd_root ./$STANDARD_NAME'_geant'$GEANTVER'_smeared.hddm' --config=jana_config.cfg -PNTHREADS=$NUMTHREADS
rm jana_config.cfg
else

declare -a pluginlist=("danarest" "monitoring_hists")
Expand Down Expand Up @@ -469,7 +477,7 @@ if [[ "$GENR" != "0" ]]; then
fi
fi
if [[ "$gen_pre" != "file" ]]; then
mv $PWD/*.conf $OUTDIR/configurations/
mv $PWD/*.conf $OUTDIR/configurations/generation/
fi
hddmfiles=$(ls | grep .hddm)
if [[ "$hddmfiles" != "" ]]; then
Expand Down

0 comments on commit c54b5b7

Please sign in to comment.