Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
examples/JAcoustics/JKatoomba.sh File Reference

Go to the source code of this file.

Functions

then usage $script< detector
file >< tripodfile > fi 
if (($#!=2))
 
then fatal No file $TRIPOD fi
eval JPrintDetector a
$DETECTOR O IDENTIFIER eval
JPrintDetector a $DETECTOR O
SUMMARY 
if ((1))
 
then JDrawDetector2D a
$DETECTOR T $TRIPOD L TL o
footprint $FORMAT $BATCH fi 
if (!reuse_file $WORKDIR/katoomba.root)
 

Variables

 script
 
then echo Variable JPP_DIR
undefined exit fi source
$JPP_DIR setenv sh $JPP_DIR
&dev null zmodload zsh
mathfunc set_variable DIR
$JPP_DIR examples JAcoustics
set_variable WORKDIR 
set_variable
 
then fatal Wrong number of
arguments fi set_variable
DETECTOR $argv[1] set_variable
TRIPOD $argv[2] 
if [[!-f $DETECTOR]]
 
then $DIR JKatoomba a
$DETECTOR o $WORKDIR katoomba
root T 
$TRIPOD
 
then rm f $WORKDIR strings txt
for STRING 
in {STRINGS[*]}
 
do RESULT
 
then JPlot1D f $WORKDIR katoomba root
 

Function Documentation

then usage $script<detector file><tripodfile> fi if ( ($#!=2)  )
then fatal No file $TRIPOD fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY if ( (1)  )
then JDrawDetector2D a $DETECTOR T $TRIPOD L TL o footprint $FORMAT $BATCH fi if ( !reuse_file $WORKDIR/katoomba.  root)

Variable Documentation

script
Initial value:
=${0##*/}
if [ -z $JPP_DIR ]
then usage $script[energy[distance[z of PMT]]] fi case set_variable z
Definition: JDrawPDF.sh:45

Definition at line 2 of file examples/JAcoustics/JKatoomba.sh.

then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR& dev null zmodload zsh mathfunc set_variable DIR $JPP_DIR examples JAcoustics set_variable WORKDIR set_variable

Definition at line 23 of file examples/JAcoustics/JKatoomba.sh.

then fatal No file $DETECTOR fi if[[!-f $TRIPOD]]

Definition at line 34 of file examples/JAcoustics/JKatoomba.sh.

then $DIR JKatoomba a $DETECTOR o $WORKDIR katoomba root T $TRIPOD
Initial value:
{TRANSMITTER}
-n $NUMBER_OF_EVENTS
-@ acoustics_fit_parameters.txt
-@ "sigma_s = $SIGMA_S;"
-M mechanics.txt
-S 12345678
-d $DEBUG --!
if (( 1 ))
const int n
Definition: JPolint.hh:786
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonStart.sh:47
static const JPBS_t HYDROPHONE(4, 5)
PBS of hydrophone

Definition at line 60 of file examples/JAcoustics/JKatoomba.sh.

then source JAcousticsToolkit sh typeset A EMITTERS get_tripods tripod txt EMITTERS get_transmitters transmitter txt EMITTERS for EMITTER in {STRINGS[*]}

Definition at line 74 of file examples/JAcoustics/JKatoomba.sh.

do RESULT
Initial value:
=(`JPrintResult -f "$WORKDIR/katoomba.root:string\[$STRING\]" -F "GetRMS(1)" -F "GetRMS(2)"`)
printf "%4d %9.5f %9.5f [mrad]\n" $STRING $RESULT[*]
printf "%9.5f\n" $((sqrt($RESULT[1]*$RESULT[2] + $RESULT[1]*$RESULT[2]))) >> $WORKDIR/strings.txt
$JPP_DIR/examples/JGizmo/JHistogram1D
-x "50 0 +2.5"
JPlot1D
-f $WORKDIR/strings.root:\.\*
-\> "#sigma_{T} [mrad]"
-\^ "number of strings"
-T ""
-o strings.$FORMAT $BATCH
if (( 1 ))
then usage $script< directory A >< directoryB > nIn each there should be a file detector datx and tripod txt
then usage $script< detector specific pre-calibration script >< option > nAuxiliary script to make scan of pre stretching of detector strings(see JEditDetector)." "\nPossible options
do JPlot2D f $WORKDIR canberra[${EMITTER}\] root
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
then rm
Definition: sftpput.zsh:30
then fatal Invalid string $STRING
do set_variable OUTPUT_DIRECTORY $WORKDIR T
then awk F
then JHobbit a $DETECTOR f
then getFile sh $JPP_ARCHIVE $DETECTOR_ID $RUNS[1] $KEY $VERSION $WORKDIR
esac done
Definition: JAddHDE.sh:21

Definition at line 76 of file examples/JAcoustics/JKatoomba.sh.

do JPlot1D f $WORKDIR katoomba root

Definition at line 117 of file examples/JAcoustics/JKatoomba.sh.