Difference between revisions of "WAC Collection"

From PREX Wiki
Jump to navigationJump to search
Line 27: Line 27:
 
== WAC Shift-wise Collection ==
 
== WAC Shift-wise Collection ==
  
* login as '''apar@adaq3'''
+
To Collect:
* cd into '''~/PREX/prompt/collector'''
+
# login as apar@adaq3
* '''source ../../setup_japan.tcsh'''
+
# cd into ~/PREX/prompt/collector
* create a list of run number you want to (see for example test.list)
+
# source ../../setup_japan.tcsh
* run the command: '''./collector -d ../results/ -l test.list''' (Note:replace test with your file name)
 
* a root file named '''prexPrompt_test.root''' will be stored in the '''rootfiles''' directory
 
* to produce plots stay in the '''collector''' directory and run '''./aggregate'''
 
* you will be asked to enter a '''test''' part of the '''rootfile''', enter it and hit '''Enter'''
 
* a '''aggregate_plots_test.pdf''' file will be created in the '''plots''' directory.
 
  
== Pull Plots ==
+
WAC List Creation
* To make Pull Plots
+
# create a list of run number you want to (see for example test.list)
root -x drawPostPan.C'("/adaq1/work1/apar/taoye/collection/prexPrompt_slug3.root","slug3")'
+
# use PVDB/RCND/RCDB commands/website
 +
# make a slug#.list
 +
 
 +
Collector:
 +
# run the command: ./collector -d ../results/ -l test.list (Note:replace test with your file name)
 +
# a root file named prexPrompt_test.root will be stored in the rootfiles directory
 +
# to produce plots stay in the collector directory and run ./aggregate
 +
# you will be asked to enter a test part of the rootfile, enter it and hit Enter
 +
# a aggregate_plots_test.pdf file will be created in the plots directory.
 +
 
 +
Draw Post Pan:
 +
# cd into drawPostpan
 +
# [apar@adaq1 ~/PREX/prompt/collector/drawPostpan]$ root -l -b -q drawPostPan.C'("../rootfiles/prexPrompt_slug10.root","slug10-Left","list.txt")'
  
 
= Aggregator =
 
= Aggregator =
  
 
[[Category:HOW TO]] [[Category:WAC]]
 
[[Category:HOW TO]] [[Category:WAC]]

Revision as of 21:06, 21 July 2019

Documentation
HOW TOs for shift crew
Expert Tools
All Expert Contacts


PREX Main << Weekly Analysis Coordinator << WAC Notes

Prompt Code

The prompt code lives in the master branch of Prex-Prompt


The plots are uploaded to the folder /u/group/halla/www/hallaweb/html/parity/prex/onlinePlots, which is visible from Haweb

Collector Code

The collector code lives in Tao's collector repository

WAC Shift-wise Collection

To Collect:

  1. login as apar@adaq3
  2. cd into ~/PREX/prompt/collector
  3. source ../../setup_japan.tcsh

WAC List Creation

  1. create a list of run number you want to (see for example test.list)
  2. use PVDB/RCND/RCDB commands/website
  3. make a slug#.list

Collector:

  1. run the command: ./collector -d ../results/ -l test.list (Note:replace test with your file name)
  2. a root file named prexPrompt_test.root will be stored in the rootfiles directory
  3. to produce plots stay in the collector directory and run ./aggregate
  4. you will be asked to enter a test part of the rootfile, enter it and hit Enter
  5. a aggregate_plots_test.pdf file will be created in the plots directory.

Draw Post Pan:

  1. cd into drawPostpan
  2. [apar@adaq1 ~/PREX/prompt/collector/drawPostpan]$ root -l -b -q drawPostPan.C'("../rootfiles/prexPrompt_slug10.root","slug10-Left","list.txt")'

Aggregator