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)
36 usage "$script [input file [working directory [muons]]]"
46 # Number of prefits as a function of application (0 = all)
58 #
Fit application identifier
60 typeset -
A ENUMERATION
88 if [[ ! -
f $OUTPUT_FILE ]];
then
90 echo "************************************************ " $MUONS
91 if [[ -z $MUONS ]];
then
96 -
A ${ENUMERATION[${
APP}]} \
105 -
A ${ENUMERATION[${
APP}]} \
118 -
f $WORKDIR/jshowerpostfit\[completefit\].root:ha \
119 -\>
"angle wrt selected fermion [deg]" \
120 -\^
"number of events [a.u.]" \
131 for APP in prefit pointsimplex positionfit energyprefit directionprefit completefit;
do
145 -
f $WORKDIR/jshowerpostfit\[completefit\].root:ee \
148 -\>
"E_{true} [GeV]" \
149 -\<
"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
then usage $script< detector file >< inputfile > nUtility script to create PDF and CDF of transition time distribution fi case set_variable WORKDIR
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 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[*]