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

Go to the source code of this file.

Functions

then JDetector sh $DETECTOR fi if (!reuse_file $INPUT_FILE)
 
EOF cat $WORKDIR
ev_configure_dqsimulator txt
<< EOFnumberOfFrames=${NUMBER_OF_FRAMES};numberOfEvents=1;inputFile=${INPUT_FILE};target=0
${FILTER_HOST}:${PORT};EOFrm-f
$WORKDIR/driver.txtfor((i=1;$i
<=$NUMBER_OF_DQ_SIMULATORS;++i));do
let"index = ${#SOURCE_HOST}
- $i % ${#SOURCE_HOST}"echo"source
= 0 $DQ_SIMULATOR/$i;" >
$WORKDIR
ev_configure_dqsimulator txt
echo process $DQ_SIMULATOR $i 
$SOURCE_HOST (setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG\</dev/null > &/dev/null &))
 

Variables

 script
 
then echo Variable JPP_DIR
undefined exit fi source
$JPP_DIR setenv sh $JPP_DIR
set_variable DEBUG
set_variable 
WORKDIR
 
&set_variable LOGGER_OUTPUT
 
&set_variable DETECTOR
 
*fatal Wrong number of
arguments esac set_variable ID
JPrintDetector a $JPP_DATA
km3net_reference detx O
identifier sed s Detector
set_variable RUN typeset Z ID
typeset Z RUN set_variable
INPUT_FILE $WORKDIR timeslice
root set_variable OUTPUT_FILE
$WORKDIR 
KM3NeT_
 
then JRandomTimesliceWriter a
$DETECTOR o $INPUT_FILE B
$SINGLESRATE_HZ
$DOUBLESRATE_HZ n
$NUMBER_OF_SLICES d1!fi 
if [[-f $OUTPUT_FILE]]
 
 then
 
rm i $OUTPUT_FILE fi
set_variable DQ_SIMULATOR
JDQSimulator set_variable 
NUMBER_OF_DQ_SIMULATORS
 
 update_s = 10
 
 dataWriter = ${WRITER_HOST}
 
 numberOfFramesPerSlice = ${NUMBER_OF_FRAMES}
 
 detector = %<${DETECTOR}>%
 
 triggerParameters = trigger3DMuon.enabled = 1
 
SN TMaxLocal_ns = 10.0
 
SN ctMin = 0.0
 
 c_sizeL1 = 10
 
 queueSize = 100000000
 
 path = $WORKDIR
 
 JDataFilter = ${DATAFILTER} ${FILTER_HOST}:${PORT}
 
 JDataWriter = ${DATAWRITER} ${WRITER_HOST}
 

Function Documentation

then JDetector sh $DETECTOR fi if ( !reuse_file  $INPUT_FILE)
EOF cat $WORKDIR ev_configure_dqsimulator txt<<EOFnumberOfFrames = ${NUMBER_OF_FRAMES};numberOfEvents = 1;inputFile = ${INPUT_FILE};target = 0 ${FILTER_HOST}:${PORT};EOFrm -f $WORKDIR/driver.txtfor (( i = 1; $i <= $NUMBER_OF_DQ_SIMULATORS ; ++i )); do let "index = ${#SOURCE_HOST} - $i % ${#SOURCE_HOST}" echo "source = 0 $DQ_SIMULATOR/$i;" > $WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST ( setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&  $DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &)

Variable Documentation

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

Definition at line 5 of file examples/JDataFilter/JDataFilter.sh.

then usage $script [detector file [logger file [working directory]]] fi case set_variable WORKDIR
Initial value:
{TMPDIR:-/tmp}/
set_variable IP_ADDRESS `get_ip_address`
set_variable MESSAGE_SERVER localhost
set_variable MESSAGE_LOGGER localhost
set_variable TIMEOUT_S 10
set_variable RUNTIME_S 30
set_array SOURCE_HOST $IP_ADDRESS $IP_ADDRESS $IP_ADDRESS
set_variable FILTER_HOST $IP_ADDRESS
set_variable WRITER_HOST $IP_ADDRESS
set_variable DATAFILTER F001/F001
set_variable DATAWRITER W000/W000
set_variable SINGLESRATE_HZ 0e3
set_variable DOUBLESRATE_HZ 2e3
set_variable DETECTOR $JPP_DATA/km3net_reference.detx
if do_usage $*
then usage $script[port]< option > nPossible restart fi case set_variable OPTION set_variable PORT
&set_variable LOGGER_OUTPUT
usr share Modules init zsh export TMPDIR
then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR &dev null set_variable
Definition: JAcoustics.sh:21
then usage $script[detector file[output file[PMT parameters file[number of slices]]]] nAuxiliary script to produce random time slice data fi case set_variable NUMBER_OF_SLICES
then display $WORKDIR
Definition: plot-Domino.sh:128
set_variable DETECTOR

