1 # this script demonstrates how to visualize the fitting results
2 # currently Intensities only are shown
3 # should be called by run_X_PWA_analysis.sh script
4 # author: P.Jasinski Promme@web.de , jasinski@kph.uni-mainz.de
6 source ${ROOTPWA}/scripts/pwa_Kpipi_example/set_workspace_var.sh
8 echo -e
"\n **************** part 10 *****************"
9 echo " *${STEP_NAME[9]}*"
10 echo -e
" ******************************************\n"
12 # visualization must be performed in the rootscript folder containing all needed (logon) scripts
13 cd ${ROOTPWA}/src/rootscripts
14 # write a macro to load into root
16 echo "void rootmacro(){" >> /tmp/rootmacro.C
17 echo "TTree* tree = loadFitResult(\"${KPIPI_FIT_DIR}/*.result.root\");" >> /tmp/rootmacro.C
18 echo "plotAllIntensities(tree, true);" >> /tmp/rootmacro.C
19 echo "};" >> /tmp/rootmacro.C
20 # run the lines of code
21 root -l -
q /tmp/rootmacro.C
24 # hopefully a ps file was created containing all intensities
25 mv ${ROOTPWA}/src/rootscripts/waveIntensities.ps ${KPIPI_FIT_DIR}
26 # ps2pdf ${KPIPI_FIT_DIR}/waveintensities.ps