Skip to content

Start up guide with an example

Haiwang Yu edited this page Sep 6, 2018 · 2 revisions

login, setup and checkout the code

init kerberos key, <usr> below means your user name.

kinit -f <usr>@FNAL.GOV
<type your password>

login to a submitter node

ssh -Y -o "ServerAliveInterval 60" -AKX -l krbtgt/[email protected] <usr>@seaquestgpvm01.fnal.gov

cd to your workarea

cd /e906/app/users/<usr> 

source the setup macro

source /e906/app/users/yuhw/setup.sh

check out analysis repository from github

git clone https://github.com/E1039-Collaboration/seaquest-analysis.git

How to run

Run the simulation + reconstruction macro

cd <path-to-seaquest-analysis/HodoAccGap>
root -l Fun4HodoAccGap.C

You will see several root output files. 'trk_eval.root' contains evaluation output from the TrkEval module. This will be the input for the final plotting.

The 'ana.C' is am example plotting macro. One may try quickly test it with some example files.

ln -s /e906/app/users/yuhw/seaquest-analysis/HodoAccGap/300cm/*.root .
root -l ana.C

Run 'int_run.C' to view the event display:

root -l int_run.C
Clone this wiki locally