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."
34 $DIR/JPlotPMTParameters2D \
40 # parameters and plot ranges
47 Y_RANGE+=(gainSpread
" 0.0 1.0")
48 Y_RANGE+=(riseTime_ns
" 0.0 15.0")
52 Y_RANGE+=(saturation
" 0.0 250.0")
56 eval `JPrintDetector -
a $DETECTOR -O SUMMARY`
74 for (( FLOOR = $FIRST_FLOOR; $FLOOR <= $LAST_FLOOR; FLOOR += 1 ));
do
79 debug "($STRING,$FLOOR) $KEY"
86 -
f "${HISTOGRAMS[*]}" \
87 -
P X -y
"$XMIN $XMAX" \
88 -
o /tmp/project.root \
92 -
f /tmp/project.root:\.\* \
94 -
F "1.0/${NUMBER_OF_PMTS}" \
100 -y $Y_RANGE[${KEY}] \
104 -
o /tmp/P_${KEY}_${
STRING}.gif \
void set_variable(const std::string &name, const std::string &value)
Set environment variable.
do eval JCanberra a $DETECTOR f $INPUT_FILE o $WORKDIR canberra[${EMITTER}\] root T print_tripods V print_velocity E $EMITTER d $DEBUG!done HISTOGRAMS
clean eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY set_variable STRING
then fatal No sound hydrophone file $HYDROPHONE_TXT fi JGraph f $HYDROPHONE_TXT o $HYDROPHONE_ROOT sort gr k
do set_array DAQHEADER JPrintDAQHeader f
do echo Generating $dir eval DIR
then fatal Invalid string $STRING
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then $JPP_DIR examples JDetector JSlewing P slewing
then fatal Not enough arguments fi set_variable DETECTOR $argv[1] INPUT_FILES
then fatal Wrong number of arguments fi set_variable STRING $argv[1] set_variable DETECTOR_TXT $WORKDIR $DETECTOR_TXT tail read X Y Z RMS let XMIN
*set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2,-2] set_variable OUTPUT_FILE $argv[-1]
then $JPP_DIR examples JDetector JToT o $OUTPUT_FILE n N $NPE P gain
&set_variable OUTPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
then $JPP_DIR software JCalibrate JCalibrateToT a
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
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< 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
do eval JCanberra a $DETECTOR f $INPUT_FILE o $WORKDIR canberra[${EMITTER}\] root T print_tripods V print_velocity E $EMITTER d $DEBUG!done attach getModule a $DETECTOR typeset Z STRING typeset Z FLOOR set_variable FIRST_FLOOR for STRING in $STRINGS[*]
#define DEBUG(A)
Message macros.
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 A!typeset A Y_RANGE Y_RANGE
void scale(vector< double > &v, double c)
scale vector content