Access Instructions for Rishabh

Setting up the environment
----------------------------

To access the ARA sim dependencies, I would use the shell environment script "pasim_bashrc.sh" as a template.
Just do "source pasim_bashrc.sh", and that should have you good to go.

The dependencies were all specifically compiled to work with Oakley.
I've installed them in /users/PAS0654/osu0673/PhasedArraySim/tools

OSC is PBS based, not HTCondor, so the submit scripts that work at IceCube won't work here.
In the folder "batch_processing" I've given two files that can be used to run AraSim batch jobs in this setting.
To launch the jobs, do "bash submit_batch.sh"

Overview of "submit_bathc.sh"
----------------------------

This script requires you to declare where AraSim is, where the setup file is, and where you want final root files written.
Then, it generates a number of jobs set by the the `seq...` line.
It submits the job file "run_arasim_job.sh", which runs on a cluster cpu and actually executes AraSim.
The output of AraSim will be written to the node-local memory, and then PBS distributed copied (pbsdcp) to your final destination.
(This is much better for the cluster performance than writing directly to your final destination.)

Change the following three variables to control
	(1) where AraSim is, 
	(2) where its setup file is, and 
	(3) where you want the final root files written
AraSimDir controls where the installation of AraSim is
SetupFile controls where the setup file for AraSim is
OutputDir controls where you want the final .root files written

Overview of "run_arasim_job.sh"
----------------------------

Lastly, you should open "run_arasim_job.sh" and change the #PBS -e and #PBS -o flags
That will change where the output and error files are being written to
you will get the "best" performance by writing e/o files to /fs/scratch/PAS0654/your_user_name