Jpp - the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
JDAQDriver.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
&dev null if do_usage *then
usage $script fi set_variable
SERVER localhost set_variable
LOGGER localhost set_variable
DEBUG set_variable RUN
set_variable TIMEOUT_S
set_variable RUNTIME_S
set_variable HOST
get_ip_address set_variable
HOST1 $HOST set_variable HOST2
$HOST set_variable HOST3 $HOST
set_variable HOST4 $HOST
set_variable PORT set_variable
EVENT_NUMBER 
if ((1))
 

Variables

 script
 
then JLigier sh continue fi
cat ev_init txt<< EOFhello
worldEOFcat > driver txt
<< EOFprocess JDAQDemoClient/A
$HOST1 ssh\$HOST\$"JDAQDemoClient
-u %/A -H \$SERVER\$ -M
\$LOGGER\$ -d $DEBUG </dev/null >
& dev null& process
JDAQDemoClient B $HOST2
JDAQClientStarter H 
$HOST3
 
process JDAQDemoClient $HOST3
ssh $HOST JDAQDemoClient u
$NAME H $SERVER M $LOGGER d
$DEBUG</dev/null > &dev null
&process JDAQDemoClient $HOST4
ssh $HOST JDAQDemoClient u
$NAME H $SERVER M $LOGGER d
$DEBUG</dev/null > &dev null
&enter event 
ev_init
 
event ev_start
 

Function Documentation

then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR& dev null if do_usage* then usage $script fi set_variable SERVER localhost set_variable LOGGER localhost set_variable DEBUG set_variable RUN set_variable TIMEOUT_S set_variable RUNTIME_S set_variable HOST get_ip_address set_variable HOST1 $HOST set_variable HOST2 $HOST set_variable HOST3 $HOST set_variable HOST4 $HOST set_variable PORT set_variable EVENT_NUMBER if ( (1)  )

Variable Documentation

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

Definition at line 5 of file JDAQDriver.sh.

then JLigier sh continue fi cat ev_init txt<<EOFhello worldEOFcat> driver txt<<EOFprocess JDAQDemoClient/A $HOST1 ssh \$HOST\$ "JDAQDemoClient -u %/A -H \$SERVER\$ -M \$LOGGER\$ -d $DEBUG </dev/null >& dev null& process JDAQDemoClient B $HOST2 JDAQClientStarter H $HOST3

Definition at line 64 of file JDAQDriver.sh.

process JDAQDemoClient $HOST3 ssh $HOST JDAQDemoClient u $NAME H $SERVER M $LOGGER d $DEBUG</dev/null >& dev null& process JDAQDemoClient $HOST4 ssh $HOST JDAQDemoClient u $NAME H $SERVER M $LOGGER d $DEBUG</dev/null >& dev null& enter event ev_init

Definition at line 66 of file JDAQDriver.sh.

event ev_start
Initial value:
{ RC_CMD $RUN 1 }
sleep $RUNTIME_S
event ev_pause { RC_CMD }
event ev_stop { RC_CMD }
event ev_reset { RC_CMD }
event ev_off { RC_CMD }
EOF
PID=$!
JDAQDriver -H $SERVER -M $LOGGER -d $DEBUG -t $TIMEOUT_S -f driver.txt -c
kill -9 $PID
if (( 0 ))
event< ev_daq > ev_reset
Definition: JDAQCHSM.chsm:180
do $JPP JMEstimator M
Definition: JMEstimator.sh:37
event< ev_daq > ev_stop
Definition: JDAQCHSM.chsm:179
static const double H
Planck constant [eV s].
event< ev_daq > ev_pause
Definition: JDAQCHSM.chsm:177
then JPizza f
Definition: JPizza.sh:46
then PID
Definition: mkqueue.sh:67
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:45
event< ev_daq > ev_off
Definition: JDAQCHSM.chsm:182
static const JNET::JTag RC_CMD
Definition: JDAQTags.hh:44
double u[N+1]
Definition: JPolint.hh:739
then $DIR JPlotNPE PDG P
Definition: JPlotNPE-PDG.sh:60

Definition at line 79 of file JDAQDriver.sh.