Difference between revisions of "Offline Monitoring Archived Data"
(→Starting a new run period) |
|||
Line 1: | Line 1: | ||
= Setup the Software & Environment = | = Setup the Software & Environment = | ||
− | '''1)''' | + | '''1)''' Checkout (or svn update) the launch scripts if needed: |
<pre> | <pre> | ||
− | ~/ | + | cd ~/ |
+ | svn co https://halldsvn.jlab.org/repos/trunk/scripts/monitoring/launch | ||
</pre> | </pre> | ||
− | '''2)''' | + | '''2)''' You will need only the following 3 files: |
<pre> | <pre> | ||
− | + | launch.py | |
− | + | script.sh | |
+ | jobs_analysis_bggen.config | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | = Prepare the Launch = | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | ''' | + | '''1)''' Update the jobs_analysis_bggen.config file. Definitely be sure to update '''<span style="color:red">RUNPERIOD</span>''', '''<span style="color:red">VERSION</span>''', and '''<span style="color:red">BATCH</span>''' where appropriate (if jobs submitted in batches). |
<pre> | <pre> | ||
− | + | ENVFILE analysis-2017_01-ver46.xml | |
− | + | ||
− | + | ||
</pre> | </pre> | ||
− | ''' | + | '''2)''' Make a new jana_analysis.config with your channel: |
<pre> | <pre> | ||
− | + | PLUGINS monitoring_hists,ReactionFilter | |
− | + | NTHREADS 16 | |
− | + | COMBO:MAX_NEUTRALS 15 | |
− | + | Reaction1 1_14__8_9_14 # pi+ pi- p | |
− | + | Reaction1:Flags B4 | |
− | + | ||
− | + | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
'''3)''' Create the SWIF workflow. The workflow should have a name like '''<span style="color:red">"recon_2016-02_ver05"</span>''' for monitoring launches and '''<span style="color:red">"recon_2016-02_ver01_batch01"</span>''' for full reconstruction launches. It should also match the workflow name in the job config file (e.g. jobs_offmon.config). | '''3)''' Create the SWIF workflow. The workflow should have a name like '''<span style="color:red">"recon_2016-02_ver05"</span>''' for monitoring launches and '''<span style="color:red">"recon_2016-02_ver01_batch01"</span>''' for full reconstruction launches. It should also match the workflow name in the job config file (e.g. jobs_offmon.config). | ||
Line 86: | Line 37: | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ''' | + | '''4)''' Register jobs for the workflow, where '''<span style="color:red"><job_config_file></span>''' is (e.g.) '''<span style="color:red">"~/monitoring/launch/jobs_offmon.config"</span>''': |
<pre> | <pre> | ||
~/monitoring/launch/launch.py <job_config_file> <run_min> <run_max> | ~/monitoring/launch/launch.py <job_config_file> <run_min> <run_max> | ||
Line 102: | Line 47: | ||
</pre> | </pre> | ||
− | ''' | + | '''5)''' Run the workflow: |
<pre> | <pre> | ||
swif run -workflow <my_workflow> | swif run -workflow <my_workflow> | ||
</pre> | </pre> |
Revision as of 18:04, 12 November 2021
Setup the Software & Environment
1) Checkout (or svn update) the launch scripts if needed:
cd ~/ svn co https://halldsvn.jlab.org/repos/trunk/scripts/monitoring/launch
2) You will need only the following 3 files:
launch.py script.sh jobs_analysis_bggen.config
Prepare the Launch
1) Update the jobs_analysis_bggen.config file. Definitely be sure to update RUNPERIOD, VERSION, and BATCH where appropriate (if jobs submitted in batches).
ENVFILE analysis-2017_01-ver46.xml
2) Make a new jana_analysis.config with your channel:
PLUGINS monitoring_hists,ReactionFilter NTHREADS 16 COMBO:MAX_NEUTRALS 15 Reaction1 1_14__8_9_14 # pi+ pi- p Reaction1:Flags B4
3) Create the SWIF workflow. The workflow should have a name like "recon_2016-02_ver05" for monitoring launches and "recon_2016-02_ver01_batch01" for full reconstruction launches. It should also match the workflow name in the job config file (e.g. jobs_offmon.config).
swif create -workflow <my_workflow>
4) Register jobs for the workflow, where <job_config_file> is (e.g.) "~/monitoring/launch/jobs_offmon.config":
~/monitoring/launch/launch.py <job_config_file> <run_min> <run_max>
You can optionally specify specific file numbers to use. For example, to submit jobs for the first 5 files of each run:
~/monitoring/launch/launch.py <job_config_file> <run_min> <run_max> -f '00[0-4]'
5) Run the workflow:
swif run -workflow <my_workflow>