Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to new input file for tests
Browse files Browse the repository at this point in the history
tmadlener committed Jul 20, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 14a09dc commit 289d4f0
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/gaudi_opts/clicRec_e4h_input.py
Original file line number Diff line number Diff line change
@@ -23,9 +23,9 @@
# algList.append(read)


evtsvc.input = '$TEST_DIR/inputFiles/ttbar1_edm4hep.root'
from Configurables import k4DataSvc, PodioInput
evtsvc = k4DataSvc('EventDataSvc')
evtsvc.input = '$TEST_DIR/inputFiles/ttbar_edm4hep_frame.root'


inp = PodioInput('InputReader')
8 changes: 5 additions & 3 deletions test/scripts/clicRec_e4h_input.sh
Original file line number Diff line number Diff line change
@@ -7,15 +7,17 @@ bash $TEST_DIR/scripts/setup_clic_performance.sh

cd CLICPerformance/clicConfig

INPUTFILE=ttbar_edm4hep_frame.root

# Download root file if not present
if [ ! -f $TEST_DIR/inputFiles/ttbar1_edm4hep.root ]; then
if [ ! -f $TEST_DIR/inputFiles/$INPUTFILE ]; then
echo "Input file not found. Getting it from key4hep..."
wget https://key4hep.web.cern.ch/testFiles/ddsimOutput/ttbar1_edm4hep.root -P $TEST_DIR/inputFiles/
wget https://key4hep.web.cern.ch/testFiles/ddsimOutput/$INPUTFILE -P $TEST_DIR/inputFiles/
fi

k4run $TEST_DIR/gaudi_opts/clicRec_e4h_input.py

input_num_events=$(python $TEST_DIR/python/root_num_events.py $TEST_DIR/inputFiles/ttbar1_edm4hep.root)
input_num_events=$(python $TEST_DIR/python/root_num_events.py $TEST_DIR/inputFiles/$INPUTFILE)
output_num_events=$(python $TEST_DIR/python/root_num_events.py my_output.root)

# First check do we have the same number of events in input and output

0 comments on commit 289d4f0

Please sign in to comment.