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, + ) + +