No Description

Parfenov_Petr_Evgen'evich 85f0d7dc43 Small fix in README 10 months ago
macro b57e5eefb6 First commit 10 months ago
scripts b57e5eefb6 First commit 10 months ago
README.md 85f0d7dc43 Small fix in README 10 months ago
set_env.sh b57e5eefb6 First commit 10 months ago

README.md

Quick information


It is a simple example of scripts/macros sets suitable for work on the MEPhI (basov) cluster.

Setting environment

Copy from a git repo:

    git clone https://devel.mephi.ru/PEParfenov/pid_scripts.git

Change paths accordingly:

  • 1 In set_env.sh: Change ST_FEMTO_DST_INC_DIR to standard one. It's the directory where libStFemtoDst.so is stored.
  • 2 In scripts/run.sh: change path to a last line to one where your build will be.
  • 3 In scripts/start.sh: change path to output directory (OUTPUT_DIR).

Installation

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.

Generate filelists

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.

Usage

Interactive mode

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

Batch mode

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