Jpp  17.0.0-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
detector-XY:fit.sh File Reference

Go to the source code of this file.

Functions

then usage $script< string
identifier >[< detector file >
] fi 
if (($#==0||$# > 2))
 

Variables

 script
 
then echo Variable JPP_DIR
undefined exit fi source
$JPP_DIR setenv sh $JPP_DIR
&dev null 
set_variable
 
then fatal Wrong number of
arguments fi set_variable
STRING $argv[1] set_variable
DETECTOR_TXT $WORKDIR 
detectorxy_
 
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 echo $X $Y $G1_TXT JGraph
f $G1_TXT o $G1_ROOT awk 
BEGIN
 
then let XMIN
 
no fit printf nominal n
$STRING awk
X
 

Function Documentation

then usage $script<string identifier> [<detector file>] fi if ( ($#==0||$# > 2)  )

Variable Documentation

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

Definition at line 2 of file detector-XY:fit.sh.

then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR& dev null set_variable

Definition at line 18 of file detector-XY:fit.sh.

then fatal Wrong number of arguments fi set_variable STRING $argv [1] set_variable DETECTOR_TXT $WORKDIR detectorxy_
Initial value:
{STRING}.txt
set_variable G1_ROOT $WORKDIR/g1.root
if [[ ! -f $DETECTOR_TXT ]] then
fatal "No detector data file $DETECTOR_TXT."
fi
JGraph2D
-f $DETECTOR_TXT
-o $DETECTOR_ROOT
sort -gr -k 3
then fatal No hydrophone data file $HYDROPHONE_TXT fi sort gr k
clean eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY set_variable STRING
o $QUALITY_ROOT d $DEBUG!JPlot1D f
Definition: JDataQuality.sh:66
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
then JConvertDetectorFormat a $DETECTOR[1] o
then display $WORKDIR
Definition: plot-Domino.sh:128
then fatal Wrong number of arguments fi set_variable STRING $argv[1] set_variable DETECTOR_TXT $WORKDIR detectorxy_
Double_t g1(const Double_t x)
Function.
Definition: JQuantiles.cc:25

Definition at line 28 of file detector-XY:fit.sh.

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 echo $X $Y $G1_TXT JGraph f $G1_TXT o $G1_ROOT awk BEGIN
Initial value:
{
XMIN = +1e3
XMAX = -1e3
YMIN = +1e3
YMAX = -1e3
}
END { print XMIN, XMAX, YMIN, YMAX }
$1 !~ /^#/ {
if ( $1 < XMIN ) { XMIN = $1 }
if ( $1 > XMAX ) { XMAX = $1 }
if ( $2 < YMIN ) { YMIN = $2 }
if ( $2 > YMAX ) { YMAX = $2 }
}
' $DETECTOR_TXT | read XMIN XMAX YMIN YMAX
if (( $X > $XMIN && $X < $XMAX && $Y > $YMIN && $Y < $YMAX ))
fatal Invalid number of arguments esac let YMIN
Definition: testToT.sh:39
print
Definition: JConvertDusj.sh:44
then let XMIN

Definition at line 50 of file detector-XY:fit.sh.

then let XMIN

Definition at line 67 of file detector-XY:fit.sh.

no fit printf nominal n $STRING awk v X
Initial value:
=0.0 -v Y=0.0 '{ if ($1 == X && $2 == Y) { print $3 }}' $DETECTOR_TXT`
printf "optimal %4d %7.3f %7.3f %7.3f\n" $STRING $X $Y $Z
fi
if (( $# == 2 ))
then fatal Wrong number of arguments fi set_variable STRING $argv[1] set_variable DETECTORXY_TXT $WORKDIR $DETECTORXY_TXT tail read X Y CHI2 RMS printf optimum n $X $Y $CHI2 $RMS awk v Y
then fatal Invalid string $STRING
data_type v[N+1][M+1]
Definition: JPolint.hh:756

Definition at line 102 of file detector-XY:fit.sh.