Definition at line 22 of file examples/JDataFilter/JDataFilter.sh.

& set_variable LOGGER_OUTPUT

Definition at line 49 of file examples/JDataFilter/JDataFilter.sh.

& set_variable DETECTOR

Definition at line 50 of file examples/JDataFilter/JDataFilter.sh.

* fatal Wrong number of arguments esac set_variable ID JPrintDetector a $JPP_DATA km3net_reference detx O identifier sed s Detector set_variable RUN typeset Z ID typeset Z RUN set_variable INPUT_FILE $WORKDIR timeslice root set_variable OUTPUT_FILE $WORKDIR KM3NeT_
Initial value:
{ID}_${RUN}.root
if [[ ! -f $DETECTOR ]]
o $QUALITY_ROOT d $DEBUG!CHECK_EXIT_CODE JPlot1D f
Definition: JDataQuality.sh:76
then rm i $OUTPUT_FILE fi let RUN
then set_variable MODULE getModule a $DETECTOR L $STRING $FLOOR JEditDetector a $DETECTOR M $MODULE add $X o $DETECTOR else echo No update of detector $DETECTOR

Definition at line 62 of file examples/JDataFilter/JDataFilter.sh.

then JRandomTimesliceWriter a $DETECTOR o $INPUT_FILE B $SINGLESRATE_HZ $DOUBLESRATE_HZ n $NUMBER_OF_SLICES d1 ! fi if[[-f $OUTPUT_FILE]]

Definition at line 87 of file examples/JDataFilter/JDataFilter.sh.

then

Definition at line 87 of file examples/JDataFilter/JDataFilter.sh.

rm i $OUTPUT_FILE fi set_variable DQ_SIMULATOR JDQSimulator set_variable NUMBER_OF_DQ_SIMULATORS
Initial value:
{#SOURCE_HOST}
set_variable NUMBER_OF_FRAMES `JPrintDetector -a $DETECTOR -O modules | awk '/Module/ {if ($4 != 0) {print $0}}' | wc -l`
cat>$WORKDIR/ev_configure_datafilter.txt<<EOF
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 &dev null set_variable
Definition: JAcoustics.sh:21
do set_variable STRING_TXT awk
then JCalibrateToT a
Definition: JTuneHV.sh:116
then set_variable MODULE getModule a $DETECTOR L $STRING $FLOOR JEditDetector a $DETECTOR M $MODULE add $X o $DETECTOR else echo No update of detector $DETECTOR
then display $WORKDIR
Definition: plot-Domino.sh:128

Definition at line 93 of file examples/JDataFilter/JDataFilter.sh.

update_s = 10

Definition at line 101 of file examples/JDataFilter/JDataFilter.sh.

dataWriter = ${WRITER_HOST}

Definition at line 102 of file examples/JDataFilter/JDataFilter.sh.

numberOfFramesPerSlice = ${NUMBER_OF_FRAMES}

Definition at line 103 of file examples/JDataFilter/JDataFilter.sh.

detector = %<${DETECTOR}>%

Definition at line 104 of file examples/JDataFilter/JDataFilter.sh.

triggerParameters = trigger3DMuon.enabled = 1

Definition at line 105 of file examples/JDataFilter/JDataFilter.sh.

SN TMaxLocal_ns = 10.0

Definition at line 109 of file examples/JDataFilter/JDataFilter.sh.

SN ctMin = 0.0

Definition at line 109 of file examples/JDataFilter/JDataFilter.sh.

c_sizeL1 = 10

Definition at line 110 of file examples/JDataFilter/JDataFilter.sh.

queueSize = 100000000

Definition at line 111 of file examples/JDataFilter/JDataFilter.sh.

path = $WORKDIR

Definition at line 112 of file examples/JDataFilter/JDataFilter.sh.

JDataFilter = ${DATAFILTER} ${FILTER_HOST}:${PORT}

Definition at line 113 of file examples/JDataFilter/JDataFilter.sh.

JDataWriter = ${DATAWRITER} ${WRITER_HOST}

Definition at line 114 of file examples/JDataFilter/JDataFilter.sh.