From 289d4f08b00f8e3dbcda218a717d755673f17e76 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Wed, 19 Jul 2023 19:19:29 +0200 Subject: [PATCH] Switch to new input file for tests --- test/gaudi_opts/clicRec_e4h_input.py | 2 +- test/scripts/clicRec_e4h_input.sh | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/gaudi_opts/clicRec_e4h_input.py b/test/gaudi_opts/clicRec_e4h_input.py index 17b12945..689b7261 100644 --- a/test/gaudi_opts/clicRec_e4h_input.py +++ b/test/gaudi_opts/clicRec_e4h_input.py @@ -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') diff --git a/test/scripts/clicRec_e4h_input.sh b/test/scripts/clicRec_e4h_input.sh index c8fa4273..b0d667d5 100644 --- a/test/scripts/clicRec_e4h_input.sh +++ b/test/scripts/clicRec_e4h_input.sh @@ -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