Skip to content
Snippets Groups Projects
Commit 86fd73e0 authored by Administrator's avatar Administrator
Browse files

Add shell script to run test in the installation

The shell script is extracted from CMakeLists.txt and runs the macros in
the same sequence for the sis100_electron setup only. The script can be
executed in the the installation.
parent 2d11c5b0
No related branches found
No related tags found
1 merge request!340Install macros which are used in the test suite
#!/bin/bash
# Rund the tests as they are run in the test suite
# Only for one setup
# Currently the script is manualy created from the CMakeLists.txt
# Also no dpendencies are available. The macros are executed in the
# given sequence
nEvents=3
nBeam=$((nEvents*3))
setup=sis100_electron
sname=sis100e
# Testing the transport macros
input=${VMCWORKDIR}/input/urqmd.auau.10gev.centr.root
root -l -q -b "run_tra_file.C(\"${input}\", ${nEvents}, \"data/${sname}_coll\", \"${setup}\")"
input=${VMCWORKDIR}/input/pluto.auau.8gev.omega.mpmm.0001.root
root -l -b -q "run_tra_file.C(\"${input}\", ${nEvents}, \"data/${sname}_sign\", \"${setup}\")"
root -l -b -q "run_tra_beam.C(${nBeam}, \"Au\", 10, -1, \"data/${sname}_beam\", \"${setup}\")"
root -l -b -q run_transport_json_config.C
# Testing the digitization macros
root -l -b -q run_digi_json_config.C
root -l -b -q "run_digi.C(\"data/${sname}_coll\", -1, \"data/${sname}_ev\", -1.)"
eventrate=1.e7
beamrate=1.e9
tslength=1.e6
root -l -b -q "run_digi.C(\"data/${sname}_coll\", -1, \"data/${sname}_ts\", \
${eventrate}, ${tslength}, \"data/${sname}_sign\", \
\"data/${sname}_beam\", ${beamrate})"
# Testing the reconstruction macros
root -l -b -q "run_reco.C(\"data/${sname}_ev\", -1, 0, \"data/${sname}_eb_eb_ideal\", \
\"Ideal\", \"${setup}\", \"data/${sname}_coll\")"
root -l -b -q "run_reco.C(\"data/${sname}_ev\", -1, 0, \"data/${sname}_eb_eb_real\", \
\"Real\", \"${setup}\", \"data/${sname}_coll\")"
root -l -b -q "run_reco.C(\"data/${sname}_ts\", -1, 0, \"data/${sname}_ts_eb_ideal\", \
\"Ideal\", \"${setup}\", \"data/${sname}_coll\")"
root -l -b -q "run_reco.C(\"data/${sname}_ts\", -1, 0, \"data/${sname}_ts_eb_real\", \
\"Real\", \"${setup}\", \"data/${sname}_coll\")"
root -l -b -q "run_reco.C(\"data/${sname}_ts\", -1, 0, \"data/${sname}_ts_tb\", \
\"\", \"${setup}\", \"data/${sname}_coll\")"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment