Skip to content

Commit

Permalink
Add ReadExampleData Test
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer authored and vvolkl committed Jul 2, 2020
1 parent cab1ae9 commit d53c8ae
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TestFWCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

21 changes: 21 additions & 0 deletions TestFWCore/options/readExampleEventData.py
Original file line number Diff line number Diff line change
@@ -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,
)


0 comments on commit d53c8ae

Please sign in to comment.