Skip to content

Commit

Permalink
Fix a comment and check for the status code of a test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored and andresailer committed Sep 5, 2023
1 parent 12bad79 commit f54a963
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions doc/starterkit/k4MarlinWrapperCLIC/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ included with k4MarlinWrapper. Note that:
* Some *MarlinProcessorWrappers* may modify collections instead of producing new ones: the original EDM4hep collection wont be updated in this case and would need conversion from LCIO to EDM4hep.

- To run *clicReconstruction* with EDM4hep format, use the steering file found in the `examples` folder of k4MarlinWrapper:
`k4MarlinWrapper/examples/clicRec_e4h_input.py` (this also get's installed to `$K4MARLINWRAPPER/examples` in Key4hep releases)
+ Change line `evtsvc.input = '$TEST_DIR/inputFiles/ttbar_edm4hep_frame.root'` to point to the location of your input file.
`k4MarlinWrapper/examples/clicRec_e4h_input.py` (this also gets installed to `$K4MARLINWRAPPER/examples` in Key4hep releases)
+ Change the line where `evtsvc.input` is defined to point to the location of your input file.
+ At the bottom of the file, in the `ApplicationMgr` parameters, change `EvtMax = 3,` to the number of events to run.

This can be run in the following way. Note that we show the usage here in a way
Expand Down
4 changes: 1 addition & 3 deletions test/scripts/clicRec_e4h_input.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ if [ ! -f $TEST_DIR/inputFiles/$INPUTFILE ]; then
wget https://key4hep.web.cern.ch/testFiles/ddsimOutput/$INPUTFILE -P $TEST_DIR/inputFiles/
fi

# Frame based I/O exits with a user requested stop here, that makes Gaudi exit
# with an exit code of 4. See https://github.com/key4hep/k4FWCore/issues/125
k4run $EXAMPLE_DIR/clicRec_e4h_input.py || true
k4run $EXAMPLE_DIR/clicRec_e4h_input.py

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)
Expand Down

0 comments on commit f54a963

Please sign in to comment.