Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
software/JTimeslice/JRandomTimesliceWriter.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 # \author mdejong
4 #
5 script=${0##*/}
6 
7 # ------------------------------------------------------------------------------------------
8 #
9 # Script to run JRandomTimesliceWriter.
10 #
11 # ------------------------------------------------------------------------------------------
12 
13 if [ -z $JPP_DIR ]; then
14  echo "Variable JPP_DIR undefined."
15  exit
16 fi
17 
18 source $JPP_DIR/setenv.sh $JPP_DIR
19 
20 set_variable: DEBUG TIMESLICE_DEBUG 1
21 set_variable: WORKDIR TIMESLICE_WORKDIR ./
22 set_variable: BACKGROUND_HZ TIMESLICE_BACKGROUND_HZ `getK40Rates`
23 set_variable: SEED TIMESLICE_SEED 0
24 set_variable: NUMBER_OF_SLICES TIMESLICE_SLICES 10
25 set_variable: RECYCLING TIMESLICE_RECYCLING "0 0"
26 set_variable: FACTOR TIMESLICE_FACTOR 1.0
27 
28 if do_usage $*; then
29  usage "$script <detector file> <output file> <PMT parameters file>"\
30  "\nAuxiliary script to produce random time slice data."
31 fi
32 
33 if (( $# == 3 )); then
37 else
38  fatal "Wrong number of arguments."
39 fi
40 
41 JRandomTimesliceWriter \
42  -a ${DETECTOR} \
43  -o ${OUTPUT_FILE} \
44  -n ${NUMBER_OF_SLICES} \
45  -P ${PMT_FILE} \
46  -P "QE=${FACTOR}" \
47  -S ${SEED} \
48  -B "$BACKGROUND_HZ" \
49  -N "$RECYCLING" \
50  -d ${DEBUG} \
51  --!
then usage $script[detector file[output file[trigger file[PMT parameters file]]]] fi case set_variable PMT_FILE
exit
Definition: JPizza.sh:36
then
Definition: datalogs.sh:34
then fatal Wrong number of arguments fi JConvertDetectorFormat a o
const int n
Definition: JPolint.hh:786
then JCalibrateToT a
Definition: JTuneHV.sh:107
const JK40Rates & getK40Rates()
Get K40 rates.
Definition: Antares.hh:27
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable DEBUG set_variable WORKDIR
Definition: JLegolas.sh:20
* usage
&set_variable OUTPUT_FILE
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonStart.sh:47
then usage $script[energy[distance[z of PMT]]] fi case set_variable z
Definition: JDrawPDF.sh:45
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
Definition: JMuonPostfit.sh:40
set_variable DETECTOR
then echo
Definition: JQAQC.sh:92
then $DIR JPlotNPE PDG P
Definition: JPlotNPE-PDG.sh:62
#define DEBUG(A)
Message macros.
Definition: JMessage.hh:62