Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, file /analysis/LightFlavorRatios/truth_ratio/run_truth_ratio_all.sh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #!/bin/bash
0002 
0003 PROCESS=$1
0004 
0005 mkdir -p /tmp/log_mjpeters/
0006 
0007 source /opt/sphenix/core/bin/sphenix_setup.sh -n new
0008 
0009 export USER="$(id -u -n)"
0010 export LOGNAME=${USER}
0011 export HOME=/sphenix/u/${LOGNAME}
0012 
0013 export SPHENIX=${HOME}/sPHENIX
0014 export MYINSTALL=$SPHENIX/install
0015 export LD_LIBRARY_PATH=$MYINSTALL/lib:$LD_LIBRARY_PATH
0016 export ROOT_INCLUDE_PATH=$MYINSTALL/include:$ROOT_INCLUDE_PATH
0017 
0018 LAMBDA_FLAVOR=3122
0019 LAMBDABAR_FLAVOR=-3122
0020 KS_FLAVOR=310
0021 
0022 LAMBDA_DAUGHTERS=\{-211,2212\}
0023 LAMBDABAR_DAUGHTERS=\{211,-2212\}
0024 KS_DAUGHTERS=\{211,-211\}
0025 
0026 #LAMBDA_FILEBASE=/sphenix/tg/tg01/hf/mjpeters/lambdaKshortMB/lambdaKshort_20260422_DetroitMB_CR_2_mode_pTref_1p4/evaluator/outputeval
0027 #KS_FILEBASE=/sphenix/tg/tg01/hf/mjpeters/lambdaKshortMB/lambdaKshort_20260422_DetroitMB_CR_2_mode_pTref_1p4/evaluator/outputeval
0028 
0029 LAMBDA_FILEBASE=/sphenix/tg/tg01/hf/mjpeters/LightFlavorProduction/closureTestSample/evaluator/outputeval
0030 KS_FILEBASE=/sphenix/tg/tg01/hf/mjpeters/LightFlavorProduction/closureTestSample/evaluator/outputeval
0031 
0032 SEGMENT=`printf "%06d" $PROCESS`
0033 
0034 rm output/truth_ratio_${SEGMENT}.root
0035 rm output/truth_ratio_pos_${SEGMENT}.root
0036 rm output/truth_ratio_neg_${SEGMENT}.root
0037 
0038 # (Lambda + Lambdabar) / 2Ks
0039 root -l -q -b calculate_truth_ratio.C\($LAMBDA_FLAVOR,$LAMBDA_DAUGHTERS,$KS_FLAVOR,$KS_DAUGHTERS,\"\#Lambda\",\"K^{0}_{S}\",\"$LAMBDA_FILEBASE\",\"$KS_FILEBASE\",0.5,\"output/truth_ratio\",${PROCESS}\)
0040 # Lambda/Ks
0041 root -l -q -b calculate_truth_ratio.C\($LAMBDA_FLAVOR,$LAMBDA_DAUGHTERS,$KS_FLAVOR,$KS_DAUGHTERS,\"\#Lambda\",\"K^{0}_{S}\",\"$LAMBDA_FILEBASE\",\"$KS_FILEBASE\",1.,\"output/truth_ratio_pos\",${PROCESS},false\)
0042 #Lambdabar/Ks
0043 root -l -q -b calculate_truth_ratio.C\($LAMBDABAR_FLAVOR,$LAMBDABAR_DAUGHTERS,$KS_FLAVOR,$KS_DAUGHTERS,\"\#Lambda\",\"K^{0}_{S}\",\"$LAMBDA_FILEBASE\",\"$KS_FILEBASE\",1.,\"output/truth_ratio_neg\",${PROCESS},false\)