Jpp
15.0.1-rc.1-highqe
the software that should make you happy
|
Go to the source code of this file.
Functions | |
esac function | clean () |
Variables | |
script | |
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable DIR $JPP_DIR examples JAcoustics set_variable WORKDIR set_variable QUANTILE set_variable TMAX_S set_variable NUMBER_OF_HITS | set_variable |
then usage $script< detector > < run > nwhere< option > can be clean fi case set_variable OPTION | $argv [3] |
*fatal Wrong number of | arguments |
case $OPTION in clean | clean |
*fatal Wrong option | $OPTION |
esac JCookie sh | if [[-n"$DETECTOR"&&-n"$RUN"]] |
then cat $WORKDIR tripod txt << EOF 12 587888 4017079-3450.0 14 587436 4016992-3450.0 16 587843 4016727-3450.0EOF fi if[[!-f $WORKDIR/base.txt]];then $DIR/JBaseModuleWriter-a $WORKDIR/detector.detx-o $WORKDIR/base.txt fi if[[!-f $WORKDIR/toashort.root]];then JConvertDB-q toashort-@"detid = `getDetector -D $DETECTOR`"-@"minrun = $RUN"-@"maxrun = $RUN"-o $WORKDIR/toashort.root-d $DEBUG--!fi if(!reuse_file $VELOCITY_TXT);then for A in 1500.0 1510.0 1520.0 1530.0 1532.0 1534.0 1536.0 1538.0 1540.0 1542.0 1544.0 1546.0 1548.0 1550.0 1560.0 1570.0 1580.0;do rm-f event.root JAcousticsEventBuilder-a $WORKDIR/detector.detx-f $WORKDIR/toashort.root-@"Q = $QUANTILE;"-@"TMax_s = $TMAX_S;"-@"numberOfHits = $NUMBER_OF_HITS;"-T $WORKDIR/tripod.txt-B $WORKDIR/base.txt-o $WORKDIR/event.root-V"$A"-d $DEBUG--!RMS=`$DIR/JPrintRMS-f $WORKDIR/event.root-N 1-d0`let RMS="$RMS*1000"echo"$A $RMS" > $VELOCITY_TXT done fi JGraph f $VELOCITY_TXT o $VELOCITY_ROOT JPlot1D f | $VELOCITY_ROOT |
esac function clean | ( | ) |
Definition at line 36 of file JSoundVelocity.sh.
script |
Definition at line 2 of file JSoundVelocity.sh.
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR& dev null set_variable DEBUG set_variable DIR $JPP_DIR examples JAcoustics set_variable WORKDIR set_variable QUANTILE set_variable TMAX_S set_variable NUMBER_OF_HITS set_variable |
Definition at line 23 of file JSoundVelocity.sh.
set_variable OPTION $argv[1] |
Definition at line 29 of file JSoundVelocity.sh.
* fatal Wrong number of arguments |
Definition at line 32 of file JSoundVelocity.sh.
Definition at line 49 of file JSoundVelocity.sh.
* fatal Wrong option $OPTION |
Definition at line 49 of file JSoundVelocity.sh.
Definition at line 51 of file JSoundVelocity.sh.
then cat $WORKDIR tripod txt<<EOF 12 587888 4017079 -3450.0 14 587436 4016992 -3450.0 16 587843 4016727 -3450.0EOF fi if [[ ! -f $WORKDIR/base.txt ]]; then $DIR/JBaseModuleWriter -a $WORKDIR/detector.detx -o $WORKDIR/base.txt fi if [[ ! -f $WORKDIR/toashort.root ]]; then JConvertDB -q toashort -@ "detid = `getDetector -D $DETECTOR`" -@ "minrun = $RUN" -@ "maxrun = $RUN" -o $WORKDIR/toashort.root -d $DEBUG --! fi if ( ! reuse_file $VELOCITY_TXT ); then for A in 1500.0 1510.0 1520.0 1530.0 1532.0 1534.0 1536.0 1538.0 1540.0 1542.0 1544.0 1546.0 1548.0 1550.0 1560.0 1570.0 1580.0; do rm -f event.root JAcousticsEventBuilder -a $WORKDIR/detector.detx -f $WORKDIR/toashort.root -@ "Q = $QUANTILE;" -@ "TMax_s = $TMAX_S;" -@ "numberOfHits = $NUMBER_OF_HITS;" -T $WORKDIR/tripod.txt -B $WORKDIR/base.txt -o $WORKDIR/event.root -V "$A" -d $DEBUG --! RMS=`$DIR/JPrintRMS -f $WORKDIR/event.root -N 1 -d0` let RMS="$RMS*1000" echo "$A $RMS" > $VELOCITY_TXT done fi JGraph f $VELOCITY_TXT o $VELOCITY_ROOT JPlot1D f $VELOCITY_ROOT |
Definition at line 138 of file JSoundVelocity.sh.