1 # this script tests the status of the Kpipi PWA workflow chain
2 # the variables in set_workspace_var.sh must be set correctly
3 # author: Promme@web.de ; jasinski@kph.uni-mainz.de
4 # worked with SVN version 290
8 # test if ${ROOTPWA} is set (set it in .bashrc for example)
11 echo -e
"\n ROOTPWA variable is set to ${ROOTPWA} \n"
13 echo -e
"\E[37;31m \n ROOTPWA variable is not set correctly! "; tput sgr0
14 echo -e
"\E[37;31m Please set it first! "; tput sgr0
15 echo -e
"\n Aborting this script"; tput sgr0
19 # load the variables (even if already done)
20 source ${ROOTPWA}/scripts/pwa_Kpipi_example/set_workspace_var.sh
22 # array with variables 1/0 for each step to hold
25 " setting up workspace "\
26 " Filling flat phasespace events "\
27 " MC acceptance of flat phasespace "\
28 " Filtering RAW and MC data into bins "\
29 " Generation of partial wave key files "\
30 " Calculation of Amplitudes and Integrals"\
31 " Specifying amplitudes for fit "\
32 " Fitting the partial waves "\
33 " Visualization of fit results "\
35 export STEP_DONE=( 0 0 0 0 0 0 0 0 0 0 );
37 # perform some test giving hints for the current PWA analysis status
39 # step 1: is the raw file in place?
40 if [ -f ${KPIPI_RAW_FILE_DIR}/${KPIPI_RAW_FILE} ]
42 if [ -f ${KPIPI_MC_FILE_DIR}/${KPIPI_MC_FILE} ]
48 # step 6: search for at least one .key file
49 # we need the number of keyfiles for further tests first
51 if [ -
d ${KPIPI_KEYFILE_DIR} ]
53 for KEYFILE in ${KPIPI_KEYFILE_DIR}