9 if [ -z $JPP_DIR ];
then
10 echo "Variable JPP_DIR undefined."
14 source $JPP_DIR/setenv.sh $JPP_DIR
23 if ( do_usage $* );
then
24 usage "$script <detector file> (PMT parameters file)+"
28 fatal
"Wrong number of parameters."
35 $DIR/JPlotPMTParameters2D \
45 Y_RANGE+=(EFFICIENCY
" 0.0 1.5")
48 Y_RANGE+=(gainSpread
" 0.0 1.0")
49 Y_RANGE+=(riseTime_ns
" 0.0 15.0")
53 Y_RANGE+=(saturation
" 0.0 250.0")
57 eval `JPrintDetector -
a $DETECTOR -O SUMMARY`
69 for (( FLOOR = $FIRST_FLOOR; $FLOOR <= $LAST_FLOOR; FLOOR += 1 ));
do
85 -
T "(${STRING},${FLOOR})" \
86 -o /tmp/${KEY}_${STRING}_${FLOOR}.gif -B
90 -
P X -y
"$XMIN $XMAX" \
94 -
f /tmp/project.root:\.\* \
96 -
F "1.0/${NUMBER_OF_PMTS}" \
101 -y $Y_RANGE[${KEY}] \
104 -
T "(${STRING},${FLOOR})" \
105 -o /tmp/P_${KEY}_${STRING}_${FLOOR}.gif -B
116 /tmp/${KEY}_${STRING}_*.gif \
$WORKDIR/${KEY}_${STRING}.gif
124 /tmp/P_${KEY}_${STRING}_*.gif \
$WORKDIR/P_${KEY}_${STRING}.gif
*fatal Wrong number of arguments esac JCookie sh JRuns D $DETECTOR d sort n k
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
then check_input_file $DETECTOR $INPUT_FILE for OPTION in A B C D E F
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
do echo Generating $dir eval DIR
then fatal Wrong number of parameters fi set_variable DETECTOR $argv[1] set_array INPUT_FILE $argv[2] $DIR JPlotPMTParameters a $DETECTOR P $INPUT_FILE o $OUTPUT_FILE d $DEBUG!typeset A Y_RANGE Y_RANGE
fi JEventTimesliceWriter a
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR set_variable DEBUG set_variable NPE set_variable FIT_RANGE set_variable OUTPUT_DIR tmp set_variable OUTPUT_JSON $OUTPUT_DIR HVtuning json set_variable OUTPUT_ROOT $OUTPUT_DIR HVtuning root set_variable FIT_OPTIONS RME set_variable PMT_DEFAULT gain
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then print_variable DETECTOR INPUT_FILE INTERMEDIATE_FILE check_input_file $DETECTOR $INPUT_FILE check_output_file $INTERMEDIATE_FILE $OUTPUT_FILE JMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then $JPP_DIR examples JDetector JSlewing P slewing
*fatal Invalid number of arguments esac set_variable TYPE F eval JPrintDetector a $DETECTOR O SUMMARY attach getModule a $DETECTOR typeset Z STRING typeset Z FLOOR for STRING in $STRINGS[*]
then fatal Not enough arguments fi set_variable DETECTOR $argv[1] INPUT_FILES
*set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2,-2] set_variable OUTPUT_FILE $argv[-1]
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
then usage $script< detector file >< inputfile > fi case set_variable WORKDIR
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A
const JModule & getModule(const JDetector &detector, const JModuleLocation &location)
find module with a given string and floor number
#define DEBUG(A)
Message macros.
void scale(vector< double > &v, double c)
scale vector content