Jpp  15.0.1-rc.1-highQE
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 tmp ev_init txt<< EOFhello
worldEOFcat > tmp driver txt
<< EOFprocess JDAQDemoClient/A
$HOST1(setenv ROOTSYS $ROOTSYS
&&source $JPP_DIR/setenv.csh
$JPP_DIR &&JDAQDemoClient-u%/A-H\$SERVER\$-M\$LOGGER\$-d
$DEBUG</dev/null > &/dev/null)&;process
JDAQDemoClient/B $HOST2(setenv
ROOTSYS $ROOTSYS &&source
$JPP_DIR/setenv.csh $JPP_DIR
&&JDAQClientStarter-H
$HOST3:$PORT-m"-H \$SERVER\$
-M \$LOGGER\$ -d $DEBUG");process
JDAQDemoClient/-$HOST3(setenv
ROOTSYS $ROOTSYS &&source
$JPP_DIR/setenv.csh $JPP_DIR
&&JDAQDemoClient-u\$NAME\$-H\$SERVER\$-M\$LOGGER\$-d
$DEBUG</dev/null > &/dev/null)&;process
JDAQDemoClient/+$HOST4(setenv
ROOTSYS $ROOTSYS &&source
$JPP_DIR/setenv.csh $JPP_DIR
&&JDAQDemoClient-u\$NAME\$-H\$SERVER\$-M\$LOGGER\$-d
$DEBUG</dev/null > &/dev/null)&;enterevent
ev_init:$EVENT_NUMBER{RC_CMD%
</tmp/ev_init.txt > from me
</tmp/ev_init.txt > event 
ev_configure
 
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 tmp ev_init txt<<EOFhello worldEOFcat> tmp driver txt<<EOFprocess JDAQDemoClient/A $HOST1 (setenv ROOTSYS $ROOTSYS && source $JPP_DIR/setenv.csh $JPP_DIR && JDAQDemoClient -u %/A -H \$SERVER\$ -M \$LOGGER\$ -d $DEBUG </dev/null >&/dev/null) &;process JDAQDemoClient/B $HOST2 (setenv ROOTSYS $ROOTSYS && source $JPP_DIR/setenv.csh $JPP_DIR && JDAQClientStarter -H $HOST3:$PORT -m "-H \$SERVER\$ -M \$LOGGER\$ -d $DEBUG");process JDAQDemoClient/- $HOST3 (setenv ROOTSYS $ROOTSYS && source $JPP_DIR/setenv.csh $JPP_DIR && JDAQDemoClient -u \$NAME\$ -H \$SERVER\$ -M \$LOGGER\$ -d $DEBUG </dev/null >&/dev/null) &;process JDAQDemoClient/+ $HOST4 (setenv ROOTSYS $ROOTSYS && source $JPP_DIR/setenv.csh $JPP_DIR && JDAQDemoClient -u \$NAME\$ -H \$SERVER\$ -M \$LOGGER\$ -d $DEBUG </dev/null >&/dev/null) &;enterevent ev_init:$EVENT_NUMBER { RC_CMD %</tmp/ev_init.txt> from me</tmp/ev_init.txt> event ev_configure
Initial value:
{ RC_CMD 2 1 }
static const JNET::JTag RC_CMD
Definition: JDAQTags.hh:44

Definition at line 72 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 /tmp/driver.txt -c
kill -9 $PID
if (( 1 ))
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
then JMuonPostfit f
static const double H
Planck constant [eV s].
event< ev_daq > ev_pause
Definition: JDAQCHSM.chsm:177
then PID
Definition: mkqueue.sh:67
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
Definition: JMuonPath.sh:47
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:62

Definition at line 79 of file JDAQDriver.sh.