Setting up Postpan
Getting Started
- Login to apar account on aonl1:
ssh apar@aonl1
- Create a directory for output file storage
- Right now, aonl2 has space.
-
mkdir /aonl2/work1/my_name
- Create a directory for the code
- Go to your own personal apar directory. If you don't have one, make one.
- e.g. if your directory name is my_directory, then
cd my_directory
- e.g. if your directory name is my_directory, then
- Make a new folder inside your directory
-
mkdir prompt
-
- Go to your own personal apar directory. If you don't have one, make one.
- Clone the code from github
-
cd prompt
-
git clone https://github.com/JeffersonLab/prex-prompt.git
-
- Set the environment to use ROOT version 6
- Create a file called reset_env.csh in the new prex-prompt folder. Copy and paste the following code into it:
setenv PATH `echo $PATH | sed 's/:/\n/g' | grep -v "4.34.36" |grep -v ROOT | awk 'NR==1{printf"%s",$1}; NR>1{printf":%s",$1}'` setenv LD_LIBRARY_PATH `echo $LD_LIBRARY_PATH | sed 's/:/\n/g' | grep -v "5.34.36" | grep -v ROOT | awk 'NR==1{printf"%s",$1}; NR>1{printf":%s",$1}'` setenv ROOTSYS /adaqfs/apps/ROOT/6.14-04 <\code>
Setting up for analysis
Currently prex-prompt that you pull from github is missing files.
Make sure you are in your new prex-prompt
directory
cd prex-prompt
You will see several files inside the prex-prompt directory. Remove all the links (the one in cyan color. e.g Aggregator, BMODextractor, hallaweb_online etc). Don't directly delete the link file, it will not only be deleted from your directory but also from original prex-prompt. Use the following command to remove the link files
rm <folder_name> -i
e.g. rm Aggregator -i, It will ask you yes or no to remove the file, type
y
After you remove all the linked files from your directory, make a directories of the same names that you just removed from your prex-prompt in different location.
mkdir /aonl2/work1/<my_directory>/<folder_name>
e.g mkdir /aonl2/work1/<my_directory>/Aggregator
Now change the directories in to a link. Use the following command to create a link
ln -s /aonl2/work1/my_directory/<file_name> <file_name>
e.g. ln -s /aonl2/work1/<my_directory>/Aggregator Aggregator.
Do similarly for all the folders. Making your own folder is important otherwise whatever you will change in your directory will be changed in main prex-prompt.
Go inside the postpan directory and remove the link file called “results” similarly as you removed other links and make a new directory called results and convert it into link using above method. Basically you need to remove all the link folders that you see and make your own folder.
- To run prompt-analysis
Go to the prex-prompt directory and do,
./prompt.sh <run_number>
- Making summary plots for single run
./summary.sh <run_number>
- For list of runs, make a list of runs in a file and do,
./prompt_runlist.sh <runlist_filename>
This will analyse and plot the run number that you gave. Your plots will be saved in "SummaryPlots" folder and text file will be saved at "SummaryText" folder. The root file will be saved in "japanOutput" folder.
- summary.sh script uploads plots and text summary to the webpage. So be mindful
when pushing this button.
- To change the dependent and independent variables (dv and iv) for the regression analysis,
and run postpan, go to postpan/cong directory and add a desired variables in combo_reg.conf file. If the run has already analyzed in japanOutput file you can use the following command to get a postpan results.
- To run the postpan
./auto_postpan.sh <run_number>
Postpan rootfiles will be saved in “results” directory.