Parfenov_Petr_Evgen'evich 85f0d7dc43 Small fix in README | 5 anni fa | |
---|---|---|
macro | 5 anni fa | |
scripts | 5 anni fa | |
README.md | 5 anni fa | |
set_env.sh | 5 anni fa |
It is a simple example of scripts/macros sets suitable for work on the MEPhI (basov) cluster.
Copy from a git repo:
git clone https://devel.mephi.ru/PEParfenov/pid_scripts.git
Change paths accordingly:
set_env.sh
: Change ST_FEMTO_DST_INC_DIR
to standard one. It's the directory where libStFemtoDst.so
is stored.scripts/run.sh
: change path to a last line to one where your build will be.scripts/start.sh
: change path to output directory (OUTPUT_DIR
).Source required environment variables:
cd pid_scripts/
. set_env.sh
Make new build directory. For example:
mkdir build/
cd build/
Generate makefile & install:
cmake ../macro/
make
Keep in mind that one has to do make
command after changing FemtoDstAnalyzer.C
in order to compile new code.
Use GenerateLists.sh
to make filelists:
. GenerateLists.sh FEMTODST_DIR N_FILES_IN_LIST
where FEMTODST_DIR
- path to the directory with femtoDst.root
files.
And N_FILES_IN_LIST
denotes the maximum number of femtoDst.root
files in each filelist.
Basic example:
. GenerateLists.sh /mnt/pool/rhic/2/nigmatkulov/femtoDst/auau/200gev/12135/ 100
Resulting filelists will be in the hpc_scripts/lists/
directory.
To use FemtoDstAnalyzer_PID.C
in interactive mode:
cd build/
./pid -i INPUTFILE -o OUTPUTFILE
To use FemtoDstAnalyzer_PID.C
in interactive mode:
cd build/
./pid -i INPUTFILE -o OUTPUTFILE -pid PID_FILE
where INPUTFILE
- is input file or filelist with femtoDst.root
.
OUTPUTFILE
- is resulting root file and PID_FILE
- is fitted sigma values in m^{2} distribution.
Basic workflow example:
./pid -i ../lists/StRuns1.list -o ./test_pid.root
root.exe '../macro/CalcPID.C("test_pid.root","test_pid_fit.root",1)'
./pidQA -i ../lists/StRuns1.list -o ./test_pid_QA.root -pid ./test_pid_fit.root
To send jobs to basov cluster, use scripts/start.sh
:
. start.sh INPUT_FILELIST_DIR MODE_NUM
where INPUT_FILELIST_DIR
- is the directory where you store filelists.
MOD_NUM
- is mode number: 0 - run pid
, 1 - run pidQA
.
Basic example:
. start.sh /mnt/pool/rhic/4/parfenovpeter/STAR/Analysis/pid_scripts/lists 0