Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial3 cleanup #1349

Merged
merged 11 commits into from
Feb 15, 2023
Next Next commit
Tutorial3: remove superfluous scripts
  • Loading branch information
rbx committed Feb 10, 2023
commit 47697175cc4cf761fb5cd318c74698633a6dc272
6 changes: 1 addition & 5 deletions examples/advanced/Tutorial3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ else()
set(MSGPACK_USED false)
endif()

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/MQ/run/startMQTut3Three.sh.in ${CMAKE_CURRENT_BINARY_DIR}/startMQTut3Three.sh)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/MQ/run/startMQTut3All.sh.in ${CMAKE_CURRENT_BINARY_DIR}/startMQTut3All.sh)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/MQ/run/startMQTut3AllProxy.sh.in ${CMAKE_CURRENT_BINARY_DIR}/startMQTut3AllProxy.sh)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/MQ/run/startMQTut3PushPull.sh.in ${CMAKE_CURRENT_BINARY_DIR}/startMQTut3PushPull.sh)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/MQ/run/startMQTut3ExtraProcessor.sh.in ${CMAKE_CURRENT_BINARY_DIR}/startMQTut3ExtraProcessor.sh)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/MQ/run/startMQTut3.sh.in ${CMAKE_CURRENT_BINARY_DIR}/startMQTut3.sh)

add_library(${target} SHARED ${sources} ${headers})
add_library(FairRoot::${target} ALIAS ${target})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

mcEngine="TGeant3"

session="$(@FairMQ_BINDIR@/fairmq-uuid-gen -h)"

echo "Supported data formats: binary, boost, boost-text, flatbuffers, msgpack, protobuf, tmessage"
dataFormat="binary"
if [ "$1" = "binary" ]; then
Expand Down Expand Up @@ -41,10 +43,12 @@ else
echo "Using: binary"
fi

echo "Session: $session"

SAMPLER="tut3-sampler"
SAMPLER+=" --id sampler1"
SAMPLER+=" --session $session"
SAMPLER+=" --data-format $dataFormat"
SAMPLER+=" --severity info"
SAMPLER+=" --chain-input 99"
SAMPLER+=" --input-file @CMAKE_CURRENT_SOURCE_DIR@/macro/data/testdigi_$mcEngine.root"
SAMPLER+=" --parameter-file @CMAKE_CURRENT_SOURCE_DIR@/macro/data/testparams_$mcEngine.root"
Expand All @@ -54,20 +58,23 @@ xterm -geometry 80x23+0+0 -hold -e @CMAKE_CURRENT_BINARY_DIR@/$SAMPLER &

PROCESSOR1="tut3-processor"
PROCESSOR1+=" --id processor1"
PROCESSOR1+=" --session $session"
PROCESSOR1+=" --data-format $dataFormat"
PROCESSOR1+=" --channel-config name=data1,type=pull,method=connect,address=tcp://localhost:5565"
PROCESSOR1+=" name=data2,type=push,method=connect,address=tcp://localhost:5570"
xterm -geometry 80x23+500+0 -hold -e @CMAKE_CURRENT_BINARY_DIR@/$PROCESSOR1 &

PROCESSOR2="tut3-processor"
PROCESSOR2+=" --id processor2"
PROCESSOR2+=" --session $session"
PROCESSOR2+=" --data-format $dataFormat"
PROCESSOR2+=" --channel-config name=data1,type=pull,method=connect,address=tcp://localhost:5565"
PROCESSOR2+=" name=data2,type=push,method=connect,address=tcp://localhost:5570"
xterm -geometry 80x23+500+350 -hold -e @CMAKE_CURRENT_BINARY_DIR@/$PROCESSOR2 &

FILESINK="tut3-sink"
FILESINK+=" --id sink1"
FILESINK+=" --session $session"
FILESINK+=" --data-format $dataFormat"
FILESINK+=" --channel-config name=data2,type=pull,method=bind,address=tcp://localhost:5570"
FILESINK+=" name=ack,type=push,method=connect,address=tcp://localhost:5999"
Expand Down
104 changes: 0 additions & 104 deletions examples/advanced/Tutorial3/MQ/run/startMQTut3All.sh.in

This file was deleted.

104 changes: 0 additions & 104 deletions examples/advanced/Tutorial3/MQ/run/startMQTut3AllProxy.sh.in

This file was deleted.

48 changes: 0 additions & 48 deletions examples/advanced/Tutorial3/MQ/run/startMQTut3ExtraProcessor.sh.in

This file was deleted.

69 changes: 0 additions & 69 deletions examples/advanced/Tutorial3/MQ/run/startMQTut3Three.sh.in

This file was deleted.