...
If you would like to generate simulated events for SpinQuest experiments and save the output file in RUS format, you should follow these steps.
1. Access the [Rivanna computer](https://ood.hpc.virginia.edu/pun/sys/dashboard).
2. Clone the repository:
```bash
git clone https://github.com/uva-spin/UVA_RUS_Basic
```
3. Go to the repository:
```bash
cd UVA_RUS_Basic
```
4. Set up the environment:
```bash
source /project/ptgroup/spinquest/this-e1039.sh
```
5. Run the simulation macro locally for testing. You can use the package based on your interest. For example, let's use Drell-Yan events, where the beam interaction point is at the target location:
```bash
cd DY_Target
root -b 'Fun4Sim.C(1000)'
```
6. Once the job runs locally and looks alright, you can submit a few jobs on the grid before submitting large jobs:
```bash
./jobscript.sh test 2 1000
```
- `test` is the name of this job, used as the name of a new directory to store job outputs.
- `2` is the number of jobs.
- `1000` is the number of events per job.
- Job outputs will appear under `/sfs/weka/scratch/<username>/MC`.
- You can use "squeue -u user", to check the status of your jobs (or use the "Active Jobs" tab on your UVA OpenOnDemand [web page:](https://ood.hpc.virginia.edu/pun/sys/dashboard/activejobs?jobcluster=all&jobfilter=user)).
Here are the updated instruction of generating Monte Carlo for SpinQuest simulations and analysis
...