Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
JSoundVelocity.sh File Reference

Go to the source code of this file.

Functions

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 VELOCITY_TXT
$WORKDIR velocity txt
set_variable VELOCITY_ROOT
$WORKDIR velocity root 
if (do_usage $*)
 
esac function clean ()
 

Variables

 script
 
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
 

Function Documentation

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 VELOCITY_TXT $WORKDIR velocity txt set_variable VELOCITY_ROOT $WORKDIR velocity root if ( do_usage $*  )
esac function clean ( )

Definition at line 34 of file JSoundVelocity.sh.

35 {
36  rm -f $WORKDIR/detector.detx
37  rm -f $WORKDIR/tripod.txt
38  rm -f $WORKDIR/base.txt
39  rm -f $WORKDIR/toashort.root
40  rm -f $WORKDIR/event.root
41  rm -f $VELOCITY_TXT
42  rm -f $VELOCITY_ROOT
43  rm -f $WORKDIR/velocity.gif
44 }
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
do set_array DAQHEADER JPrintDAQHeader f
Definition: JTuneHV.sh:74
then display $WORKDIR
Definition: plot-Domino.sh:127
do set_variable DETECTOR_TXT $WORKDIR detector

Variable Documentation

script
Initial value:
=${0##*/}
if [ -z $JPP_DIR ]

Definition at line 2 of file JSoundVelocity.sh.

set_variable OPTION $argv[1]

Definition at line 27 of file JSoundVelocity.sh.

* fatal Wrong number of arguments

Definition at line 30 of file JSoundVelocity.sh.

case $OPTION in clean clean

Definition at line 47 of file JSoundVelocity.sh.

* fatal Wrong option $OPTION

Definition at line 47 of file JSoundVelocity.sh.

then JDetectorDB D $DETECTOR r $RUN o $WORKDIR detector detx ! fi if[[!-f $WORKDIR/tripod.txt]]

Definition at line 49 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 136 of file JSoundVelocity.sh.