9 # ------------------------------------------------------------------------------------------
11 # Example script to test JGandalf.
13 # ------------------------------------------------------------------------------------------
15 if [ -z $JPP_DIR ];
then
16 echo "Variable JPP_DIR undefined."
20 source $JPP_DIR/setenv.sh $JPP_DIR
25 if ( do_usage $* );
then
26 usage "$script [working directory]"
39 $DIR/JGandalfFitToGauss \
41 -
n $NUMBER_OF_EVENTS \
51 X_LABEL[hd]=background
53 for H1 in ha hb hc hd;
do
56 -\>
"$X_LABEL[${H1}]" \
57 -\^
"number of events [a.u]" \
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
do set_array DAQHEADER JPrintDAQHeader f
do echo Generating $dir eval DIR
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then usage eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY attach getModule a $DETECTOR typeset Z STRING typeset Z FLOOR typeset A X_LABEL typeset A YMAX X_LABEL[twist]
&set_variable OUTPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
alias put_queue eval echo n
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 typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
then usage $script< input_file >< detector_file >< output_file(.root)> fi set_variable NUMBER_OF_TIMESLICES set_variable NUMBER_OF_SUMMARYSLICES set_variable NUMBER_OF_EVENTS case set_variable NUMBER_OF_EVENTS
then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A
#define DEBUG(A)
Message macros.