MiniCLEAN: Difference between revisions

Jump to navigation Jump to search
# If you want your output copied to HDFS, have your executable copy the output
# files to the directory you specify with --HDFSProdDir.
 
====Executable example: farmoutRAT.sh====
#!/bin/bash
wdir=$(pwd)
# Source the environment needed to run RAT
source /afs/hep.wisc.edu/ddm/ratcage/local/bin/geant4.sh
source /afs/hep.wisc.edu/ddm/ratcage/root-5.34.12/bin/thisroot.sh
source /afs/hep.wisc.edu/ddm/ratcage/env.sh
# Temporary directory that gets created on the execute node<br>tmpDir=$(mktemp -d --tmpdir="./")
cd $tmpDir
cp ../*.mac .
pwd
# Run the RAT
rat -o ar39_test1.root ar39.mac
mkdir -p ../outputfile
cd ../outputfile<br>ln -s ../$tmpDir/*.root .

Navigation menu