Difference between revisions of "Setting up Postpan"

From PREX Wiki
Jump to navigationJump to search
(Created page with "* 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 n...")
 
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 This will analyse and plot the run number that you gave. Your plots will be saved in
+
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
SummaryPlots directory and text file will be saved at SummaryText directory. The root file will
 
be saved in japanOutput folder.
 
# 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#>
 
Postpan rootfiles will be saved in “results” directory.also from original prex-prompt. Use following command to remove it from your folder,
 
 
  rm <folder_name> -i
 
  rm <folder_name> -i
 
e.g. rm Aggregator -i,
 
e.g. rm Aggregator -i,
Line 37: Line 28:
 
Now change the directories in to a link. Use the following command to create a link
 
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>  
 
  ln -s /aonl2/work1/my_directory/<file_name> <file_name>  
e.g. ln -s /aonl2/work1/<my_directory>/Aggregator Aggregator
+
e.g. ln -s /aonl2/work1/<my_directory>/Aggregator Aggregator.
How to
+
 
 
Do similarly for all the folders. Making your own folder is important otherwise whatever you will
 
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.
 
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
 
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
 
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
 
method. Basically you need to remove all the link folders that you see and make your own
folder.This will analyse and plot the run number that you gave. Your plots will be saved in
+
folder.
SummaryPlots directory and text file will be saved at SummaryText directory. The root file will
 
be saved in japanOutput folder.
 
# 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#>
 
Postpan rootfiles will be saved in “results” directory.
 
  
To run prompt-analysis
+
* To run prompt-analysis
 
Go to the prex-prompt directory and do,
 
Go to the prex-prompt directory and do,
 
  ./prompt.sh <run_number>
 
  ./prompt.sh <run_number>
  
Making summary plots for single run
+
* Making summary plots for single run
  ./summary.sh <run_number>How toThis will analyse and plot the run number that you gave. Your plots will be saved in
+
  ./summary.sh <run_number>
SummaryPlots directory and text file will be saved at SummaryText directory. The root file will
 
be saved in japanOutput folder.
 
# 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#>
 
Postpan rootfiles will be saved in “results” directory.
 
  
For list of runs, make a list of runs in a file and do,
+
* For list of runs, make a list of runs in a file and do,
 
  ./prompt_runlist.sh <runlist_filename>
 
  ./prompt_runlist.sh <runlist_filename>
  
the summary.sh script uploads plots and text summary to the webpage. So be mindful
+
This will analyse and plot the run number that you gave. Your plots will be saved in
when pushing this button. You can comment the following line in the summary.sh file if you don't want to upload the plots on-line.
+
"SummaryPlots" folder and text file will be saved at "SummaryText" folder. The root file will
bash ./hallaweb_online/summary/sort.sh
+
be saved in "japanOutput" folder.
 +
 
 +
* summary.sh script uploads plots and text summary to the webpage. So be mindful
 +
when pushing this button.
  
This will analyse and plot the run number that you gave. Your plots will be saved in
 
SummaryPlots directory and text file will be saved at SummaryText directory. The root file will
 
be saved in japanOutput folder.
 
  
To change the dependent and independent variables (dv and iv) for the regression analysis,
+
* 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
 
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
 
file. If the run has already analyzed in japanOutput file you can use the following command to
 
get a postpan results.
 
get a postpan results.
  
To run the postpan
+
* To run the postpan
 
  ./auto_postpan.sh <run_number>
 
  ./auto_postpan.sh <run_number>
  
 
Postpan rootfiles will be saved in “results” directory.
 
Postpan rootfiles will be saved in “results” directory.

Revision as of 13:31, 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 lonk 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.