Difference between revisions of "Off Line Analysis for transversity"
From Hall A Wiki
(→HowTo build your own batch farm replay directory) |
|||
Line 40: | Line 40: | ||
cd /work/halla/transversity/disk1/<your name> | cd /work/halla/transversity/disk1/<your name> | ||
− | mkdir analysis # this the main directory for replay codes | + | mkdir analysis # this is the main directory for replay codes |
cd analysis | cd analysis | ||
cp -rv /work/halla/transversity/disk1/replay/replay ./ | cp -rv /work/halla/transversity/disk1/replay/replay ./ | ||
cp -rv /work/halla/transversity/disk1/farmreplay ./ | cp -rv /work/halla/transversity/disk1/farmreplay ./ | ||
+ | cp -rv /work/halla/transversity/disk1/replay/replay.sh ./ | ||
mkdir /work/halla/transversity/disk3/<your root file folder> | mkdir /work/halla/transversity/disk3/<your root file folder> | ||
Line 51: | Line 52: | ||
Now you have the basic structure: | Now you have the basic structure: | ||
− | * | + | * To test replay on ifarm, follow [[Off Line Analysis for transversity#HowTo build your own replay directory]] |
− | * To do batch replay, follow example below: | + | * To do '''batch farm replay''', follow example below: |
+ | *# enter directory ''farmreplay'' | ||
+ | *# edit ''construct.pl'', modify following sections: | ||
+ | *#* '''$neve''' : the event number to replay | ||
+ | *#* '''@runnumber''' : list of run to replay | ||
+ | *#* '''$ReplayType''' : name of replay script | ||
+ | *#* '''$current''' : path of your analysis directory | ||
+ | *# run ''construct.pl''; it will generate | ||
+ | *## '''in_run#''' : the script for batch running for each run | ||
+ | *## '''sub_run#''' : [https://wiki.jlab.org/cc/external/wiki/index.php/Batch_Job_Command_File Batch Job Command File] for each run | ||
+ | *# (Optional), test ''in_run#'' scripts by copying it to a tmp directory and run it. | ||
+ | *# jsub '''sub_run#''' will run the replay in batch farm | ||
== General Rule for Farm Disk Usage == | == General Rule for Farm Disk Usage == |
Revision as of 06:17, 14 February 2009
Quick Links:
This is temporary site of Off Line Analysis for transversity.
Contents
Farm Replay
Structure
HowTo do a quick test replay
One can directly use the common replay directory to do quick tests.
ssh ifarml5 # or any computer seeing working disk cd /w/work5602/transversity/replay source replay.sh cd replay analyzer replay_phys(4029,100000); //just like online replay
HowTo build your own batch farm replay directory
Build a directory for your own replay. You can change replay code and control the rootfile storage. And it will be capable of replaying on both ifarm and batch farm.
ssh ifarml5 # or any computer seeing working disk cd /work/halla/transversity/disk1/<your name> mkdir analysis # this is the main directory for replay codes cd analysis cp -rv /work/halla/transversity/disk1/replay/replay ./ cp -rv /work/halla/transversity/disk1/farmreplay ./ cp -rv /work/halla/transversity/disk1/replay/replay.sh ./ mkdir /work/halla/transversity/disk3/<your root file folder> ln -svf /work/halla/transversity/disk3/<your root file folder> ROOTfiles
Now you have the basic structure:
- To test replay on ifarm, follow Off Line Analysis for transversity#HowTo build your own replay directory
- To do batch farm replay, follow example below:
- enter directory farmreplay
- edit construct.pl, modify following sections:
- $neve : the event number to replay
- @runnumber : list of run to replay
- $ReplayType : name of replay script
- $current : path of your analysis directory
- run construct.pl; it will generate
- in_run# : the script for batch running for each run
- sub_run# : Batch Job Command File for each run
- (Optional), test in_run# scripts by copying it to a tmp directory and run it.
- jsub sub_run# will run the replay in batch farm