7 # ------------------------------------------------------------------------------------------
9 # Utility script to plot fit results.
11 # ------------------------------------------------------------------------------------------
14 if [ -z $JPP_DIR ];
then
15 echo "Variable JPP_DIR undefined."
20 source $JPP_DIR/setenv.sh $JPP_DIR
23 # list of applications in the processing chain
25 APPLICATIONS=(prefit pointsimplex positionfit energyprefit directionprefit completefit)
34 usage "$script [input file [working directory [muons]]]"
44 # Number of prefits as a function of application (0 = all)
56 #
Fit application identifier
58 typeset -
A ENUMERATION
86 if [[ ! -
f $OUTPUT_FILE ]];
then
88 echo "************************************************ " $MUONS
89 if [[ -z $MUONS ]];
then
94 -
A ${ENUMERATION[${
APP}]} \
103 -
A ${ENUMERATION[${
APP}]} \
116 -
f $WORKDIR/jshowerpostfit\[completefit\].root:ha \
117 -\>
"angle wrt selected fermion [deg]" \
118 -\^
"number of events [a.u.]" \
129 for APP in prefit pointsimplex positionfit energyprefit directionprefit completefit;
do
143 -
f $WORKDIR/jshowerpostfit\[completefit\].root:ee \
146 -\>
"E_{true} [GeV]" \
147 -\<
"E_{fit} [GeV]" \
then usage $script< detector >< run >< outputfile > fi case set_variable OPTION
Q(UTCMax_s-UTCMin_s)-livetime_s
esac typeset A NUMBER_OF_FIT NUMBER_OF_FIT
TFitResultPtr Fit(TH1D *h)
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR APPLICATIONS
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then JFileTuna f $INPUT_FILE
&set_variable OUTPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR tmp set_variable JDAQ_TIMESLICE JDAQTimeslice if do_usage *then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
then usage $script[input file[working directory[muons]]] fi case set_variable MUONS
then usage $script[input file[working directory[option]]] nWhere option can be N
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A
then rm i $OUTPUT_FILE fi done for APP in $APPLICATIONS[*]