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
JPrintK40Rates.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
set_variable DIR $JPP_DIR
examples JPhysics set_variable
DEBUG set_variable
darkcount_Hz set_variable
rateL0_Hz set_array rateL1_Hz
if do_usage *then usage
$script[working directory] fi
function 
typeout ()
 
do if ((1))
 

Variables

 version
 
set_variable WORKDIR
 
then make C $WORKDIR clean
make C $WORKDIR $TARGET
$WORKDIR rateL0 d &$WORKDIR 
rateL0_
 

Function Documentation

then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR set_variable DIR $JPP_DIR examples JPhysics set_variable DEBUG set_variable darkcount_Hz set_variable rateL0_Hz set_array rateL1_Hz if do_usage* then usage $script [working directory] fi function typeout ( )

Definition at line 39 of file JPrintK40Rates.sh.

40 {
41  printf "(%4.0f, " $(( $rateL0_Hz + $darkcount_Hz ))
42  printf "{ %6.1f" $rateL1_Hz[1]
43  printf ", %6.2f" $rateL1_Hz[2,-1]
44  printf "})\n"
45 }
const int n
Definition: JPolint.hh:786
do if ( (1)  )

Variable Documentation

version
Initial value:
=1.0
script=${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 5 of file JPrintK40Rates.sh.

set_variable WORKDIR
Initial value:
{TMPDIR:-/tmp}/.K40
mkdir -p $WORKDIR
cp $DIR/JRateK40.cc $WORKDIR/rateL0.cc
cp $DIR/JMultiplicityK40.cc $WORKDIR/rateL1.cc
cat>$WORKDIR/Makefile<<EOF
include \$(JPP_DIR)/make/JMakefile
EOF
for TARGET in KM3NeT KM3NeT_highQE
then JLigier sh continue fi cat
Definition: JDAQDriver.sh:51
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR if do_usage *then usage $script[(input file)+] fi set_variable DEBUG set_variable WORKDIR TMPDIR
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:48
then cp
then getFile sh $JPP_ARCHIVE $DETECTOR_ID $RUNS[1] $KEY $VERSION $WORKDIR

Definition at line 50 of file JPrintK40Rates.sh.

then make C $WORKDIR clean make C $WORKDIR $TARGET $WORKDIR rateL0 d& $WORKDIR rateL0_
Initial value:
{TARGET}.txt
$WORKDIR/rateL1
-n 100000000
-F 4
-G 2
-D "0.216 5"
-A 1
-U
-o /dev/null
-d 0 >& $WORKDIR/rateL1_${TARGET}.txt
eval set_variable rateL0_${TARGET}_Hz `awk '/Rate *1Dx1D/ { print $4 }' $WORKDIR/rateL0_${TARGET}.txt`
eval set_array rateL1_${TARGET}_Hz `awk '/Rate\[.*\] *=/ { print $3 }' $WORKDIR/rateL1_${TARGET}.txt`
rateL0_Hz=$(( $rateL0_Hz * $rateL0_KM3NeT_highQE_Hz / $rateL0_KM3NeT_Hz ))
darkcount_Hz=$(( $darkcount_Hz * 3 ))
for (( i = 1; i <= ${#rateL1_Hz}; ++i ))
then make C $WORKDIR clean make C $WORKDIR $TARGET $WORKDIR rateL0 d &$WORKDIR rateL0_
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
const int n
Definition: JPolint.hh:786
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR set_variable DIR $JPP_DIR examples JPhysics set_variable DEBUG set_variable darkcount_Hz set_variable rateL0_Hz set_array rateL1_Hz if do_usage *then usage $script[working directory] fi function typeout()
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
do set_variable STRING_TXT awk
then awk F
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonStart.sh:47
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
do echo Generating $dir eval D
Definition: JDrawLED.sh:53
then getFile sh $JPP_ARCHIVE $DETECTOR_ID $RUNS[1] $KEY $VERSION $WORKDIR
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null
esac done
Definition: JAddHDE.sh:21

Definition at line 67 of file JPrintK40Rates.sh.