ROOTPWA
step10.sh
Go to the documentation of this file.
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
5 
6 source ${ROOTPWA}/scripts/pwa_Kpipi_example/set_workspace_var.sh
7 
8 echo -e "\n **************** part 10 *****************"
9 echo " *${STEP_NAME[9]}*"
10 echo -e " ******************************************\n"
11 
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
15 rm /tmp/rootmacro.C
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
22 rm /tmp/rootmacro.C
23 
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
27 
28 cd ${_PWD}