From d53c8aef4f886bdbc16a52a3566009d17692a551 Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Tue, 16 Jun 2020 16:42:18 +0200 Subject: [PATCH] Add ReadExampleData Test --- TestFWCore/CMakeLists.txt | 4 ++++ TestFWCore/options/readExampleEventData.py | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 TestFWCore/options/readExampleEventData.py diff --git a/TestFWCore/CMakeLists.txt b/TestFWCore/CMakeLists.txt index ae7c323..e6c4b4e 100644 --- a/TestFWCore/CMakeLists.txt +++ b/TestFWCore/CMakeLists.txt @@ -23,3 +23,7 @@ gaudi_add_test(CreateExampleEventData WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} COMMAND gaudirun.py TestFWCore/options/createExampleEventData.py) +gaudi_add_test(ReadExampleEventData + WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} + COMMAND gaudirun.py TestFWCore/options/readExampleEventData.py) + diff --git a/TestFWCore/options/readExampleEventData.py b/TestFWCore/options/readExampleEventData.py new file mode 100644 index 0000000..b756770 --- /dev/null +++ b/TestFWCore/options/readExampleEventData.py @@ -0,0 +1,21 @@ +from Gaudi.Configuration import * + +from Configurables import K4DataSvc +podioevent = K4DataSvc("EventDataSvc") +podioevent.input = "output_k4test_exampledata.root" +from Configurables import CreateExampleEventData +producer = CreateExampleEventData() + +from Configurables import PodioInput +inp = PodioInput("InputReader") +inp.collections = ["MCParticles", "SimTrackerHit"] + +from Configurables import ApplicationMgr +ApplicationMgr( TopAlg=[inp], + EvtSel="NONE", + EvtMax=100, + ExtSvc=[podioevent], + OutputLevel=DEBUG, + ) + +