Difference between revisions of "Setting up Postpan"

From PREX Wiki
Jump to: navigation, search
Line 16: Line 16:
 
  cd prex-prompt
 
  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
 
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 lonk files
+
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
 
  rm <folder_name> -i
 
e.g. rm Aggregator -i,
 
e.g. rm Aggregator -i,

Revision as of 12:33, 22 July 2019

  • To run prex-prompt in your own folder

First login to apar account on aonl1

ssh apar@aonl1

Go to your directory. If you don’t have one, make one e.g. if your directory name is my_directory then do

cd <my_directory>

Make a new folder inside your directory

mkdir prompt

Go to the new directory and do git clone

cd prompt
git clone https://github.com/JeffersonLab/prex-prompt.git
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.